All Projects → jagrosh → Phoenix

jagrosh / Phoenix

Licence: Apache-2.0 license
🔥 Discord autoreply bot using DialogFlow

Programming Languages

ruby
36898 projects - #4 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to Phoenix

AngularAI
💬 Angular 6 AI (localhost version is working correctly)
Stars: ✭ 50 (-20.63%)
Mutual labels:  dialogflow
dialogflow-watchnow-messenger
WatchNow FB Messenger bot with DialogFlow & Golang 💬
Stars: ✭ 24 (-61.9%)
Mutual labels:  dialogflow
benchmark-nlp
NLP benchmark test sentences and full results
Stars: ✭ 13 (-79.37%)
Mutual labels:  dialogflow
discord-against-humanity
cards against humanity, integrated into discord
Stars: ✭ 21 (-66.67%)
Mutual labels:  discordrb
dialogflow ros
A ROS wrapper for Google's NLP platform Dialogflow
Stars: ✭ 17 (-73.02%)
Mutual labels:  dialogflow
uniFlow
Full Docs -->
Stars: ✭ 26 (-58.73%)
Mutual labels:  dialogflow
dialogflow-gateway-docs
📄 Docs for Dialogflow Gateway
Stars: ✭ 20 (-68.25%)
Mutual labels:  dialogflow
dialogflow-go-webhook
Simple package to create DialogFlow v2 webhooks using Go
Stars: ✭ 23 (-63.49%)
Mutual labels:  dialogflow
React-Chatbot
A DialogFlow Chatbot made using NodeJS and React.
Stars: ✭ 36 (-42.86%)
Mutual labels:  dialogflow
Briefly
source based news in short : Winner @MumbaiHackathon 2018
Stars: ✭ 35 (-44.44%)
Mutual labels:  dialogflow
WhatsAppBotTut
Tutorial to create WhatsApp Bot using Twilio and Python
Stars: ✭ 131 (+107.94%)
Mutual labels:  dialogflow
wolf-core
🐺 Declarative development for state driven dynamic prompt flow
Stars: ✭ 26 (-58.73%)
Mutual labels:  dialogflow
doc2vec-api
document embedding and machine learning script for beginners
Stars: ✭ 92 (+46.03%)
Mutual labels:  dialogflow
Everydaywechat
微信助手:1.每日定时给好友(女友)发送定制消息。2.机器人自动回复好友。3.群助手功能(例如:查询垃圾分类、天气、日历、电影实时票房、快递物流、PM2.5等)
Stars: ✭ 8,688 (+13690.48%)
Mutual labels:  autoreply
React.ai
It recognize your speech and trained AI Bot will respond(i.e Customer Service, Personal Assistant) using Machine Learning API (DialogFlow, apiai), Speech Recognition, GraphQL, Next.js, React, redux
Stars: ✭ 38 (-39.68%)
Mutual labels:  dialogflow
home assistant appdaemon alexa google
An AppDaemon application for Home Assistant, handles calls from Alexa Skill and a Google Action
Stars: ✭ 11 (-82.54%)
Mutual labels:  dialogflow
stumblybot
Simple robot that executes voice commands through Google Assistant.
Stars: ✭ 23 (-63.49%)
Mutual labels:  dialogflow
angular-search-experience
Algolia + Angular = 🔥🔥🔥
Stars: ✭ 166 (+163.49%)
Mutual labels:  dialogflow
small-talk-rasa-stack
Collection of casual conversations that can be used with the Rasa Stack
Stars: ✭ 87 (+38.1%)
Mutual labels:  dialogflow
convoworks-core
PHP framework for handling conversational services like Amazon Alexa skills, Google Assistant, Viber, FB messenger ...
Stars: ✭ 20 (-68.25%)
Mutual labels:  dialogflow

Phoenix

🔥 Discord autoreply bot using DialogFlow and discordrb

Example


Self-Hosting

Requirements

  • Git
  • Ruby
  • Bundle (preferably)
  • Dialogflow account & project

Running the bot

  1. Clone this repository
  2. Run bundle install to install the dependencies (or gem install discordrb and gem install api-ai-ruby)
  3. Set environment variables:
    • Set BOT_TOKEN to the bot's token
    • Set BOT_GAME to the game you want the bot to be "playing"
    • Set ActualChannelIdHere_CLIENT_TOKEN to the DialogFlow Client Access Token to be used for each channel you want the bot to respond in (replace ActualChannelIdHere with the actual channel ID).
  4. Run with ruby phoenix.rb

DialogFlow

Overview

DialogFlow is an API that is very similar in functionality to Siri, Alexa, Cortana, Google Assistant, etc. For this project, we're using the text-based, machine-learning portion to detect topics and when to produce replies. Conveniently, a DialogFlow agent can be edited collaboratively and updates immediately, so multiple people can provide topics and responses for the bot without having to restart the bot nor have access to the bot's hosting.

Configuring

  1. Create an agent (and set the token to the environment as listed above)
  2. Delete the default fallback and welcome intents!
  3. Create an intent (name doesn't matter but should reflect the topic of the autoreply)
  4. Provide example phrases in the Training phrases and one or more replies in the Responses section (see image below)
  5. Repeat steps 3-4 for every topic you want the bot to cover

DialogFlow


FAQ

Can I add Phoenix (your copy) to my server?

Probably not. I might take requests from people that frequently interact with my servers, but generally you should just host your own copy.

Why did you do this on a per-channel basis instead of per-server?

First of all, you can use the same DialogFlow token multiple times if you wish; just set multiple CHANNELID-ClientToken environment variables to the same token. Secondly, this bot is meant for more in-depth replies; if you want more-basic autoreply functionality I'm sure there are other bots out there that already do this.

Why use DialogFlow instead of looking for keywords?

Less work for more gain. DialogFlow is (generally) going to produce more-accurate results than simple keyword detection, and has the added benefit of already having an easy-to-use, collaborative interface.

Why did you use Ruby for this?

I felt like trying something new; I'd never written/run Ruby before, so why not?

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].