All Projects → chatwoot → rasa-agent-bot-demo

chatwoot / rasa-agent-bot-demo

Licence: other
A sample Implementation of agent bot APIs in chatwoot using rasa

Programming Languages

PHP
23972 projects - #3 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to rasa-agent-bot-demo

virtual-assistant
Virtual Assistant
Stars: ✭ 67 (+219.05%)
Mutual labels:  chatbot, rasa, rasa-chatbot
Rasa
💬 Open source machine learning framework to automate text- and voice-based conversations: NLU, dialogue management, connect to Slack, Facebook, and more - Create chatbots and voice assistants
Stars: ✭ 13,219 (+62847.62%)
Mutual labels:  chatbot, rasa
CHIT-CHAT
A Covid-19 Chatbot that aims to serve humans queries and give a feasible answer to their queries.
Stars: ✭ 18 (-14.29%)
Mutual labels:  chatbot, rasa
clofus-chatbot
Clofus® Chat bot Platform using rasa core and rasa nlu similar to rasa x but opensource demo https://clofus.github.io/clofus-chatbot/
Stars: ✭ 61 (+190.48%)
Mutual labels:  rasa, rasa-chatbot
GSTFAQChatbot
Set of scripts to build a chatbot which will answer FAQ about Goods and Services Tax (GST) India.
Stars: ✭ 37 (+76.19%)
Mutual labels:  chatbot, rasa
Botpress
🤖 Dev tools to reliably understand text and automate conversations. Built-in NLU. Connect & deploy on any messaging channel (Slack, MS Teams, website, Telegram, etc).
Stars: ✭ 9,486 (+45071.43%)
Mutual labels:  chatbot, rasa
Rasa core
Rasa Core is now part of the Rasa repo: An open source machine learning framework to automate text-and voice-based conversations
Stars: ✭ 2,302 (+10861.9%)
Mutual labels:  chatbot, rasa
rasa milktea chatbot
Chatbot with bert chinese model, base on rasa framework(中文聊天机器人,结合bert意图分析,基于rasa框架)
Stars: ✭ 97 (+361.9%)
Mutual labels:  rasa
facebook-messenger
Go (GoLang) package for Facebook Messenger API and Chat bot
Stars: ✭ 62 (+195.24%)
Mutual labels:  chatbot
uploadcare-ios
UploadcareKit: iOS SDK for Uploadcare API
Stars: ✭ 24 (+14.29%)
Mutual labels:  saas
next-saas
Rapid development of SaaS products with Next.js
Stars: ✭ 39 (+85.71%)
Mutual labels:  saas
developer-free-saas
🕸️ A curated list Of Free Web-based Tools For Developers
Stars: ✭ 22 (+4.76%)
Mutual labels:  saas
osschat
Apache Open Source Software Chat BOT
Stars: ✭ 115 (+447.62%)
Mutual labels:  chatbot
FAQ-Bot-QQ
一个基于Mirai框架的Q群问答机器人
Stars: ✭ 30 (+42.86%)
Mutual labels:  chatbot
How-To-Build-A-Chatbot
Learn to build a facebook chatbot using Python and Flask
Stars: ✭ 15 (-28.57%)
Mutual labels:  chatbot
Pokedex
Pokedex is a robust Discord bot that mimics the iconic Pokedex from the Pokemon games and show. It's loaded with features to help players of all skill levels to learn and better enjoy Pokemon! The goal of Pokedex is to provide users with as much data about the Pokemon games as they desire conveniently and with minimal effort.
Stars: ✭ 18 (-14.29%)
Mutual labels:  chatbot
zhamao-framework
协程、高性能、灵活的聊天机器人 & Web 开发框架(炸毛框架)
Stars: ✭ 99 (+371.43%)
Mutual labels:  chatbot
react-native-saas
☁️ Application using Redux, Redux-Saga, React Native Redux Toast, Immer, react-native-side-menu, React Native Async Storage, react-native-iphone-x-helper, React Native Vector Icons and consuming the features of the Node.js - SaaS API
Stars: ✭ 14 (-33.33%)
Mutual labels:  saas
keras-chatbot-web-api
Simple keras chat bot using seq2seq model with Flask serving web
Stars: ✭ 51 (+142.86%)
Mutual labels:  chatbot
SAAS-Starter-Kit-Pro
🚀A boilerplate for building Software-as-Service (SAAS) apps with Reactjs, and Nodejs
Stars: ✭ 313 (+1390.48%)
Mutual labels:  saas

Archiving the Repo

Moving this to Chatwoot Implementation Samples.


Chatwoot Agent Bot Demo using Rasa

You should be running this demo on a local installation of Chatwoot and a non dockerised setup for the localhost and ports to be accessible for all the services involved. If you are intending to run in a remote server, ensure you change the localhost urls with appropriate IP addresses and make sure the ports should be accessible for all the services involded.

This is a sample implementation of agent bot capabilities in chatwoot using rasa . Rasa Open Source is a machine learning framework to automate text- and voice-based assistants.

You can refer the rasa documentation to get it up and running in your machine.

This implementation isn't a recommended set up for production, but just to illustrate the capabilities of the platform. Please build on top of this ideas discussed to have in running in production.

Follow the given steps to get your agent bot integration up and running.

Refer the Video Walkthrough and blog post

Get a rasa project up and running.

Go to a new directory and create a rasa project. If you have rasa installed in your machine you can get it up and running by follow in commands. Refer docs to get the installation up and running.

mkdir rasa
cd rasa
rasa init --no-prompt

go to credentials.yml file in the directory and ensure the following value is set. This is to ensure we can communicate with rasa through rest api

rest:
  # you don't need to provide anything here - this channel doesn't
  # require any credentials

start the rasa server with following command

 rasa run -m models --enable-api --log-file out.log

Get your chatwoot up and create an agent bot

go to your chatwoot directory and ensure your local server is running. Start a rails console in your directory.

bundle exec rails c

Inside the rails console, type the following commands to create an agent bot and get its access token. Save the retrieved token as you would need it in further step.

bot = AgentBot.create!(name: "Rasa Bot", outgoing_url: "http://localhost:8000")
bot.access_token.token

Connect Agent Bot to your inbox by running the following command

AgentBotInbox.create!(inbox: Inbox.first, agent_bot: bot)

Clone this repo into your machine and run the rasa router script.

clone repo using the following command.

git clone [email protected]:chatwoot/rasa-agent-bot-demo.git

Using Python

open up the python file in your editor and change the follow values with appropriate ones.

rasa_url, chatwoot_url and chatwoot_bot_token.

Then run pip install -r requirements.txt and python3 -m gunicorn --workers=1 test:app -b 0.0.0.0

Using PHP:

open up the rasa-router/index.php file in your editor and change the follow values with appropriate ones.

$rasa_url = 'http://localhost:5005';
$chatwoot_url = 'http://localhost:3000';
$chatwoot_bot_token = '<your agent bot token>';

run the php server in the rasa-router directory

cd rasa-router
php -S localhost:8000

Connect to your chatwoot webwidget and start a conversation.

if you are on your local machine, you can access the widget through the test page

http://localhost:3000/widget_tests

Notes

You can also refer to the RasaHQ / rasa-demo for adding additional capabilities to your bot. If training rasa through scripts isn’t your thing, check the exciting rasa projects which gives a UI to create your rasa stories.

You can build on top of the ideas discussed here to implement your solutions. Refer to the chatwoot api to see the available options in chatwoot for your bots.Pretty excited to see what you guys come up with.

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