Git Product home page Git Product logo

integrating-rasa-with-whatsapp's Introduction

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.

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.