- Retrieve customer history before a call
- Personalize the welcome message based on available data
- Dynamically adapt the agent configuration based on the caller’s profile
The pre-call workflow consists of two mandatory main steps:
- Pre-call Trigger - Initializes the workflow and configures the test data
- Return Context - Prepares and structures the information that will be available during the call
Configuring the Pre-call Trigger
The pre-call trigger is the starting point of your workflow. It allows you to test and validate the data that will be used by the voice agent.Create a Sample Data
To effectively test your workflow, you need to generate a representative sample of data:
- In the configuration interface, locate the section Generate Sample Data
- Click the Load Sample Data button
Configuring the Return Context
The return context is the final step that prepares the information that will be available to the agent during the call.If you want to return a context and/or configuration for the triggered call, make sure that the last step in the flow is a Return Context.
The return context allows you to:
- Structure relevant information for the agent
- Ensure continuity between pre-processing and the call
- Personalize the customer experience based on available data
- Dynamically adapt the agent configuration based on the caller’s profile or the context of the call
Set Up Pre-Call Actions
Return structure
In the Return Context step interface, you can define the response structure in JSON format:Option 1: Context only
If you are only modifying the context, return your data directly:Option 2: Context and configuration
If you also want to modify the agent configuration, use this structure:To discover all the parameters available in
agentConfiguration and understand how to use them, see the complete documentation on dynamic configuration.Option 3: Explicitly triggering failover
If you detect a condition that prevents the proper execution of the call (missing critical data, external system unavailable, business rule not met), you can explicitly trigger failover:When
failover: true is returned, the failover action configured on the agent will be executed immediately. The rest of the pre-call workflow response will be ignored.Configure the failover action
Learn how to configure the action that will be executed when failover is triggered