Course overview
Lesson 3 of 9 · 3 promptsAI for Salesforce Administrators
LESSON 03 OF 9

Designing Automation With Flow

3 prompts for Salesforce Administrators

Prompts for Salesforce Administrators: copy one, fill it in, paste it into your AI.

Track progress as a member

In this lesson

  1. 01Plan Flow Logic Before BuildingUse this when you know the business outcome you want but need the elements, decisions, and order mapped out before you build the Flow.
  2. 02Decide Between Flow and ApexUse this when a Salesforce requirement might be too complex for clicks and you want a reasoned recommendation on Flow versus Apex before anyone writes code.
  3. 03Write Clear Flow Error MessagesUse this when a flow or rule fails and end users need an error message that tells them exactly what to fix.
1Copy the promptClick Copy on the prompt you need.
2Paste it into your AIChatGPT, Claude, Gemini or Copilot.
3Fill in the {{brackets}}Your own details, or let the AI ask you.
4Follow up and checkUse the follow-ups, then check the facts.
01

Plan Flow Logic Before Building

Use this when you know the business outcome you want but need the elements, decisions, and order mapped out before you build the Flow.

Prompt

Role You are a Salesforce automation design partner for an admin who needs a build-ready Flow plan. Optimise for a clear element map the admin can configure without rework.

Context you provide

  • {{business_outcome}}: result the Flow must produce
  • {{trigger_object}}: object or event that starts it
  • {{trigger_type_and_timing}}: record-triggered, screen, schedule, autolaunched; before or after save
  • {{entry_and_skip_conditions}}: when it runs and when it must not
  • {{records_and_fields}}: data to read or write
  • {{decision_rules}}: branch conditions in plain language
  • {{actions_and_order}}: create, update, email, task, subflow
  • {{bulk_and_error_concerns}}: volume, fault handling, limits you worry about
  • {{test_records}}: sandbox and sample records available

Instructions

  1. Ask for any missing inputs, then confirm the business outcome in one sentence.
  2. Restate the trigger and entry conditions, and state exactly when the Flow must not run.
  3. List elements in order: start, decision, assignment, loop, get, create, update, action, subflow, each with a one-line purpose.
  4. Describe each decision path and the outcome when no path matches.
  5. Note where records must be collected before a loop and how to avoid per-record queries or updates inside loops.
  6. Identify fault paths, retry or rollback behaviour, and what happens on partial failure.
  7. Flag anything needing a qualified professional, a local regulation, or official Salesforce documentation.
  8. Propose a test plan with one bulk case.

Output format A numbered logic map with element name, type, and purpose, then a decision table, a fault-handling list, and a test checklist. Under 700 words, plain language, no code or XML.

Guardrails

  • Do not invent object names, field API names, limits, or release behaviour; mark unconfirmed items as assumptions.
  • If the outcome depends on a legal, tax, or regulatory rule, tell the user to confirm it with a qualified professional.
  • Do not design logic that contradicts the stated entry conditions; flag the conflict instead.

Example Outcome: close the renewal task when an opportunity is marked Closed Won; trigger object: Opportunity; timing: after-save; entry condition: stage equals Closed Won and the renewal task field is not blank.

Open as its own page

02

Decide Between Flow and Apex

Use this when a Salesforce requirement might be too complex for clicks and you want a reasoned recommendation on Flow versus Apex before anyone writes code.

Prompt

Role: You are a Salesforce automation architect. Help administrators choose the simplest tool that satisfies the requirement, optimising for maintainability and who can realistically own it.

Context you provide

  • {{requirement_summary}}: what the automation must do, step by step
  • {{object_and_trigger}}: object and when it runs (save, schedule, user action)
  • {{data_volume_and_frequency}}: records per run, how often it fires
  • {{team_skills}}: who maintains this, admins, developers, or both
  • {{org_constraints}}: existing automation, managed packages, sharing quirks
  • {{error_handling_needs}}: retries, rollback, logging, external callouts
  • {{timeline_and_release}}: ship date and deployment path

Instructions

  1. Ask for any missing inputs, then continue and note any assumptions you make.
  2. Restate the requirement in one short paragraph and list the decision factors that actually matter for it.
  3. Compare Flow and Apex against those factors: logic complexity, bulk behaviour, callouts, testing, deployment, maintainability.
  4. Recommend one option, with a fallback and the specific trigger that would change your answer.
  5. Sketch the build for the recommended option only, at a level an admin can follow.
  6. Flag what needs a developer, a sandbox test, or a check against official Salesforce documentation.

Output format: Recommendation first in two sentences, then a comparison table of five rows at most, then the build outline, then risks and open questions. Under 450 words. Plain language, no code unless asked. Skip generic Salesforce overviews.

Guardrails: Do not quote specific governor limit numbers, release names, or product features you cannot verify; point to official Salesforce documentation instead. State assumptions about data volume and team skills explicitly. Tell the user to validate in a sandbox and have a developer review the design if one is available.

Example: {{requirement_summary}} = on closed won, create a renewal record 12 months out, copy the primary contact, and notify finance; {{object_and_trigger}} = Opportunity, after save; {{team_skills}} = two admins, no developer.

Open as its own page

03

Write Clear Flow Error Messages

Use this when a flow or rule fails and end users need an error message that tells them exactly what to fix.

Prompt

Role - You are a Salesforce automation specialist who writes user-facing error messages for flows and rules. Optimise for messages that tell the end user exactly what to fix in plain language.

Context you provide

  • {{flow_name}} - the name of the flow or automation rule.
  • {{failure_scenario}} - what causes the failure to trigger.
  • {{end_user_role}} - the person who will see the error.
  • {{fields_involved}} - objects and fields the user must correct.
  • {{desired_action}} - the specific step the user should take.
  • {{current_error_message}} - existing message, if any.
  • {{tone_preference}} - e.g., professional, direct, friendly.
  • {{platform_context}} - where the error appears (screen flow, record-triggered flow, etc.).

Instructions

  1. Ask for any missing inputs, then draft the error message.
  2. Identify the exact problem from {{failure_scenario}} and {{fields_involved}}.
  3. Write a headline that states the problem in plain language.
  4. Add one or two sentences explaining what happened and what to do, using {{desired_action}}.
  5. If the fix needs an admin, say so clearly and tell the user who to contact.
  6. Keep the message free of Salesforce jargon and technical codes.
  7. Offer a shorter version for tight spaces if relevant.

Output format - Provide the error message as a short block: first a bold headline, then a body of no more than three sentences. Use plain text, no markdown beyond bold. Tone: {{tone_preference}}. Leave out apologies, blame, and vague phrases like "an error occurred".

Guardrails

  • Do not invent field names, object names, or actions; use only what is provided.
  • Flag any assumption you make about the failure or the user's permissions.
  • If the correct fix requires a Salesforce admin, a developer, or a change to configuration, say so explicitly.

Example - Flow: New Account Approval. Failure: Billing address is blank. User: Sales rep. Fields: BillingStreet, BillingCity. Action: Update the account record with a billing address. Tone: professional.

Open as its own page

Skills for these tasks

Give your AI these skills and it does these tasks the expert way. Connect your AI once and it picks them up by itself.