Skip to content

Tharuntan/Integrating-rasa-with-whatsapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Preview

Screenshot 2020-07-11 at 21 55 07

Rasa

  • RASA is an opensource framework for building AI-powered chatbots. You can use RASA to create awesome bots for various channels such as Facebook, Telegram, Slack, etc.Here i have created a Automated chatBot for covid-19 cases using whatsappApi ,Rasa and Twilio.

Installation

Start App

  • Clone/Download the repo.https://github.com/Tharun-Mamillapalli/Rasa-Bot.git
  • cd into folder.
  • Run rasa init.
  • Change the values in data/nlu.md your NLU training data,
  • data/stories.mdyour stories,
  • domain.ymlyour assistant’s domain,
  • actions.pycode for your custom actions,
  • credentials.ymldetails for connecting to other services,
  • endpoints.ymldetails for connecting to channels like fb messenger,to suit your use-case.

API used

  • "https://api.covid19india.org/data.json"

Run App

  • Run conda activate rasa to activate rasa environment .
  • Run rasa train to train the updated data.
  • Run rasa run actions in the another terminal simultaneously .
  • Run rasa shell to start a chat session with your assistant .

Rasa X

  • Install Rasax and run rasaxto deploy your assistant on local host.

Twilio

  • Twilio provides a telephony infrastructure web service in the cloud, allowing web developers to integrate phone calls, text messages and IP voice communications
  • Signup for a Twilio account Here
  • Create a Project

Integrating Twilio with rasa

  • Enable Whatsapp sandbox under Programmable SMS.Here.
  • Add Twilio channel to your RASA credentials.yml.More info here.
  • twilio: account_sid: "<TWILIO ACCOUNT ID>" auth_token: "<TWILIO AUTH TOKEN>" twilio_number: "whatsapp:<TWILIO NUMBER>".
  • Launch your rasa instance. You can use ngrok to get a public https URL for your bot instance. More info Here.
  • ./ngrok http 5005; rasa run.
  • https://<your id>.ngrok.io/webhooks/facebook/webhook
  • Add your Rasa Twilio Webhook to Sandbox configuration .
  • And also add webhook in the message callback Here
  • Finally follow the instruction to join the WhatsApp sandbox from your mobile number Here.
  • Now you have your RASA bot integrated with Whatsapp.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages