Skip to main content
This feature is not enabled by default. Please contact support to activate it on your account.
A live call workflow gives your agent an action it can run in the middle of a conversation. The agent decides when to use it, provides the parameters you defined, and uses the result in its next answer. Typical uses:
  • 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
A pre-call workflow runs once, before the call starts. A live call workflow runs during the call, when the agent decides to use it.

How it works

  1. During the conversation, the agent decides from the action name and description that it needs the action.
  2. The agent fills in the properties you defined, for example a customer_id, using what the caller said.
  3. The workflow runs: the trigger receives the properties, and the intermediate actions call your systems.
  4. The last step, Respond to the agent, returns the result, and the agent uses it to continue the conversation.
A live call workflow generally consists of:
  1. Live call trigger: defines when and how the agent can use the action.
  2. Intermediate actions: use connectors to perform actions.
  3. Respond to the agent: returns a result to the agent. It must be the last step of the flow.
The caller is waiting while the workflow runs, and the maximum execution time is 15 seconds. Keep the workflow short, limit the number of calls to external systems, and return only what the agent needs.

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:
  1. 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.
  2. 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:
  1. Click Add Item for each required parameter.
  2. 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:
  1. Load a sample data set and copy it into the Sample data field.
  2. Modify the sample data by adding the action parameters.
  3. 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.
Type each property correctly to avoid runtime errors. For example, if you expect a numeric identifier, use the Integer type.

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:
  1. Click in any input field. The data selector opens.
  2. 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.
Test each step before adding the next one. A step that has not been tested has no data to offer in the selector. If a value is missing from the selector, write its path manually:
Data path syntax
To get the step_name['output'] part right, right-click the step on the canvas and select Copy reference.
You can access pre-call context data in your action during the call. This allows you to reuse previously retrieved information as well as system variables.

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.
Use clear key names and return only the information the agent needs to answer. Also plan for the case where nothing is found, so the agent can tell the caller instead of guessing.
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 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.
Check the property descriptions and types. Describe the format of each value, and mark as required the properties the workflow cannot run without.
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 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 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.