All Projects → philnash → ruby-whatsapp-bots

philnash / ruby-whatsapp-bots

Licence: MIT license
A repo of WhatsApp bots built in Ruby

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to ruby-whatsapp-bots

quarantine-bot
WhatsApp bot powered by Twilio API to get through the quarantine. Latest COVID19 statistics, world news, inspirational quotes and cat photos.
Stars: ✭ 24 (+33.33%)
Mutual labels:  twilio, twilio-api, whatsapp-bot
twiml template
TwiML templates for Rails and Tilt.
Stars: ✭ 16 (-11.11%)
Mutual labels:  sinatra, twilio
alice
Alice is a whatsapp bot made to manage coding groups.
Stars: ✭ 14 (-22.22%)
Mutual labels:  whatsapp, whatsapp-bot
Virdina-Brainly
Bot Whatsapp untuk brainly
Stars: ✭ 23 (+27.78%)
Mutual labels:  whatsapp, whatsapp-bot
twiliolo
Golang API wrapper for Twilio API [WIP]
Stars: ✭ 25 (+38.89%)
Mutual labels:  twilio, twilio-api
wireless-portable-fax
Build a cellular connected portable fax machine
Stars: ✭ 17 (-5.56%)
Mutual labels:  twilio, twilio-api
Twilio Python
A Python module for communicating with the Twilio API and generating TwiML.
Stars: ✭ 1,536 (+8433.33%)
Mutual labels:  twilio, twilio-api
inos-baileys-wabot
WhatsApp Bot Using Baileys Library
Stars: ✭ 35 (+94.44%)
Mutual labels:  whatsapp, whatsapp-bot
whatsapp-http-api
WhatsApp HTTP API that you can configure in a click!
Stars: ✭ 229 (+1172.22%)
Mutual labels:  whatsapp, whatsapp-bot
messages
A python package designed to make sending messages easy and efficient!
Stars: ✭ 38 (+111.11%)
Mutual labels:  twilio, whatsapp
whatsapp-chatbot-1c-example
Внешняя обработка для программы 1С:Предприятие, которая демонстрирует реализацию простого чат-бота для мессенджера WhatsApp.
Stars: ✭ 13 (-27.78%)
Mutual labels:  whatsapp, whatsapp-bot
wppconnect-server
Wppconnect Server is a ready-to-use API, just download, install, and start using, simple as that.
Stars: ✭ 290 (+1511.11%)
Mutual labels:  whatsapp, whatsapp-bot
somleng
Open Source Implementation of Twilio's REST API
Stars: ✭ 33 (+83.33%)
Mutual labels:  twilio, twilio-api
BocchiBot
BocchiBot is a multipurpose WhatsApp bot using wa-automate-nodejs library!
Stars: ✭ 228 (+1166.67%)
Mutual labels:  whatsapp, whatsapp-bot
Venom
Venom is the most complete javascript library for Whatsapp, 100% Open Source.
Stars: ✭ 3,457 (+19105.56%)
Mutual labels:  whatsapp, whatsapp-bot
Whatsapp Web.js
A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
Stars: ✭ 4,103 (+22694.44%)
Mutual labels:  whatsapp, whatsapp-bot
python-automated-bulk-whatsapp-messages
It is a python script to send automated bulk WhatsApp messages to multiple recipients from an excel sheet at once.
Stars: ✭ 56 (+211.11%)
Mutual labels:  whatsapp, whatsapp-bot
wappdriver
Wondering how to send WhatsApp messages using Python using only 3 lines of code? You have come to the right place!
Stars: ✭ 40 (+122.22%)
Mutual labels:  whatsapp, whatsapp-bot
WhatsAppBotTut
Tutorial to create WhatsApp Bot using Twilio and Python
Stars: ✭ 131 (+627.78%)
Mutual labels:  twilio, whatsapp
whatsapp-bot
Piyobot adalah whatsapp bot pintar
Stars: ✭ 124 (+588.89%)
Mutual labels:  whatsapp, whatsapp-bot

WhatsApp Bots built in Ruby

This is a repo of WhatsApp bots built in Ruby using the Twilio API for WhatsApp.

Available bots

There is one bot so far:

  • Keyword bot: a Sinatra application that can return facts and pictures about dogs and cats based on the keywords you send to it

How to build a bot

See the blog post Build a WhatsApp chatbot with Ruby, Sinatra and Twilio to see how to get started with building bots.

Running the bots

You will need the following to run the bots in this repo:

Configure the Twilio sandbox for WhatsApp

  • Head to the WhatsApp sandbox area of the Twilio console, or navigate from the console to Programmable SMS and then WhatsApp
  • The page will have the WhatsApp sandbox number on it. Open your WhatsApp application and start a new message to that number
  • The page also has the message you need to send, which is "join" plus two random words, like "join flagrant-pigeon". Send your message to the sandbox number

Running an application

Download or clone the app

Clone the application to your machine with the following command:

git clone https://github.com/philnash/ruby-whatsapp-bots.git
cd ruby-whatsapp-bots

Install dependencies

Install the dependencies with bundler:

bundle install

Configure the environment

Copy the config example file:

cp config/env.yml.example config/env.yml

Get your Twilio auth token from your Twilio console and add it to config/env.yml.

To use the location bot, sign up for a free Dark Sky API key and add that to config/env.yml.

Run the app

Change into the directory of the bot you want to run. Then run the application with:

bundle exec rackup

ngrok

Run ngrok to tunnel through to localhost:9292:

ngrok http 9292

Take your ngrok URL and the path to your bot, https://YOUR_NGROK_SUBDOMAIN.ngrok.io/bot and enter it in the WhatsApp sandbox admin in the input marked "When a message comes in" and save the configuration.

Now send your bot a message and wait for the response.

License

These bots are licensed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].