Skip to content

💬 A multipurpose and complex chatbot system that can be customized and integrated in any website to provide contextual support in an automated and effecient way.

Notifications You must be signed in to change notification settings

anishpradhan/Rasa-Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<<<<<<< HEAD

Volgai Chatbot

VolgAI web AI powered chatbot with the rasa stack.

Run on local machine

Using docker

Both action server and rasa-core runs as separate processes in the same container.

sudo docker build -t volgai-chatbot .
sudo docker run -it --rm -p 5005:5005 volgai-chatbot

It starts a webserver with rest api and listens for messages at localhost:5005

Test over REST api

curl --request POST \
  --url http://localhost:5005/webhooks/rest/webhook \
  --header 'content-type: application/json' \
  --data '{
    "message": "Hello"
  }'

Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 59
Access-Control-Allow-Origin: *

[{
  "recipient_id": "default",
  "text": "Hi, how is it going?"
}]

Run using docker compose

Optionally to run the actions server in separate container start the services using docker-compose. The action server runs on http://action_server:5055/webhook (docker's internal network). The rasa-core services uses the config/endpoints.local.yml to find this actions server

sudo docker-compose up

Deploy on Heroku for testing

heroku login

git add .
git commit -m "commmit message here"

For free tier heroku deployment, we have to run both rasa server and custom action server in a same container. So, pushing project as a docker container:

sudo heroku container:login
sudo heroku container:push -a <heroku app name> web
sudo heroku container:release -a <heroku app name> web

Deploy in server other than heroku

We can deploy with any method(docker container, docker-compose, or using "supervisord" for multiple services processing) ##Using supervisord Comment following lines in Dockerfile:

RUN chmod +x /app/scripts/*

CMD /app/scripts/start_services.sh

Uncomment following lines in Dockerfile:

RUN apt-get install -y supervisor

COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf

and

CMD ["/usr/bin/supervisord"]

Then you're ready to deploy with process manager "supervisord".

Rasa-Chatbot

f6da7a1bcc219562ec6681ccfb51c9333875068a

About

💬 A multipurpose and complex chatbot system that can be customized and integrated in any website to provide contextual support in an automated and effecient way.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published