Git Product home page Git Product logo

voiceflow-twilio-ivr's Introduction

VoiceFlow - Twilio IVR

VoiceFlow - Twilio IVR

This is a Flask app to link your VoiceFlow project with your Twilio phone number and create an IVR.


Go to VoiceFlow and grab your Project VERSION_ID and your API_KEY from the Integration tab.
Voiceflow keys

Add them to your Python environment variables with the names:

VF_PROJECT_VERSION_ID
VF_API_KEY

Deploy your Flask app (out of this scope) and copy your app URL.

Then go to Twilio and paste your app's URL as the webhook for the incoming calls to your phone number.

Twilio webhook set up


Settings

Change the following variables to your best options in app.py:

language = 'en-US'
voice = 'alice'
timeout = 5

You also need to add a VoiceFlow variable named choices. This is important for the choices mapping to phone keypad input (more details in Features below).


Features

  1. The script will handle VF choices block to let you input each choice as number options in the phone dial pad, and of course, keeping the voice input available.
    Choices mapping
    Do not forget to add the choices variable to your VF project.

  2. To forward a call, just use the text call_forwarding: followed by the phone number to redirect the call.
    For example:
    Call forwarding feature


Known issues:

  • Audio support: The issue is that when you upload a file to VF using the Audio block, the URL you get in the API is pointing to an application/octet-stream MIME type and Twilio API does not support that kind of audio files.
    A possible solution could be just place the URL to your correct encoded audio file in VF.


About this project

This project was created by:
Daian Gan
Github: daiangan
E-mail: [email protected]
Website: https://daiangan.com

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.