I want to display rasa conversations on UI without using any front end framework like react.I just want to use rasa,django and html,css. How can I do that?
You can do it from anywhere using the Rasa HTTP API.
Rasa 2.x: You have to do a POST
request to http://localhost:5005/webhooks/rest/webhook with the following JSON format:
{
"sender": a_unique_sender_id,
"message": the_user_message
}
The response will be a JSON list of bot responses, for example:
[
{"text": "Hello, how are you?"},
{"image": "http://example.com/image.jpg"}
]
Please check the Rest Channel Docs for info on how to setup.
Okay … but in the UI side how are we going to display it. Suppose I want to create a chat UI using html and css then how will I be able to show the messages
Using pure HTML and CSS? It’s not possible. You need to use JavaScript or, as you proposed, Django, Flask, or JavaScript frameworks.
Sending and receiving POST requests, and displaying the result, has nothing to do with Rasa, look up some tutorials on YouTube to learn basic web development, and these videos below show how to do it for Rasa: