Twilio ASR IVR Dashboard

by abhijitmehta


Twilio ASR and Intent Realtime Dashboard

This demo is about the power of using Twilio realtime Automated Speech Recoginition (ASR) and Intent analysis system (Dialogflow) in an IVR. Because Twilio makes it so easy to collect customer speech and related intent, one of the business benefits is direct access to what your customers are calling for and saying so the calls can be routed accurately.

Let's say your organisation want to implement a Speech or Chat bot in your customer journey. The first question that arises is how should the bot be designed, what intents will it recognise so the calls are routed correctly with the right context to the customer care agent. There are two options to go about - one is to use your own judgement/guess work to design the intents the bot will recognise. Or, you can directly listen to your customers and create the best experience. That's exactly what some of our most brand concious customers have done. They integrated this code into their production contact centre. Once they collected thousands of customer speech phrases, they've started refining their bot for most accurate intent based routing.

Lets get started...

Realtime ASR and Intent Dashboard

You'll need following accounts:

  1. Twilio (
  2. Dialogflow (
  3. Heroku (if you want a one-click install) (


  1. Twilio Speech Recoginition (
  2. Twilio Sync (
  3. Server side app using Python and Twilio REST APIs (Sync)
  4. Dialogflow REST API
  5. Dashboard app components: 5.1) Javascript framework Vue.js ( 5.2) UI framework Semantic-ui ( 5.3) Twilio Sync JS SDK (


Configuring Dialogflow

  1. Upload the file into the Dialogflow console (
  2. Obtain the developer access key from the dialogflow console (
  3. You'll need this key when you configure during Heroku app install

Obtaining Credentials and Sync Service ID

  1. Log into your Twilio console to get: 1.1) Account SID and Auth Token from console dashboard 1.2) API Key and Secret ( 1.3) Create a Sync Service (
  2. You'll need the Twilio Credentials and Sync Service ID during the Heroku app install

Create a Sync Map (ASRBotEvents)

Sync Map object is used to store call details along with ASR and Intents. This map is subscribed by the frontend dashboard. Run the following CURL command: curl -X POST<SYNC_SERVICE_ID>/Maps
-d 'UniqueName=ASRBotEvents'

One Click Heroku Deploy of Web App

This will install the wep application and all the dependencies on Heroku (login required). As part of the installation, the Heroku app will walk you through configuration of environment variables. Please click on the following button to deploy the application.


Configuring Twilio inbound phone number

  1. Log into your Twilio console and purchase a phone number
  2. Assign the URL https://<YOUR_HEROKU_APP_URL>/start?language=en-GB to the phone number

You're all set

Now, Navigate to https://<YOUR_HEROKU_APP_URL>

As the phone calls come into your Twilio phone number, the user ASR and Intent will be displayed in the dashboard.

I look forward to your feedback. Ameer