How to connect rasa with custom ui to ngrok using rest credential

It keep saying this

How can i let it interact with rasa

Hi @MESHEmugles

Could you please tell how you have connected your bot. The steps basically,

what is in your credentials.yml and what is in your chat widget url

thanks for the reply

these are the credentials and chat url

was using localhost:8000 on ngrok buh wasn’t working

Hi @MESHEmugles

Yes Rasa run on 5005 port by default.

What is command that you are using to run your rasa server? Is it rasa run --enable-api --cors "*" ?

If so then try the following

To check whether you have problem at rasa side , try making an API request via postman/ thunderclient with the following body

{ 
"sender":"test_user",
"message":"hi"
}

If you recieve the response, it means the problem is at the widget side and not the bot side

it worked through thunderclient

using py -m http.server … on the index.html, everything works fine with the localhost:8000 but when i put it on ngrok, rasa doesnt respond

It means the issue is not with the bot but with the UI only. Could you try running the widget and check console windows for the errors

how do i check the console windows… sorry i’m a novice that’s y

On your widget UI in browser, Press right click on mouse and select inspect and you’ll get screen like this

Two major section that you need to check are

  • Console section: It will tell if your project is missing something or if there is any error in it
  • Network : All the API calls will be available there, if your API is failing you’ll get the idea here

apologize for the late replies. in the console, it shows err…blocked_by_client

while in the network area… It’s showing some strict policy stuffs. I dnt really understand