Trying to use custom rasa-bot in my flask code for the chat interface . How do i configure it?

Hello All,

Please help me out . trying to use custom rasa bot for my chat interface in my own flask file . the UI is working and i can see the assistant on it but when i type something it doesn’t respond .


socketio: user_message_evt: user_uttered bot_message_evt: bot_uttered

#flask file

from flask import Flask, render_template

app = Flask(‘flaskwp1’)

@app.route(’/’) def webprint(): return render_template(‘main.html’)

if name == ‘main’: = 8000)


<!doctype html>

:root { /* --header-background-color: gray; */ /* --header-text-color: black; */ }


action_endpoint: url: “http://localhost:5055/webhook

Is there anything else i have to do to make it work?


<!doctype html>

:root { /* --header-background-color: gray; */ /* --header-text-color: black; */ }

I finally got the message delivered from my own custom rasa-bot to rasa by running the rasa run -m models --enable-api --cors “*” --debug

but Rasa is not able to respond to any of the message it receives from the flask file .

hi @Banrikupar - I would recommend adding a couple of print statements to your flask file to see whats happening

1 Like