Giter VIP home page Giter VIP logo

sample-autopilot-voice-ivr's Introduction

Twilio

Voice-Powered IVR Chatbot with Autopilot

Actions Status

About

Interactive Voice Response or IVR is an automated telephony system that interacts with human callers through the use of voice and touch-tone keypad selections (DTMF tones).

This application shows how to build an IVR application using Twilio Autopilot. Autopilot is a conversational AI platform to build, train, and deploy artificially intelligent applications that can interact with users over multiple channels.

Implementations in other languages:

.NET Java Python PHP Ruby
TBD TBD TBD TBD TBD

How it works

This is a very simple application that provides a setup page where the user can enter all configurable values for the IVR tree. When the setup form is submitted it will run an async script to create all tasks for the IVR workflow in an Autopilot Assistant.

The application also provides a couple of endpoints to handle webhooks and return dynamic tasks for the IVR.

Features

Set up

Requirements

Twilio Account Settings

This application should give you a ready-made starting point for writing your own IVR application using Autopilot. Before we begin, we need to collect all the config values we need to run the application:

Config Value Description
Account Sid Your primary Twilio account identifier - find this in the Console.
Auth Token Used to authenticate - just like the above, you'll find this here.
Phone number A Twilio phone number in E.164 format - you can get one here

Local development

After the above requirements have been met:

  1. Clone this repository and cd into it

    git clone [email protected]:twilio-labs/sample-autopilot-voice-ivr.git
    cd sample-autopilot-voice-ivr
  2. Install dependencies

    npm install
  3. Set your environment variables

    npm run setup

    See Twilio Account Settings to locate the necessary environment variables.

  4. Run the application

    npm start

    Alternatively, you can use this command to start the server in development mode. It will reload whenever you change any files.

    npm run dev

    Your application is now accessible at http://localhost:3000

  5. Make the application visible from the outside world.

    Your application needs to be accessible in a public internet address for Twilio to be able to connect with it. You can do that in different ways, deploying the app to a public provider or using ngrok to create a tunnel to your local server.

    If you have ngrok installed to open a tunnel to you local server run the following command

    ngrok http 3000
    

    Now your application should be available in a url like:

    https://<unique_id>.ngrok.io/
    
  6. Run the autopilot assistant setup

    The application provides a setup form that when submitted it will create or update the assistant and its tasks. Go to /setup in your application, update the configurable fields accordingly, and submit the form to set up the autopilot assistant.

    That's it! Now you can try the IVR calling your Twilio phone number.

Tests

You can run the tests locally by typing:

npm test

Cloud deployment

Additionally to trying out this application locally, you can deploy it to a variety of host services. Here is a small selection of them.

Please be aware that some of these might charge you for the usage or might make the source code for this application visible to the public. When in doubt research the respective hosting service first.

Service
Heroku Deploy
Glitch Remix on Glitch
Zeit Deploy with ZEIT Now

Resources

Contributing

This tutorial is open source and welcomes contributions. All contributions are subject to our Code of Conduct.

Visit the project on GitHub

License

MIT

Disclaimer

No warranty expressed or implied. Software is as is.

sample-autopilot-voice-ivr's People

Contributors

dprothero avatar jonedavis avatar maylonpedroso avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sample-autopilot-voice-ivr's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.