Understanding the Issue
When clients hit this issue, it can be frustrating to resolve, as it involves understanding how Agentforce handles user responses and how it prioritizes global instructions.
In this case, the community member had already tried adding “NEVER try to connect to a service representative” to every topic’s scope and instructions, as suggested by Salesforce support, but the issue persisted.
Root Cause of the Issue
The root cause of this issue is likely due to the global instructions that persist in the Outbound flow, which prioritize connecting the user with an available Chat Representative. These instructions can be tricky to work around, as they are not currently editable.
Possible Solutions
Another community member who had experienced a similar issue suggested trying the following steps, as recommended by Salesforce support:
Agentforce Debugging Steps
1. Remove the topic for Case Management from the agent and add it back using the Asset Library. 2. If the topic was already stored in the Asset library, remove it and add it to the asset library again, then try step 1 again. 3. Create a new version of the agent, remove the topics and actions and add them back from the Asset Library and reconnect any context variables.
These steps may need to be tried in sequence, as the community member found that they had to try all three before the issue was resolved.
Best Practices for Resolving Agentforce Issues
When troubleshooting Agentforce issues, it’s essential to understand the global instructions and how they interact with the topics and actions in your agent.
Heads up: Be sure to thoroughly test your agent after making any changes to ensure that the issue is fully resolved.
Checklist for Resolving Agentforce Connection Issues
Agentforce Troubleshooting Checklist
- Remove and re-add the Case Management topic from the Asset Library.
- Create a new version of the agent and re-add the topics and actions from the library.
- Reconnect any context variables that were disconnected during the process.
- Thoroughly test the agent after making any changes.
- Consider seeking assistance from Salesforce support if the issue persists.
- Review the global instructions and ensure they are not causing the issue.
- Check for any other topics or actions that may be causing the agent to connect to a service representative unnecessarily.
Frequently Asked Questions
What is the first step to take when troubleshooting an Agentforce issue?
The first step is to understand the global instructions and how they interact with the topics and actions in your agent.
How do I remove and re-add a topic from the Asset Library?
To remove and re-add a topic, go to the Asset Library, find the topic, and click the remove button. Then, click the add button and select the topic from the list of available topics.
What if I’ve tried all the troubleshooting steps and the issue still persists?
If you’ve tried all the troubleshooting steps and the issue still persists, consider seeking assistance from Salesforce support.
How do I create a new version of my agent?
To create a new version of your agent, go to the Agentforce dashboard, click on the three dots next to your agent’s name, and select “Create a new version”.
What is the purpose of reconnecting context variables?
Reconnecting context variables ensures that the agent can still access the necessary data and function correctly after making changes to the topics and actions.
Need help shipping this in production?
Genetrix builds and untangles Salesforce Marketing Cloud and Agentforce setups for teams that want it done right the first time. If anything in this post sounds familiar, talk to us before it ships.