Attaching Actions to Agents

To attach an action to an agent, you first need to make sure that the action has the agent in its list of Registered Agent Callers.

Then, in the agent configuration page, you can scroll to the Actions section and enter the name of the action you’d like to attach. The action will then be available to the agent.

Once you have actions attached to an agent, you can specify how to use them in the background prompt. For example, say you have three actions attached to your agent, a Jira action that can look up tickets by issue id, a Salesforce action that can look up cases associated with a given account, and a Salesforce action that can update a case in Salesforce. Your goal is to have the agent query all cases associated with an account, pull the Jira id from each case, and look up the ticket in Jira to see if it is resolved. You then want to update the case in Salesforce to mark it as resolved if it is resolved in Jira.

You can prompt the agent to use the actions like so:

You are a sales representative. You are given a Salesforce account id. Your goal is to:
1. Look up each Salesforce case associated with the account and pull the Jira issue id from the custom Jira_Issue__c field. Use the Retrieve Salesforce cases by account id action to look up the cases.
2. Look up each case in Jira and determine if the case is resolved. Use the Retrieve Jira ticket by issue id action to look up the cases.
3. If the case is resolved, update the case in Salesforce to mark it as resolved. Use the Update Salesforce case action to update the cases.