Nexmo logo on photo of phone headset

Over.ai and Nexmo: The future of outbound calls

From proactive customer service to satisfaction surveys and renewals, outbound calls are key to effective customer communication. 

Over.ai now supports native integration with Nexmo that allows developers and enterprises to easily build inbound and outbound AI services and natively integrate them with their telephony operation, powering an effective, customized, 24/7 contact center solution.

To demonstrate the steps required to set up an outgoing call powered by conversational AI, we’ve created a tutorial for building an outgoing AI agent that can call a restaurant and make a reservation (similar to the Google Duplex demonstration at the Google I/O).

Building the agent involves 6 easy steps:

  1. Sign up at developers-v2.over.ai
  2. Go to our GitHub and download the reservation demo agent
  3. Import the agent into your account
  4. Create NCCO file for making an outgoing call
  5. Get all the tokens needed to make the call 
  6. Initiate the call

Details:

1. Over.ai signup: Go to the Over.ai Developers Portal and signup as a developer. Confirm your account via email.

On the Agents dashboard – click on “Import Agent” on the top right.

Buttons for Import Agent and Create New Agent

2. Visit our Over.ai GitHub repository, right click on the zip file, download and save the zip locally on your computer.

Screenshot of Over.ai's GitHub repository

 

 

3. On the Over.ai Agents Import screen, choose the downloaded zip, click on “Import”, and choose a name for the agent. You can modify the agent to suit your use case. 

4. Read the Nexmo outbound calls tutorial. Notice the answering URL for the NCCO. The file indicates what to do when the call is connected. You need to create one in order for Nexmo to connect with over.ai‘s IP endpoint. 

5. Return an NCCO that connects Nexmo to Over.ai using this code:


[
    {
        "action": "connect",
        "eventUrl": [
             "https://example.com/events"
         ],
         "from": "97299999999",
          "endpoint": [
          {
                "type": "sip",
                "uri": "sip:NEXMO-AAA-BBB@sbc.over.ai"
          }
         ]
     }
]

In the SIP endpoint template:

AAA – the Over.ai agent ID
BBB – the Over.ai developer ID

CCC – Nexmo user ID
DDD – Nexmo API secret

How do you obtain the keys?

a. In Over.ai, right click on your agent and click on “API Keys”

b. In the Nexmo dashboard, go to https://dashboard.nexmo.com/getting-started-guide

6. Make the call. You can use the Nexmo API to make outbound calls. You’ll need to make sure your code uses the NCCO file you created earlier. Link to Nexmo outgoing call.

Video Tutorial: