- Look up customer information from an identifier given by the caller
- Check the status of an order or a request
- Create or update a record in your systems
How it works
- During the conversation, the agent decides from the action name and description that it needs the action.
- The agent fills in the properties you defined, for example a
customer_id, using what the caller said. - The workflow runs: the trigger receives the properties, and the intermediate actions call your systems.
- The last step, Respond to the agent, returns the result, and the agent uses it to continue the conversation.
- Live call trigger: defines when and how the agent can use the action.
- Intermediate actions: use connectors to perform actions.
- Respond to the agent: returns a result to the agent. It must be the last step of the flow.
Timeout
A live call action has a maximum execution time of 15 seconds. This limit doesn’t apply to transfers. If the workflow doesn’t return a response within 15 seconds, it stops and the call continues, without the result of the action.Configure the live call trigger
The live call trigger is the component that exposes the action to your conversational agent during the call.1
Define the action
Set up the basic information of the action:
- Action name: a unique identifier that the agent uses to invoke this action, for example
get_customer_info. Use lowercase words separated by underscores, starting with a verb. - Action description: a clear explanation of the purpose of the action, for example
Retrieves customer information based on a given identifier.
2
Configure dynamic properties
Dynamic properties define the parameters that the agent must provide to run the action:
- Click Add Item for each required parameter.
- For each property, specify:
- Property name, for example
customer_id. - Description, for example
The unique identifier of the customer to look up. - Type: String, Boolean, Integer, and so on.
- Required: whether the parameter is mandatory.
3
Prepare sample data
Sample data lets you test the action:
- Load a sample data set and copy it into the Sample data field.
- Modify the sample data by adding the action parameters.
- Click Retest.
The action description should clearly explain when and why the agent should use this action. A precise description helps the agent determine the right moment to use it.
Write descriptions the agent can act on
The agent relies on the action description and the property descriptions to decide when to run the action and what to pass. Say when to use the action, and what each value looks like.Use data from previous steps
Each step can use the data produced by the steps that come before it. To insert a value:- Click in any input field. The data selector opens.
- Expand the items to check what they contain, then click a value to insert it at the cursor position. You can mix fixed text and dynamic values in the same field.
Data path syntax
step_name['output'] part right, right-click the step on the canvas and select Copy reference.
Configure the response
In the Respond to the agent step, define the response structure in JSON format, and use the data selector to insert values from previous steps.To return a result that the agent can use during the call, the last step of the flow must be Respond to the agent.
- Result found
- No result
Result found
Complete example: look up a customer
This workflow lets the agent retrieve a customer’s information when the caller gives their customer number.1
Live call trigger
Set the action name to
get_customer_info and describe when to use it. Add a required property customer_id of type Integer, described as the customer number stated by the caller.2
Look up the customer
Add a step for your CRM and search for the customer using the value of
customer_id. Test the step to see the fields the CRM returns.3
Respond to the agent
Build the response from the CRM fields. If the lookup finds no customer, return a response with
found set to false.Test and debug
Test the whole workflow before attaching it to a live agent.- Use sample data that includes the action parameters, then click Retest to check the result of the trigger.
- Test each step to confirm that the data you need is available.
- Check that the response of the last step is valid JSON.
- After real calls, open the workflow run history to review each run. Each step shows whether it succeeded or failed, with its input and output.
Common issues
The agent never uses the action
The agent never uses the action
The action description may not make clear when to use it. Describe the situation in which the agent should run the action, and check that the action is set up on the agent.
The agent passes wrong or missing values
The agent passes wrong or missing values
Check the property descriptions and types. Describe the format of each value, and mark as required the properties the workflow cannot run without.
The agent doesn't use the result
The agent doesn't use the result
Check that the last step of the flow is Respond to the agent, and that the response contains the information the agent needs, under clear key names.
The call continues without the result of the action
The call continues without the result of the action
The workflow most likely exceeded the 15-second limit without returning a response. Open the run history to find the slow step, and reduce or speed up the calls to external systems.
The test fails with a JSON error
The test fails with a JSON error
The sample data or the response contains invalid JSON. Look for a missing comma, an unclosed quote, or a dynamic value inserted without quotes in a text field.
Next steps
Configure actions during the call
Attach the workflow to your agent.
Pre-call workflow
Enrich the context before the call starts.