anandukch / cowin-whatsapp-Bot

Build your cowin whatsapp bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cowin WhatsApp Bot

Tech Stack

  1. JavaScript
  2. NodeJS
  3. ExpressJS
  4. Twilio Messaging API

How to use

  1. Create a twilio account

  2. Store the credientials in a .env file

    BASE_URL=<cowin-api>
    TWILIO_ACCOUNT=<ACCOUNT SID>
    TWILIO_TOKEN=<AUTH TOKEN>
    
  3. Go to Programmable Messaging->settings-> whatsapp sandbox settings in twilio.

  4. Set up the sandbox with your app url.

  5. Twilio will provide a whatsapp number to start messaging or you can create your own

Local setup

  1. Fork the repository and clone it to your local machine

  2. Install dependencies

    npm install
    
  3. Run the app

    npm start
    
  4. Expose your local development server to the Internet (eg. using ngrok)

  5. Run it in your terminal

  6. Paste the URL from ngrok in the whatsapp sandbox settings

  7. Start messaging

About

Build your cowin whatsapp bot


Languages

Language:JavaScript 100.0%