RasaHQ / 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
https://rasa.com/docs/rasa/
Apache License 2.0
18.95k stars 4.64k forks source link

How to use rasa core model in personal website. #2204

Closed SaiDilipReddyKiralam closed 5 years ago

SaiDilipReddyKiralam commented 6 years ago

Issue:

I worked with rasa core and developed a working bot model and used slack connector as a front end interface.Now I don't want to use slack to interact with bot. i want to add model in my own website. I did not find any example of adding bot to a personal website. In simple :
from rasa_slack_connector import SlackInput instead of this I want use rasa_personal_connector to connect with my site.

auzair92 commented 6 years ago

You can do this very easily using Rasa HTTP server.

Once your server is up and running according to the instructions given in the page linked above or this example, you can call different endpoints from your front-end to interact with your bot. The /respond endpoint of the server will return you the utterances of your bot, or if you want to implement utterances on your front-end you can do that too using /parse endpoint.

You may develop the front-end by yourself or find a chatbot template written in JavaScript or Angular. You may follow this tutorial, and replace the calls to Dialogflow service with a call to your Rasa HTTP server.

phidodido commented 6 years ago

I think it would be really beginner-friendly if there was a starter kit with a pre-built front-end that can be run locally.

For example Botkit has a template with a self-contained chat server, API and web-based messaging client. https://github.com/howdyai/botkit-starter-web

Rajskc commented 6 years ago

Hi @auzair92 , I am trying to use rasa as HTTP server. The server is running but I am not able to get back reply from it. The errors are:

image

When I try with | python -mjson.tool code added: image

I have also tried with replacing localhost with ip address of my pc, but didn't work. Can you help me with the command for the bot to respond? Thanks!

Rajskc commented 6 years ago

@SaiDilipReddyKiralam @phidodido There is a chatroom available https://github.com/scalableminds/chatroom with which you can integrate your bot. If you want to integrate it with your website....then you can create a chatroom using JS and add to your website HTML code and integrate the bot to it. I hope this is clear and helpful to you.

PravinrajV commented 6 years ago

Hi @auzair92 , I am trying to use rasa as HTTP server. The server is running but I am not able to get back reply from it. The errors are:

image

When I try with | python -mjson.tool code added: image

I have also tried with replacing localhost with ip address of my pc, but didn't work. Can you help me with the command for the bot to respond? Thanks!

Were you able to make it work?

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 5 years ago

This issue has been automatically closed due to inactivity. Please create a new issue if you need more help.