Setting up routing interactions to Vonage AI Studio's Voice API

Setting up routing interactions to Vonage AI Studio's Voice API

Vonage AI Studio's Voice API uses artificial intelligence (AI) to interpret a contact's request. It can then ask clarifying questions to formulate an appropriate response. That response may, for example, reference content from an FAQ, propose an action to update or read the contact's data, or route the interaction to a real agent using an appropriate interaction plan.

For more information about Voice API, see Voice API.

How do I route an interaction to a virtual agent within Voice API?

Before you can route a phone interaction from Vonage Contact Center (VCC) to Voice API, you must have a Vonage AI Studio account. From within Vonage AI Studio:

  1. Get an API key for Vonage AI API. Save the API key to use later. For information about getting an API key for Vonage AI API, see Vonage AI Studio authentication.

  2. Create a virtual agent and configure the agent's conversation. Save the agent's ID and virtual number to use later. For information about creating a virtual agent, see Create a new Vonage AI Studio agent.

  3. Take a look at response parameters that your virtual agent can return. You will be able to choose which of these you want to get data from and map to data sources in VCC. For information about response parameters, see Vonage AI Studio parameters.

To route an interaction to a virtual agent within Virtual Assistant, create a Voice API applet. Complete the following sections:

Set up your connection to Vonage AI Studio’s Voice API

Provide virtual agent credentials to connect your VCC account to a virtual agent in Voice API.

Field

Options

Description

Field

Options

Description

Interaction type

Call or Chat

Select the type of interaction that the virtual agent works with.

API key

Text

Your API key for Vonage AI API. You should have generated and saved the API key in step 1 in earlier in this page.

As you type in the API key and when you save the key, the actual key is masked using asterisks.

ID

Text

The ID of the virtual agent in Voice API. You should have created a virtual agent and saved its ID in step 2 earlier in this page.

Number

Text

The number for the virtual agent that will handle the interaction. You should have created a virtual agent and saved its number in step 2 earlier in this page.

Region

EU or US

The region is defined in AI Studio while creating a virtual agent. The value is set automatically using data from AI Studio when connection details are verified. 

After completing this section, click Update to verify the credentials and get parameters from Voice API.

If connection details are not correct, an error is displayed and the mapping section does not appear.

Send VCC data to Voice API

Define which VCC data source values to send to the virtual agent in Voice API. Map these data sources to VA parameters that will use the data.

Field

Options

Description

Field

Options

Description

VCC data source

Data source

Name of the VCC data source whose data you want to send to the virtual agent in Voice API.  Identify data sources using the $(DataSourceName) format, for example, $(name).

Voice API parameter

List of Voice API parameters

The list of parameters defined in Voice API in AI Studio. Select a Voice API parameter that will receive the corresponding data source value. 

For example, CALLER_PHONE_NUMBER.

To add a new mapping, click Add

To delete an existing mapping, click Delete.

Duplicate Voice API parameters

If you try to map a VCC data source to a Voice API parameter more than once, an error will appear and you will not be allowed to save the applet.

Get data from Voice API

Add Voice API parameters containing data collected by the virtual agent in Voice API. Map the parameters to VCC data sources that will use the data.

Field

Options

Description

Field

Options

Description

Voice API parameter

List of Voice API parameters

The list of parameters defined in Voice API in AI Studio. Select a Voice API parameter that will contain data to set in the corresponding VCC data source. 

For example, CALLER_PHONE_NUMBER.

VCC data source

Data source

Name of the VCC data source you want to receive Voice API parameter data from the virtual agent in Voice API.  Identify data sources using the $(DataSourceName) format, for example, $(name).

To add a new mapping, click Add

To delete an existing mapping, click Delete.

Duplicate VCC data sources

If you try to map a Voice API parameter to a VCC data source more than once, an error will appear and you will not be allowed to save the applet.

Custom Voice API parameters

The Voice API parameter list contains both system and custom parameters that are defined in Voice API in AI Studio. If the virtual agent does not set a value for the custom parameter, no value is returned — the VCC data source's value remains the same as before the interaction was routed to the virtual agent.

Configure next applets

Choose where interactions should go next, on either success or failure.

Field

Options

Description

Field

Options

Description

Next Applet

List of available applets

Select the applet that the interaction is routed to when interaction with the virtual agent is completed.

Next Applet On Failure

List of available applets

Select the applet that the interaction is routed to if it cannot be transferred to the virtual agent.

For more information about the Voice API, see Virtual Assistant applet.

Support and documentation feedback

For general assistance, please contact Customer Support.

For help using this documentation, please send an email to docs_feedback@vonage.com. We're happy to hear from you. Your contribution helps everyone at Vonage! Please include the name of the page in your email.