Skip to content

manuelf18/twilio-whatsapp-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twilio Whatsapp Server

This is a very basic express server that responds to a POST request with some cards from Espress Server Tarot

How to run?

  1. Clone this repository
  2. Install dependencies: npm install
  3. Start: npm start or node app.js or nodemon

Instructions

These instructions are for making the Twilio API for Whatsapp make a request to our server. The server must be deployed on the web, so I deployed mine using Heroku.

  1. In the whatsapp/learn page of Twilio, we need to follow the instructions of joining the Whatsapp sandbox.
  2. In the whatsapp/sandbox page of Twilio, there will be a input of WHEN A MESSAGE COMES IN there we will set the url of our express server.
  3. The twilio API is gonna make a POST request to our server and we need to handle it, in my case I respond with a GET request to my tarot server (link above), and then express sends a respond in the form of the TwiML™ standard.
  4. Anytime sends a message to the twilio bot, it will respond with the tarot cards.

About

An express server for twilio

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published