Flows

GPTClaudeDeepSeek··1,145 copies·updated 2026-07-14
flows.prompt
# Flow Building Rules

> Instructions for AI agents when designing or reviewing Salesforce Flows.

---

## Core Rules

| Rule | Details |
|------|---------|
| **Prefer Record-Triggered Flows** | Over Process Builder (deprecated) and Workflow Rules |
| **Before-Save for field updates** | No DML consumed — free performance |
| **After-Save for related records** | Only when you need DML on other objects or platform events |
| **Fault paths on EVERY DML/callout** | No silent failures |
| **No hardcoded IDs** | Use Custom Labels or Custom Metadata Types |
| **No hardcoded strings** | Use Custom Labels for user-facing text |

---

## Flow Naming Convention

when to use it

Community prompt sourced from the open-source GitHub repo rvaghela20/forcekit (MIT). A "Flows" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

productivitycommunitydeveloper

source

rvaghela20/forcekit · MIT