Sub topic 15
Channels and Deployment
This chapter covers where an Agentforce agent runs and how it moves from a draft to a live agent. It assumes you know basic Salesforce concepts such as objects, records, and Setup. It also assumes you have read the earlier chapters on topics, instructions, and actions. Channel and deployment details change between Salesforce releases, so check the current Salesforce documentation for exact setup steps.
What a channel is
A channel is the place where a user talks to the agent. The agent definition stays the same: topics, instructions, and actions. The channel changes who the user is and how they reach the agent.
Common channels fall into two groups:
- Customer-facing channels, such as a website chat window built on Messaging for In-App and Web, or other messaging channels.
- Employee-facing channels, such as a chat panel inside the Salesforce app or Slack.
The group matters because it changes what the agent can safely do. A customer is usually unauthenticated or only lightly verified. An employee is a signed-in Salesforce user.
Deploying an agent
Deployment connects a finished agent to a channel. The usual path has four steps:
- Build and test the agent in a sandbox or in the agent builder.
- Activate a version of the agent. Only an active version answers real users.
- Connect the agent to a channel. For messaging, this often means routing incoming conversations to the agent. Many setups also define a fallback to a human queue, so the agent can hand off when it cannot help.
- Monitor the live conversations and adjust.
The arrow from monitoring back to testing is intentional. Real conversations show requests you did not expect, and you fix them by editing descriptions or instructions, testing again, and activating a new version.
How the channel affects action choice
The reasoning loop is the same in every channel, but the context it sees is not. Two differences matter most.
- Identity. An employee in the Salesforce app has a user context. An anonymous website visitor does not. An action that reads private records should not be available to an unverified visitor.
- Permissions. Actions run with the access of the running user. In an employee channel, that is the employee. In a customer channel, it is the agent's configured running user, which should have only the access it needs.
Channel style also affects how you write instructions. A website chat benefits from short replies. An internal agent can return longer, detailed answers.
Common deployment errors
| Symptom | Likely cause |
|---|---|
| The agent does not answer in the channel | The agent version is not active, or the channel is not routed to the agent |
| The agent answers but cannot read data | The running user lacks object or field access |
| Customers get stuck in a loop | No handoff to a human is defined for requests outside every topic |
| Behavior differs from the builder test | The channel passes different context, such as no verified identity |
Test in the channel you plan to use, not only in the builder. The builder does not reproduce channel identity and routing.
Exercise
An agent works well in the builder, but on your public website it says it cannot find any order, even for valid order numbers. Name two likely causes related to deployment.
Show answer
The agent's running user may lack read access to the Order object and its fields, so the lookup returns nothing. The channel may also pass no verified identity, so the action cannot match the customer to their orders. Testing in the real channel and checking the running user's permission set would confirm either one.