Tested Salesforce prompts for AI assistants
Prompts for everyday Salesforce developer tasks, each with a worked example, the output we got, a checklist for judging your own result and the caveats that matter. Every page explains what the prompt does and shows how it was tested.
- Worked. Each prompt shows its example inputs and a known-good output.
- Checkable. A checklist tells you what to verify before you trust a result.
- Honest. Every page says the model, the date and what was not verified.
Apex
Testing
Code review
Flow and automation
Frequently asked questions
What does "tested" mean for these prompts?
Each prompt was run with the example inputs on the page, and the output shown is what came back. We then checked that output against the checklist on the page. Every prompt page states the model, the date and what we did not verify, for example that generated code was not deployed to an org.
Will I get exactly the same output?
No. Language models vary between runs and between models. The known-good output shows what a correct answer looks like, and the checklist tells you how to judge your own output.
Do the prompts work with any AI assistant?
Yes. They are plain text and do not depend on a vendor. Results differ by model, and prompts that need data from your org work best with an assistant connected to a Salesforce MCP server or the Salesforce CLI.
Can I trust generated Apex or Flow without reviewing it?
No. Review every result, compile or validate it in a sandbox, and run tests before you deploy. Each prompt page lists the caveats that matter most for that task.
How do I fill in the placeholders?
Placeholders look like {{object_name}}. Each prompt page has a small form: type your values and copy the finished prompt. Nothing you type is sent anywhere.
How are prompts different from skills?
A prompt is text you paste for one task. A skill is a packaged set of instructions an assistant loads on its own when a request matches. The prompt pages link to matching skills.