An open API service indexing awesome lists of open source software.

https://github.com/ovesco/mac-whatsapp-example

An example whatsapp bot using the Twilio API
https://github.com/ovesco/mac-whatsapp-example

Last synced: about 1 month ago
JSON representation

An example whatsapp bot using the Twilio API

Awesome Lists containing this project

README

          

# Whatsapp bot example using Twilio

Here's a very minimalistic example of how running a WhatsApp bot using Twilio API.

## Install
After cloning the repo, run
- `npm install` to install depencencies
- Create a `.env` file based on .env.dist, and fill all missing information (your Twilio SID and auth token)
- `npm run start` to start the express server

## Available commands
After having setup everything as explained in the document, you will be able to send those messages:
- `image`, the bot will then answer with a picture message
- `delay` where the bot will first send a response, and then send a delayed message
- Anything else will be answered with a `You wrote: [...]`

#### Disclaimer
This code snippet was made for the MAC course at the HEIG-VD / Yverdon-Les-Bains, Switzerland