JavaScript

Create a NCCO

A Nexmo Call Control Object (NCCO) is a JSON array that you use to control the flow of a Voice API call. More information on NCCO can be found here.

The NCCO must be public and accessible by the internet. To accomplish that, you will be using GitHub Gist that provides a convenient way to host the configuration:

1) Make sure you are logged into GitHub and then go to https://gist.github.com/.

2) Enter ncco.json into "Filename including extension".

3) Copy and paste the following JSON object into the gist:

[
    {
        "action": "talk",
        "text": "Connecting you to Bob"
    },
    {
        "action": "connect",
        "endpoint": [
            {
                "type": "app",
                "user": "Bob"
            }
        ]
    }
]

4) Click the Create secret gist button:

#{alt_text}

5) Click the Raw button:

#{alt_text}

6) Take note of the URL shown in your browser, you will be using it in the next step.