How to add conversational AI to your toll-free voice

Get started with this 6-step guide.

There’s perhaps no hotter topic than artificial intelligence (AI) in 2023. For contact centers, the pressure is on to add & fine-tune their contact center AI strategies.

The 2 biggest challenges for starting new AI projects is proving AI’s business value (37%), followed closely by choosing the right AI technologies (33%). Implementation can be long, difficult, and costly, and directing resources to AI is a trade-off that prevents enterprises from focusing on other initiatives. 

Enterprises looking to introduce Conversational AI to their contact center or switch platforms need implementation solutions that integrate conveniently with back-end tools and their chosen AI provider. With AIBridge, enterprise contact centers can easily add in Voice AI solutions, test them, and swap them out (if need be). 

An overview of conversational AI

Conversational AI is any technology that you can talk to. Think of conversational AI as a virtual agent or a chatbot. By understanding, interpreting, and responding to human language via speech recognition, natural language processing (NLP), and text-to-speech/speech-to-text (TTS/STT) capabilities, conversational AI can interpret and respond to conversations. 

Skipping custom integrations with AIBridge

For contact centers, conversational AI offers many benefits—but adding & integrating voice AI into call flows is a massive undertaking. Instead, organizations can use a pre-integrated conversational AI solution with Bandwidth’s AIBridge.  

AIBridge allows you to easily test and deploy new voice AI tools in the contact center, without as much overhead that comes from building custom integrations. With AIBridge, enterprises can: 

  • Test & swap conversational AI tools: With pre-built integrations with leading AI & TTS/STT providers, it’s easier to introduce and manage voice bots in your contact center.
  • Cut development time: Add your own TTS/STT provider or bring your own to AIBridge’s pre-built integrations with Cognigy and Dialogflow to your call flows for your best-in-class CX stack.
  • Improve Customer Experience (CX): Enhance, standardize, and streamline contact center experiences with seamless connections to virtual agents. 
  • Scale up and down. Meet fluctuating contact center demand around the clock—even amidst staffing challenges and increasing costs.

Enterprise Communications Landscape 2024

Hear how 1,000 IT leaders are using AI/ML in their contact centers.

How AIBridge’s conversational AI integration works

When a call is received to a Bandwidth number, through AIBridge we deliver this call to your Cognigy instance. Bandwidth automatically handles the conversion of text-to-speech and speech-to-text in the call flow using API keys that you have provided from your selected vendor (such as Google).

What you need to get started

To connect your toll-free numbers to a conversational AI provider, you need three things: 

  1. A voice AI provider with TTS/STT capabilities.
  2. A telephony provider to power voice interactions.
  3. A Google Cloud Platform account for TTS/STT services. 

In this blog, we’ll use Cognigy as our voice bot and Google Cloud Platform for TTS/STT. 

How to add conversational AI to your contact center

This guide uses AIBridge’s pre-built integrations to conversational AI to accelerate the adoption of virtual agents to deliver better customer experiences at scale. Once you’ve got a TTS/STT provider and toll-free services to power your contact center telephony, follow these five steps: 

Step 1: Create your Bandwidth endpoint in Cognigy

Endpoints are used to connect external channels such as your toll-free service provider to Cognigy. Bandwidth converts channel-specific inputs and outputs to the standardized Input object accepted by Cognigy.

  1. In the Cognigy portal, create an agent or select an agent you have already created.
  2. Then, navigate to Deploy -> Endpoints and click on New Endpoint to create this. Make sure you include a user-friendly name, and select your VoIP provider as the Endpoint Type. Save your progress, and copy your endpoint URL to use at a later step.

Step 2: Register your Cognigy endpoint with your toll-free provider

Once you’ve created your telephony endpoint in Cognigy, you must register this on the Bandwidth Dashboard.

  1. Login to the Bandwidth Dashboard. In the top navigation bar click on Account, and select Integrations.
  2. Click on Add Integration, and AIBridge will be selected by default, and save this integration. Make sure you:
    1. Select Cognigy for the Integration Type. 
    2. Select Bot for the Roles.
    3. Provide an optional friendly description.
    4. Provide your Cognigy endpoint URL for the bot URL.

Step 3: Register your TTS/STT provider in the Bandwidth dashboard

Because Cognigy only provides bot functionality, you also need an STT/TTS provider. Through AIBridge, Bandwidth uses APIs to automatically convert text-to-speech and speech-to-text. This is a Bring-Your-Own (BYO) service, so you need your own account and billing relationship with your selected provider. In this example, we’ll use Google Speech-to-Text and Text-to-Speech

Registering your TTS/STT provider

  1. Log in to Google Cloud Platform and select the relevant GCP Project.
  2. Create a new service account, or use an existing service account. We recommend creating a new service account to only deal with a certain set of permissions that have been granted.
  3. Navigate APIs & Services and Library in the left-hand navigation. 
  4. Search for Speech-to-Text, click on Cloud Speech-to-Text API, and click on Enable
  5. Go back to the Library. Search for Text-to-Speech, click on Cloud Text-to-Speech API and select Enable.
  1. Click on Manage for Cloud Text-to-Speech API followed by Credentials in the left-hand menu.
  2. Ensure the service account is selected and created earlier to enable this service.
  3. Go to IAM & Admin and IAM in the left-hand navigation.
  4. Click on edit for the service account. 
  5. Assign IAM roles Cloud Speech Client and Cloud Speech-to-Text Service Agent to enable this service.
  6. Go to IAM & Admin and Service Accounts in the left-hand navigation.
  7. Click on the existing service account and go to the Keys tab. 
  8. Click on Add Key and Create new key. Select JSON and click Create.
  9. Save the private key and your client email to provide to Bandwidth in the next step.

Bandwidth Dashboard

  1. Login to the Bandwidth Dashboard
  2. In the top navigation bar click on Account and select Integrations
  3. Click on + Add Integration
  4. The Integration Product AIBridge will be selected by default
  5. Under Settings:
    1. Select Google for the Integration Type.
    2. Select Text to Speech and Speech to Text for the Roles.
    3. Provide an optional friendly description.
    4. Provide your Private key.
    5. Provide your Client email.
    6. Provide the appropriate region and location, like, Global. More information on available Google regions can be found here.
    7. Provide the appropriate environment, like, Production. More information on available Google environments can be found here.
    8. Provide your Project ID. More information on finding your project ID can be found here.
  6. Click on Add to save this integration.

Bandwidth is now ready to consume Google services directly from your account. Any billing records for TTS/STT will be directly generated in your Google Cloud Platform account. 

Step 4: Create your bot

Once you have created your bot framework and selected your Text-to-Speech and Speech-to-Text provider, you’re ready to link these all together to create your bot.

Bandwidth Dashboard

  1. In the top navigation bar click on Applications and select Bots.
  2. Click on + Create Bot.
  3. Enter a name and description for your Bot.
  4. Select the relevant name of the bot for the bot Framework created in step 2.
  5. Select the relevant name for the Text-to-speech and Speech-to-text provider created in step 3.
  6. Select the appropriate Voice name and Language for your text-to-speech service. More information on available values can be found here.
  7. Click on Save to create your bot.

Step 5: Route phone numbers to your bot

First, order a phone number from Bandwidth or select an existing number. You can route Bandwidth numbers to your bots however you want, using Advanced Call Routing

Bandwidth Dashboard: Locations

Locations help you organize your phone number inventory. When a number is added to a Location, it inherits the settings and properties of that Location. ACR settings apply to all numbers on a Location. 

  1. In the top navigation bar, click on Account and select Locations
  2. Click + Create Location or select an existing location
  3. Click on the Voice tab for Create Location
  4. Click + Create Primary Route under Routing
  5. Select Route To AI-Bridge Bot  for the Action
  6. Select the relevant name of the bot created in step 4.
  7. Click on Save Changes or Create Location

Bandwidth Dashboard: TNs

Advanced Call Routing settings can be applied to one or many phone numbers. To set up conversational AI for this phone number, you need to add the route and endpoint on that number’s Phone Number Details page.

  1. In the top navigation bar, click on Numbers and select My Numbers.
  2. Find the relevant phone number and click on the phone number, scrolling down to the Routing section.
  3. Click + Create Primary Route.
  4. Select Route To AI-Bridge Bot for the Action.
  5. Select the relevant name of the bot created in step 4.
  6. Click on Save, and Submit under Routing.

Visual Builder: Locations or TNs

The Visual Builder is a drag-and-drop, no-code graphical user interface (GUI) that allows you to create complex call flows for inbound calls. Call flows can be created at the location or individual Telephone Number (TN) level. 

  1. In the top navigation bar, click on Visual Builder.
  2. Click on + Create New Flow.
  3. Select whether the flow will be applied at the Phone Number or Location by selecting the relevant option.
  4. Add the Advanced Call Routing node under Call Control.
  5. Add the AIBridge node under Integrations.
  6. Select the relevant name of the bot created in step 4.
  7. Select Publish or Publish As.

Step 6: Set up your Virtual Agent flow in Cognigy

Flows in Cognigy are a visual representation of a potential dialog in a user-friendly interface. Flows are composed of individual Nodes with different functionalities, ranging from generating output to collecting back-end information. The flow will be automatically executed as soon as a call comes into the numbers you have routed to the Cognigy endpoint.

Cognigy

Follow these basic steps to create your flow.

  1. Log into the Cognigy platform, and select your agent.
  2. In the left hand menu, navigate to Build -> Flows
  3. Click on New Flow.
  4. Enter a friendly name and description.
  5. Click on Create.

Once your flow is set up, you can link this Cognigy virtual agent to your Bandwidth endpoint (if this hasn’t already been completed).

  1. In the left hand menu, navigate to Deploy -> Endpoints and click on your existing Cognigy Endpoint.
  2. Under Flows select the flow, and click on Save.

Once this step is completed, you have successfully linked Bandwidth to Cognigy via AIBridge. Any incoming calls will be directly routed to your bot.

Get started with AIBridge

Bandwidth’s AIBridge allows you to easily test and deploy new Voice AI tools in the contact center, without all the overhead of building custom integrations. Our pre-built integrations with top AI providers, take development time down from weeks to hours. 

And, without the burden of technical debt, unlocks a new level of flexibility to add and switch out vendors as desired, and continuously refine your customer experience. Don’t let limited resources or a backlog of roadmap responsibilities get in your way.