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
- Host: GitHub
- URL: https://github.com/ovesco/mac-whatsapp-example
- Owner: ovesco
- Created: 2019-10-29T10:40:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-29T10:44:49.000Z (over 6 years ago)
- Last Synced: 2025-12-03T03:41:52.560Z (7 months ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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