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

**URL:** https://forum.rasa.com/t/trying-to-use-custom-rasa-bot-in-my-flask-code-for-the-chat-interface-how-do-i-configure-it/19931
**Category:** Rasa Open Source
**Created:** [October 17, 2019, 4:28am UTC](https://forum.rasa.com/t/trying-to-use-custom-rasa-bot-in-my-flask-code-for-the-chat-interface-how-do-i-configure-it/19931 "2019-10-17T04:28:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Banrikupar](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@Banrikupar](https://forum.rasa.com/u/Banrikupar)
#### Post date: [October 17, 2019, 4:28am UTC](https://forum.rasa.com/t/trying-to-use-custom-rasa-bot-in-my-flask-code-for-the-chat-interface-how-do-i-configure-it/19931/1 "2019-10-17T04:28:48Z")

</div>

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 .

#credentials.yml

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** ’: app.run(port = 8000)

#main.html

\<!doctype html\>

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

#endpoints.yml

action\_endpoint: url: “[http://localhost:5055/webhook](http://localhost:5055/webhook)”

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

---

<div class="post-metadata">

### Author: ![Banrikupar](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@Banrikupar](https://forum.rasa.com/u/Banrikupar)
#### Post date: [October 17, 2019, 4:30am UTC](https://forum.rasa.com/t/trying-to-use-custom-rasa-bot-in-my-flask-code-for-the-chat-interface-how-do-i-configure-it/19931/2 "2019-10-17T04:30:48Z")

</div>

#main.html

\<!doctype html\>

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

---

<div class="post-metadata">

### Author: ![Banrikupar](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@Banrikupar](https://forum.rasa.com/u/Banrikupar)
#### Post date: [October 17, 2019, 5:13am UTC](https://forum.rasa.com/t/trying-to-use-custom-rasa-bot-in-my-flask-code-for-the-chat-interface-how-do-i-configure-it/19931/3 "2019-10-17T05:13:35Z")

</div>

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 .

---

<div class="post-metadata">

### Author: ![amn41](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/amn41/32/20_2.png) [@amn41](https://forum.rasa.com/u/amn41)
#### Post date: [October 17, 2019, 7:39am UTC](https://forum.rasa.com/t/trying-to-use-custom-rasa-bot-in-my-flask-code-for-the-chat-interface-how-do-i-configure-it/19931/4 "2019-10-17T07:39:49Z")

</div>

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