Rasa Asterisk Intergration

Hi, I have built a voice bot and further i want to implement IVR call centre, I have read that the next step is to integrate my voice bot with asterisk. Can anyone please help me with the integration or any other alternate solution

Hi Vin,

just to check, you’re referring to this asterisk service? Also, when you say you’ve built a voice bot. What exactly do you mean with that? What technology have you used for it?

yes i meant the same asterisk which you mentioned. I have built a customer support voice bot using Mozilla STT and TTS tools. I further want to use asterisk to achieve something like this.

I have never worked with asterisk so I can’t really help you there I’m afraid.

One last thing, you mentioned IVR call centre. What does the IVR abbreviation stand for?

Greeting all. I hope my answer will help you or someone.

Integration Asterisk with RASA:

  1. Use Asterisk Gateway Interface (AGI) or FastAGI (implementation the Asterisk Gateway Interface (AGI) over TCP sockets).
  2. AGI or FastAGI create record of voice.
  3. Send a record of voice to the utility of recognition a speech to text (in your case Mozilla STT).
  4. Received text from STT.
  5. Request and receive a response from RASA HTTP API
  6. Use the utility of text to speech (in your case Mozilla TTS) to create a voice from rasa response.
  7. Play audio file created by TTS

Use step 1-7 into a loop.

Start RASA HTTP API:

rasa run -p 8080 --enable-api

Example of request to RASA HTTP API:

curl -XPOST http://IP:PORT/webhooks/rest/webhook -d '{"sender":"ID","message":"TEXT"}'

IP - ip of rasa
PORT - port of rasa
ID - CALLERID(num)
TEXT - text from STT

IVR - Interactive voice response.

From Wikipedia the free encyclopedia:

Interactive voice response (IVR) is a technology that allows humans to interact with a computer-operated phone system through the use of voice and DTMF tones input via a keypad. In telecommunications, IVR allows customers to interact with a company’s host system via a telephone keypad or by speech recognition, after which services can be inquired about through the IVR dialogue. IVR systems can respond with pre-recorded or dynamically generated audio to further direct users on how to proceed.

Recommend to read:

  • RASA HTTP API documentation.
  • Question on this forum “How to connect RASA NLP to our web application”.
  • Asterisk documentation.
1 Like