Salesforce and Claude Integration
What Is a Headless Agent? One Salesforce Agent for Web, Mobile and WhatsApp
Short answer
A headless agent is an AI agent whose instructions, tools and data access live in one place, separate from any user interface, so the same agent can serve web chat, mobile apps, WhatsApp and other channels through APIs and messaging connectors. On Salesforce, that means one governed Agentforce or Claude agent behind many front ends.
- →Build and govern the agent once; connect channels to it, not the other way round.
- →Each channel has its own rules: WhatsApp templates, mobile auth, voice latency.
- →Pass identity and context from the channel to the agent explicitly and safely.
- →Test per channel, because the same answer can fail in a different format.
Many organizations build their first customer agent for the website, then a second for WhatsApp, then a third inside the mobile app. Six months later they have three agents giving three slightly different answers to the same question, each tuned and governed separately. The headless pattern avoids that by building one agent and connecting many screens to it.
What does headless mean for an AI agent?
Headless agent
An AI agent whose logic, tools and data access are decoupled from any user interface, exposed through APIs or messaging connectors so that multiple channels can use the same agent.
On Salesforce, there are two main routes. Agentforce agents can be deployed to Salesforce messaging channels, which, depending on your licenses, can include web chat, in-app messaging and WhatsApp, and Salesforce also provides APIs for calling agents from your own applications. Alternatively, a custom Claude agent can sit behind your own API, reading and writing Salesforce through MCP or REST, with channels connected through your messaging provider. Check your edition and release notes for which channels and APIs are available to you.
Why does each channel still need its own design?
Headless does not mean channel-blind. The agent is shared, but each channel imposes constraints the agent must respect.
| Channel | Main constraints | Design response |
|---|---|---|
| Web chat | Anonymous visitors, long answers are fine | Verify identity before account actions |
| Mobile app | User already logged in, small screen | Pass authenticated identity securely to the agent |
| Business-initiated messages need approved templates; customer service window rules | Short replies, template library, opt-in records | |
| Voice | Latency and interruptions | Short turns, fast model routes, clear escalation |
| Slack (internal) | Threaded, mixed audiences | Respect channel visibility |
WhatsApp in particular has rules set by Meta: outside the customer service window, businesses generally need pre-approved message templates, and customers must have opted in. Your agent and your channel adapter both need to know which state a conversation is in. The customer-facing agents whitepaper covers channel rules in more depth.
How do you design a headless agent?
- 01
Define one agent contract
Inputs (message, verified identity, channel, locale) and outputs (text, structured actions, escalation flag).
- 02
Keep formatting out of the core
Let the agent produce plain content; channel adapters turn it into rich cards, buttons or short text.
- 03
Pass identity explicitly
The channel authenticates the user and passes a verified identifier. The agent never trusts a typed claim.
- 04
Centralize handoff
One escalation path to human agents in Salesforce, with the full transcript, whatever the channel.
- 05
Test per channel
Run your test set through each channel adapter, not just the core agent.
- 06
Report per channel
Track resolution and escalation by channel so one weak surface does not hide in the average.
How should identity and context move between channel and agent?
The most important design decision in a headless agent is how a channel tells the agent who it is talking to. Get it wrong and you either frustrate customers with repeated verification or, worse, let someone access another person’s account by typing a different email address into the chat.
The rule is that identity is established by the channel and passed to the agent as a verified fact, never inferred from what the user types. A logged-in mobile app can pass a signed token or a verified customer identifier. WhatsApp gives you the phone number the message came from, which you can match to a contact, though for sensitive actions a second check is wise. Anonymous web chat starts unverified, and the agent should only answer general questions until the visitor verifies, for example through a one-time code. Alongside identity, pass context the agent cannot see itself: the channel, the page or screen the user is on, language and any open case.
One headless agent, three channels
Channels
Web chat
Mobile app
Templates outside window
Channel adapter
Identity verification
Passes verified fields
Formatting
Buttons, lists, length
Agent
Agentforce agent
One brain via Agent API
Verification policy
Actions by trust level
Data and actions
Data 360
Flows and Apex
Service Cloud cases
- Verified identity: established by the channel, passed as a trusted field.
- Verification level: anonymous, matched by phone, fully authenticated.
- Channel context: channel name, screen or page, locale.
- Conversation state: open case, prior handoff, WhatsApp window status.
The agent then decides what it may do based on the verification level, not on the channel name. That keeps the rules in one place and makes adding a new channel a question of mapping its identity signals, not rewriting the agent.
Plan the order of channels deliberately. Most teams start with the channel that has the highest volume of repetitive questions and the cleanest identity signal, often the logged-in mobile app or an authenticated customer portal, because verification is already solved. WhatsApp often comes second, once templates and opt-in records are in place. Anonymous web chat can launch early for general questions but should hold back account actions until verification is built. Adding channels one at a time, each with its own test run and first-month review, keeps problems small and easy to trace. It also gives you per-channel baselines, so you can show which surface is actually producing the return.
SkySync practice
SkySync builds one governed agent per job and connects channels through our Connector Pack (web, WhatsApp and voice). The agent contract, handoff path and per-channel test set are written before the first channel goes live. In Agent Care, weekly reviews sample conversations from every channel, not just the busiest.
What are the common mistakes?
- Trusting identity typed into chat instead of verified by the channel
- Letting the agent write channel-specific formatting, which breaks elsewhere
- Separate escalation paths per channel, so human agents lose context
- Testing only on web, then discovering long answers fail on WhatsApp
- Reporting a blended resolution rate that hides one failing channel
Headless agents are where the integration options come together: Data 360 grounding, least-privilege identity and one owner, serving every surface. The integration playbook shows how to sequence it.
Frequently asked questions
Can an Agentforce agent run on WhatsApp?
Salesforce supports WhatsApp as a messaging channel, and Agentforce service agents can be deployed to supported messaging channels. Availability depends on your licenses, region and release, and you need a WhatsApp Business account and Meta approval for templates. Check your edition before planning around it.
Do we need a separate agent for the mobile app?
Usually not. A headless design lets your app call the same agent through an API, passing the logged-in user’s verified identity. You may adjust tone or length per channel, but the instructions, tools and data access stay in one governed place.
Is a headless agent harder to govern?
It is easier, because there is one set of instructions, one permission design and one test set. The extra work is per-channel testing and reporting, which you would need anyway with separate agents, multiplied by the number of agents.
Go deeper
Claude and Salesforce: The Integration Playbook
MCP, Agentforce, Data 360 and Slack: which door to use, how to secure it, and how to run it after launch
- ✓The Four Doors Model: every way Claude and Salesforce can meet, and what each one is good for
- ✓A decision table for Agentforce vs a custom Claude agent, with the questions that settle it
- ✓An MCP security checklist: integration users, OAuth scopes, read vs write, audit
- ✓How Data 360 grounding changes what an agent can answer correctly