Flows
# 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 Conventionwhen 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
more in Productivity
Productivity✓ tested
Summarize a doc into decisions & actions
chief of staff who extracts what to DO, not just what was said
Productivity✓ tested
Draft a reply to a hard email
calm, direct communicator who de-escalates without caving
Productivity✓ tested
Turn a brain-dump into a weekly plan
planning coach who protects your focus, not just your calendar