Sub topic 11
Channels: where service and employee agents run
This chapter assumes you know the difference between service and employee agents from earlier chapters. It also assumes you know what a topic and an action are, and that you have basic familiarity with Salesforce Setup, permission sets, and Omni-Channel. It covers the surfaces where an agent talks to people, how the channel changes what the agent can assume about the user, and what to check before you connect an agent to a channel.
What a channel is
A channel is the surface where a user and an agent exchange messages. Examples are a chat window on a website, a WhatsApp conversation, a Slack direct message, or the Agentforce panel inside Lightning Experience.
The channel does not change the agent's topics, instructions, or actions. Those stay the same wherever the agent runs. The channel does change four things:
- Who the user is. Some channels give you a verified identity. Others give you an anonymous visitor.
- What the agent can render. Some channels support rich elements such as buttons and formatted lists. Others carry plain text only.
- How escalation works. A handoff to a human needs a route that the channel supports.
- What you must configure. Each channel has its own setup objects and its own limits.
Channels for service agents
A service agent talks to customers, so its channels sit on the customer's side of the business. Common options include:
- Messaging for Web, or an embedded chat, on a website or Experience Cloud site. This is the most common starting point. You create an embedded service deployment and add the agent to it. Visitors are often unauthenticated unless you configure verification.
- Messaging channels such as SMS, WhatsApp, Facebook Messenger, and Apple Messages for Business. Each one needs a channel record in Salesforce and an account with the provider, such as a WhatsApp Business number. Provider rules apply. WhatsApp, for example, limits when a business can send a message outside an active conversation.
- Email. An agent can draft or send replies to inbound email in some configurations. Email is asynchronous, so the agent cannot ask a quick follow-up question and expect an immediate answer.
- Voice. Agentforce voice and Service Cloud Voice let an agent handle phone calls. Spoken input is less exact than typed input, so order numbers and email addresses are easier to mishear.
Channel availability changes between releases. Before you plan around a channel, confirm in the current Salesforce release notes and Setup that it is supported for the agent type you are building.
Channels for employee agents
An employee agent serves signed-in internal users, so its channels are the places employees already work:
- Lightning Experience. The agent appears in a panel inside the Salesforce UI, so it can use the context of the record the employee is viewing.
- Salesforce mobile app. The same agent is available on a phone, which suits field and sales users.
- Slack. Employees message the agent in a direct message or invoke it in a channel. Slack must be connected to your org, and the agent must be available to the Slack workspace.
- Other internal surfaces, such as Microsoft Teams or a custom app, where your org and the current release support them.
Because every employee in these channels has signed in, the agent can act as that employee. The next section explains why that matters.
How the channel affects identity
Identity is the main difference between the two groups of channels.
| Question | Typical service agent channel | Typical employee agent channel |
|---|---|---|
| Is the user signed in to Salesforce? | Usually no | Yes |
| Whose permissions limit data access? | The agent user's | The employee's own |
| How do you know who the customer is? | Verification you design | Salesforce already knows |
| Can the agent use the current record as context? | Rarely | Often |
The earlier chapter on identity and access covers the agent user and the running user in detail. The channel consequence is this. On a public web chat, the agent has no proof of who is typing. If an action returns order details for any order number, anyone who guesses a number can read it. You have two defenses:
- Add a verification step to the topic instructions. For example, require the email address on the order to match before the agent reports the status.
- Use an authenticated channel when the data is sensitive. An Experience Cloud site with login, or a verified messaging session, supplies a known contact.
A callout is worth adding here, because this mistake appears often in practice.
Matching the experience to the channel
Write instructions with the channel in mind. A reply that works in a chat window can fail elsewhere.
- Length. SMS and voice need short replies. A numbered list of eight steps is hard to follow when spoken.
- Formatting. Do not assume that bold text, tables, or links render. Test how each channel displays the agent's output.
- Collecting input. In voice, ask for one value at a time and read it back. In chat, the customer can paste an order number, so you can ask for it in one message.
- Timing. On email, the agent cannot hold a conversation. Ask for everything it needs in one reply, or route the case to a person.
If one agent serves several channels, keep the instructions channel-neutral and test each channel. If the channels differ a lot, such as voice and web chat, consider separate agents with their own instructions, because a single set of instructions that fits both tends to fit neither.
Channel review before go-live
- Which channel types will this agent run in?
- Is the user authenticated in each one? If not, what verifies them?
- Which actions return personal data, and does each action check identity?
- Does the channel render the response format the instructions assume?
- Is there an escalation route (Omni-Channel queue, flow, or skill) for this channel?
- Who owns the channel account (for example the WhatsApp Business number)?Channels and escalation
Handing a conversation to a human depends on the channel. For messaging channels, the usual route is Omni-Channel: the agent hands off through an escalation route that points to a queue or flow, and a human agent picks up the same conversation with its transcript. Escalation is covered in the next chapter, but the channel decision comes first. If a channel has no human route, the agent can only apologize and stop.
Check these points when you add a channel:
- The channel is connected to Omni-Channel routing.
- An agent or queue is staffed during the hours the channel is open. A WhatsApp number that answers at 3 a.m. with nobody to escalate to creates stranded conversations.
- The agent's escalation topic names a route that exists for that channel.
Common errors
- Testing only in the builder. The builder preview shows the reasoning but not how a channel renders the reply or handles identity. Test in the real channel before activation.
- Assuming a channel is signed in. Check the channel's authentication setting instead of inferring it from the product name.
- Forgetting provider constraints. Template approval, messaging windows, and number registration for external providers can delay a launch by days.
- Reusing one set of instructions everywhere. Voice and chat need different handling of numbers, length, and confirmation.
- No escalation staffing. A configured route is not enough if no one is available to receive the handoff.
Exercise
A company wants its service agent on a public website chat and on WhatsApp. The agent has an action that returns an order's status and shipping address from an order number. Name two risks that come from the channel choice, and one change that reduces each.
Show answer
First, both channels are likely unauthenticated, so anyone who guesses an order number could read a shipping address. Reduce this by adding a verification step (for example, matching the email on the order) in the topic instructions and in the action itself, or by moving the request to an authenticated channel. Second, WhatsApp has provider rules, such as limits on messaging outside an active conversation window, and it needs an approved business account, so the launch and follow-ups can fail even if the agent works in testing. Reduce this by registering the number and testing in the real WhatsApp channel before activation. A shorter answer could also name rendering differences between web chat and WhatsApp, fixed by testing each channel's output.
Exercise
An employee agent is used in the Lightning panel and in Slack. In which channel can the agent more easily use the record the employee is viewing, and why does the employee's identity matter in both?
Show answer
The Lightning panel, because it sits inside the Salesforce UI and can pass the open record as context. In both channels the employee is signed in, so the agent can act under that employee's permissions, and the actions return only data the employee may see.