An automated text has four parts. A trigger (something happens), a check (should we really send?), a message, and a record that it went out. Salesforce gives you tools for each, and people constantly mix them up.
One mix-up is worth clearing early. Flow is Salesforce’s automation tool. It’s rules-based: when X happens and Y is true, do Z. Agentforce is Salesforce’s AI agent platform. It holds conversations and decides what to say. Agentforce is not a no-code automation tool, and Flow isn’t an AI agent. They work well together, but they do different jobs.
Three Jobs, Three Tools
Job | Tool | Example |
Decide when to send | Flow | A case closes, so send a survey text |
Hold a conversation | Agentforce | A customer replies “can I move my appointment?” |
Deliver the message | A messaging channel or app | Sender number, templates, opt-out handling |
Â
Build your First SMS Automation in Flow
The pattern is the same whatever you’re sending.
- Pick the trigger. A record-triggered flow fires when a record is created or changed, such as a Case closing. A scheduled flow runs at set times, which suits reminders.
- Add entry conditions before anything else. Require a mobile number and a recorded opt-in. Filtering here is cleaner than checking later.
- Use an Asynchronous Path: Never drop an external API text action into the main flow path. Always route it through the “Run Asynchronously” path settings. This prevents “uncommitted work pending” database errors and system crashes during bulk record updates.Â
- Add a fault path. If the send fails, log it and stop. A silent failure is how people find out three weeks later that nothing was going out.
- Test in a sandbox. Send to your own phone and a colleague’s. Check merge fields.
- Record what you sent. Store the date of the last message on the record. You’ll use it in a moment.
Four automations that earn their keep:
- Appointment reminder. A scheduled flow runs daily and texts everyone with an appointment the next day.
- Case-closed survey. One text when a Case closes, with a link.
- New-lead welcome. One text shortly after a form fill, only if consent is recorded.
- Stale-lead check-in. One text when a lead has had no activity for a set number of days, never repeated.
If You use Salesforce’s Own Messaging
Salesforce’s help documentation on automated messages describes how this works in enhanced messaging channels. The flow uses a Send Conversation Messages action. A few things from that page are worth knowing:
- The flow only sends to customers who have a messaging user record linked to that channel. No record, no message.
- You can filter by channel and consent status, so you can target only people who’ve agreed.
- In enhanced WhatsApp channels, the message component must be linked to an approved WhatsApp template.
- An automated message counts as one outbound message, whether or not it’s sent inside the 24-hour customer care window.
- You can review what the flow sent in the Enhanced Messaging Log.
Agents can use the Send Message global action to start conversations by hand. Note that this action requires the Initiate Messaging Session permission and will only function if the customer already has a pre-existing Messaging User record mapped to that channel. Our Service Cloud SMS guide covers the setup.
If you use an AppExchange app instead
If you opt for a third-party package from the AppExchange, the outbound engine replaces Salesforce’s native action block. Inspect what specific Apex methods your vendor injects into Flow Builder before mapping out your data variables.Â
Where Agentforce fits
Agentforce earns its place in the conversation, not the trigger.
Salesforce’s docs show that an Agentforce Service agent can be connected to an enhanced messaging channel, and that you can give it custom actions that run a Flow. Here’s what that looks like:
- A customer replies to a reminder: “Can I move this to Thursday?”
- The agent understands the request and calls a Flow action you built.
- The Flow checks availability and updates the appointment.
- The agent confirms in the same conversation.
Salesforce’s Trailhead module on agent actions walks through adding a Flow as an action. The agent user needs permission to run flows, and the add-on licenses you need depend on the agent type, so check that with Salesforce before you plan.
Two design rules. First, put anything with legal weight inside the Flow, not inside the AI’s judgment. That means consent checks, opt-out handling and message limits. Second, always give the conversation a way out to a person. Salesforce’s docs describe escalating to a rep or queue through an Omni-Channel flow, and autonomous agent sessions on enhanced channels automatically time out after 24 hours of inactivity. If a prospect replies on hour 25, you must configure your Omni-Channel flow to initiate a brand-new routing session.
Guardrails every SMS Automation needs
- A consent check in the entry conditions. Not a hope, a filter.
- A frequency cap. Use that last-message date. If a record got a text in the last 24 hours, skip it.
- Loop protection. If an inbound reply triggers a flow that sends a text, and that text triggers another flow, you can burn through hundreds of messages in minutes. Make sure outbound texts can’t re-trigger the same flow.
- Opt-out handling. A STOP reply should update the record, and every flow should check it before sending.
- A sandbox first. Always.
Consent and opt-out rules are covered on our compliance guide.
WhatsApp Automation and Other languages
WhatsApp follows the same pattern, with two additions: approved templates for anything you start, and Meta’s per-message fees. Both are in our WhatsApp and Salesforce guide. If you send in several languages, Salesforce’s help documentation has an article on translating chats dynamically using the messaging user’s language.
Build exclusively in Flow and Legacy tools like Workflow Rules and Process Builder are fully deprecated and locked. All modern transactional text triggers and agentic hand-offs must be built natively inside Flow Builder.
Where Message Blink fits
MessageBlink functions as a native execution layer deeply integrated into Flow Builder and Agentforce Studio. Deployed through the AppExchange, it automatically runs outbound text queues asynchronously to eliminate row-locking errors, isolates your API gateway keys using encrypted Named Credentials, and instant-syncs carrier “STOP” replies directly to your core Salesforce records.
For More Information, You can:-Â
