Skip to main content
This feature is not enabled by default. Please contact support to activate it on your account.
A pre-call workflow runs automatically when a call comes in, before the agent picks up. The workflow can look up data in your own systems and hand it to the agent as context. It can also change the agent configuration for this call only, or stop the call and trigger the failover action. Typical uses:
  • Retrieve the customer history before the conversation starts
  • Personalize the welcome message based on the data you find
  • Adapt the agent configuration to the caller’s profile

How it works

Every pre-call workflow follows the same sequence:
  1. A call comes in and Volubile starts the workflow with information about the call.
  2. Your workflow runs its steps, for example a lookup in your CRM.
  3. The last step, Respond to the agent, returns the data the agent will use.
  4. The call starts with that context and configuration.
A pre-call workflow always has two mandatory steps:
  1. Pre-call trigger: starts the workflow and lets you define the test data.
  2. Respond to the agent: structures the information available to the agent during the call. 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 and limit the number of calls to external systems.

Timeout

If the workflow doesn’t return a response within 15 seconds, it stops and:
  • if a failover action is configured on the agent, the failover action runs;
  • if no failover action is configured, the call proceeds normally, without the context or configuration the workflow would have returned.

Configure the pre-call trigger

The pre-call trigger is the starting point of the workflow. Use it to test and validate the data your agent will receive.
1

Generate sample data

In the trigger configuration, find the Generate sample data section and click Load sample data.
2

Edit the test data

Copy the data into the Test input data field and change the values to match the case you want to test.
3

Test the trigger

Click Test to validate the configuration.
The test data must be valid JSON. An invalid format causes errors when the workflow runs.

Trigger data

The trigger provides information about the incoming call. Every following step can use it.
Sample trigger data

Use data from previous steps

Each step can use the output of 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.
Dropdown fields don’t accept data from previous steps by default. Switch the field to a dynamic value to use one.

Configure Respond to the agent

Respond to the agent is the final step. It defines what the agent receives for this call.
To return context or configuration for the call, the last step of the flow must be Respond to the agent.
In this step, write the response in JSON and use the data selector to insert values from the previous steps. Choose the structure that matches what you need to do.
To provide information to the agent without changing its configuration, return your data directly:
Context only

Complete example: greet a known customer

This workflow looks up the caller in a CRM and greets them by name.
1

Pre-call trigger

The trigger provides the caller’s phone number in the from field.
2

Look up the contact

Add a step for your CRM and search for a contact using the value of from. 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 contact, return a generic welcome message.
Response returned for a known customer:
Respond to the agent

Test and debug

Test the whole workflow before enabling it on a live agent.
  • Use the Test button on each step to check its result and confirm that the data you need is available.
  • Check that the final JSON is valid and that the keys match one of the three structures above.
  • 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, so you can see where the data stopped.

Common issues

Check that the last step is Respond to the agent. If you use agentConfiguration, check that the context is inside the context key: anything outside context and agentConfiguration is ignored.
The test 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.
The step that produces this value was not tested, or the lookup returned no result. Test the step, check its output, and handle the no-result case in your response.
The workflow most likely exceeded the 15-second limit without returning a response. If a failover action is configured on the agent, it runs. Otherwise, the call proceeds normally without the pre-call data. Open the run history to find the slow step, and reduce or speed up the calls to external systems.

Next steps

Set up pre-call actions

Attach the workflow to your agent.

Dynamic configuration

See every parameter you can change per call.