Sub topic 15
Activating, Deploying, and Monitoring Agents
This chapter assumes you know basic Salesforce concepts (objects, permission sets), have built an agent with topics and actions, and have tested it in the Agentforce Builder. Here you move from a tested draft to a live agent and then watch how it behaves.
Activation versus deployment
Two steps get an agent in front of users, and they are easy to confuse.
- Activation makes a specific agent version available to run. An agent that is not active cannot answer anyone.
- Deployment connects an active agent to a channel, such as a web chat, a messaging channel, or the Agentforce panel in Lightning Experience.
An agent can be active and still unreachable if no channel points at it. The reverse is also true. A channel can point at an agent that has no active version.
Activating an agent
Before you activate, check these items:
- The agent user (service agents) or the permission sets for your employees (employee agents) are assigned and tested.
- Every action's Flow or Apex class is deployed and active in the target org.
- Knowledge or data library sources are indexed and current.
- Your test runs cover the expected paths and the escalation path.
Once the agent is active, its configuration is locked. To change it, you create a new version, edit that version, test it, and then activate it. This lets you change a live agent without editing it in place.
Moving between orgs
You build and test in a sandbox, then move the agent to production with a change set or with Salesforce DX. The agent is stored as metadata, and its topics and actions depend on other metadata. Deploy the dependencies first: Apex classes, Flows, permission sets, and knowledge configuration. If a dependency is missing in the target org, the deployment fails or the action breaks at runtime.
Monitoring after launch
Testing shows how the agent behaves on cases you thought of. Monitoring shows what real users ask. Watch these signals:
| Signal | What it tells you |
|---|---|
| Conversation transcripts | Whether the agent chose the right topic and action |
| Action failures | Broken Flows, Apex errors, or missing access |
| Escalation rate | How often the agent hands off to a human |
| Unresolved or off-topic requests | Gaps in topics or instructions |
Salesforce provides Agentforce Analytics and session tracing in the Agentforce Studio tools. The session trace shows the topic the agent chose, the actions it called, and the data it passed. Use it to find why a specific conversation went wrong. Availability of individual dashboards depends on your edition and setup, so confirm in your org.
Common errors
- Activating without a channel. Users see nothing. Check the deployment step.
- Editing instead of versioning. Copy the active version and edit the copy.
- Missing dependencies in production. Actions fail even though they passed in the sandbox.
- Never reviewing transcripts. Problems accumulate unseen. Schedule a regular review.
A good routine is to review a sample of conversations each week for the first month. For each problem, update the topic description or instructions in a new version, test, and activate.
Exercise
Your service agent passed every test in the sandbox. After you deploy it to production and activate it, customers report that order lookups fail. Name two likely causes and one tool you would use to confirm.
Show answer
Likely causes are that the Apex class or Flow behind the Get Order Status action was not deployed to production, or that the agent user lacks permission to the Order object in production. Confirm with the session trace, which shows the action call and its error, and with the conversation transcript.