Sub topic 13
Activating the agent and choosing where it runs
This chapter assumes you have built an agent in Agentforce Builder with at least one topic and a few actions, and that you have tested it in the conversation preview. You should also be comfortable with the Setup menu and with basic Lightning Experience navigation.
What activation does
An agent you are building is a draft. Only you and other builders can talk to it, and only through the preview panel. Activation makes a saved version of the agent available to real users and channels.
Agentforce keeps versions. You edit a draft, and you activate a version. While a version is active, the builder locks it. To change the agent, you deactivate it or create a new version, edit that, and activate the new version.
Activate the agent
- Open Agentforce Agents in Setup and select your agent to open it in the builder.
- Run a final round of tests in the conversation preview. Include one question that is out of scope, to confirm the agent refuses it.
- Click Activate. The builder saves the version and marks it as active.
- Confirm the status now reads Active.
If Activate is unavailable, the agent usually has a validation problem. Common causes are a topic with no description, an action whose backing Apex class or flow is missing, or an agent user without the needed permission set.
Choose where it runs
Channels are the places users can reach the agent. What is available depends on your org and edition.
| Channel | What it needs | Typical use in a Developer Edition org |
|---|---|---|
| Builder conversation preview | Builder access | Testing during development |
| Lightning Experience (Agentforce panel) | Agent activated and users with access | Internal employee assistant |
| Experience Cloud site | A site, plus agent connection to it | Customer-facing help on a demo site |
| Messaging for In-App and Web | Enhanced messaging channel and routing setup | Website chat for service scenarios |
| Slack, WhatsApp, SMS, Voice | Separate licenses or integrations | Often unavailable or limited |
Start with the builder preview and the Lightning Experience panel. They need the least extra setup. Treat the others as optional extensions.
Connect a channel
For an internal assistant in Lightning Experience, confirm that the users who should reach it have the permission sets from the earlier chapter. Then open the agent in the builder and review its Connections or Channels section to see which are enabled.
For a messaging channel, the usual sequence is:
- Create the channel in Setup, such as an embedded messaging deployment.
- Create or reuse a routing configuration and a queue.
- Add the agent as a routing target through an omni-channel flow.
- Publish the deployment and test it from the page where it is embedded.
Your Developer Edition org may not include every item in this list. If a setting is missing, check the edition's limits before assuming you made an error.
Check the result
After activating, test as a user, not as an admin.
- Log in as a user who holds the required permission set.
- Open the channel and send a message that matches your topic, for example a question about open cases.
- Confirm the response comes from the action and not from a guess.
- Send an out-of-scope message and confirm the agent declines.
If behavior differs from the preview, compare the user's permissions with the agent user's, and confirm you activated the version you tested.
Deactivating and rolling back
Deactivate the agent when you see wrong answers or unexpected data exposure. This stops new conversations on its channels. Then fix the topic or action in a new version, retest in the preview, and activate again. Keeping the earlier version lets you return to a known good state.
Exercise
You edited a topic's instructions on an active agent, but the changes do not appear in the Lightning Experience panel. Give one likely cause and the fix.
Show answer
The active version is locked, so your edits are in a new draft version that has not been activated. Test the draft in the preview, then deactivate the old version if required and activate the new one.
Exercise
Why should you test an activated agent as a non-admin user?
Show answer
The agent runs with its agent user's permissions, and end users need their own permission sets to reach it. Testing only as an admin hides missing-access problems that real users would hit.