jun85664396 / Messenger Bot Rails
Licence: mit
Ruby on Rails Gem for the Facebook Messenger Bot Platform
Stars: ✭ 64
Programming Languages
ruby
36898 projects - #4 most used programming language
Projects that are alternatives of or similar to Messenger Bot Rails
How-To-Build-A-Chatbot
Learn to build a facebook chatbot using Python and Flask
Stars: ✭ 15 (-76.56%)
Mutual labels: facebook, chatbot, messenger-bot
Chatblocks
Declarative Messenger chatbot framework
Stars: ✭ 48 (-25%)
Mutual labels: chatbot, messenger-bot, facebook
facebook-send-api-emulator
Facebook Messenger Emulator & Facebook Send API Emulator functionality allowing you to test web hooks on developer's machine.
Stars: ✭ 24 (-62.5%)
Mutual labels: facebook, chatbot
botyo
Modular chatbot framework designed for group chat rooms on Facebook
Stars: ✭ 17 (-73.44%)
Mutual labels: facebook, chatbot
facebook-messenger
Go (GoLang) package for Facebook Messenger API and Chat bot
Stars: ✭ 62 (-3.12%)
Mutual labels: facebook, chatbot
messenger-bot
A Node bot server for the Facebook Messenger Platform
Stars: ✭ 23 (-64.06%)
Mutual labels: chatbot, messenger-bot
messenger
💬 A PHP library for Facebook Messenger
Stars: ✭ 53 (-17.19%)
Mutual labels: facebook, messenger-bot
Ptt Alertor
📢 Ptt 文章通知機器人!Notify Ptt Article in Realtime
Stars: ✭ 150 (+134.38%)
Mutual labels: chatbot, messenger-bot
Pymessager
Python API to develop chatbot on Facebook Messenger Platform
Stars: ✭ 580 (+806.25%)
Mutual labels: chatbot, facebook
Stealth
An open source Ruby framework for text and voice chatbots. 🤖
Stars: ✭ 481 (+651.56%)
Mutual labels: chatbot, rails
Muscle man
💪🏻It is a chatbot which can receive your practice record!
Stars: ✭ 25 (-60.94%)
Mutual labels: chatbot, rails
Awesome Bots
The most awesome list about bots ⭐️🤖
Stars: ✭ 2,864 (+4375%)
Mutual labels: chatbot, messenger-bot
intelligo-generator
🛠️ Chatbot generator for Intelligo Framework.
Stars: ✭ 31 (-51.56%)
Mutual labels: chatbot, messenger-bot
Tock
Tock - the open source conversational AI toolkit
Stars: ✭ 175 (+173.44%)
Mutual labels: chatbot, messenger-bot
Bot-Chucky
Python bot which able to work with messenger of facebook
Stars: ✭ 21 (-67.19%)
Mutual labels: facebook, messenger-bot
Botkit
Botkit is an open source developer tool for building chat bots, apps and custom integrations for major messaging platforms.
Stars: ✭ 10,555 (+16392.19%)
Mutual labels: chatbot, facebook
Magento Chatbot
Magento Chatbot Integration with Telegram, Messenger, Whatsapp, WeChat, Skype and wit.ai.
Stars: ✭ 149 (+132.81%)
Mutual labels: chatbot, facebook
Intelligo
🤖 Chatbot Framework for Node.js.
Stars: ✭ 347 (+442.19%)
Mutual labels: chatbot, messenger-bot
Furatto Rails Start Kit
A rails app with Furatto, Devise, and Facebook Authentication perfect for hackathons!
Stars: ✭ 46 (-28.12%)
Mutual labels: rails, facebook
messenger-bot
Ruby on Rails client!! for Facebook Messenger Platform
Requires Rails >= 4
Installation
Bundler in your Gemfile.
gem 'messenger-bot'
Getting Started
Before You Begin
Now sign in into the Facebook developer and create an application
- Add
messenger-bot-rails
to your Gemfile
gem 'messenger-bot'
- Set config in
config/initializers/messenger_bot.rb
Messenger::Bot.config do |config|
config.access_token = <PAGE_ACCESS_TOKEN>
config.validation_token = <VERIFY_TOKEN>
config.secret_token = <FB_APP_SECRET_TOKEN>
end
- Add the following to your
config/routes.rb
mount Messenger::Bot::Space => "/webhook"
- create a controller in
app/controllers/messenger_bot_controller.rb
class MessengerBotController < ActionController::Base
def message(event, sender)
# profile = sender.get_profile(field) # default field [:locale, :timezone, :gender, :first_name, :last_name, :profile_pic]
sender.reply({ text: "Reply: #{event['message']['text']}" })
end
def delivery(event, sender)
end
def postback(event, sender)
payload = event["postback"]["payload"]
case payload
when :something
#ex) process sender.reply({text: "button click event!"})
end
end
end
Usage
message(event, sender)
-
event
- Hash containing the message event from Facebook format -
sender
- Class to call the 'reply, get_profile' method.
delivery(event, sender)
-
event
- Hash containing the delivery event from Facebook format -
sender
- Class to call the 'reply, get_profile' method.
postback(event, sender)
-
event
- Hash containing the postback event from Facebook format -
sender
- Class to call the 'reply, get_profile' method.
optin(event, sender)
-
event
- Hash containing the optin event from Facebook format -
sender
- Class to call the 'reply, get_profile' method.
license
MIT, see LICENSE.txt
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].