hello folks, I made simple chatwidget to integrate chatbot in my website. how to access element of rasa rest api 's rsponse lik text, image. In the image “Hello” is user/my message and below “undefined” is rasa 's reponse.
Welcome to the forum
You can see an example in the setBotResponse()
function here: https://github.com/ChrisRahme/fyp-webapp/blob/main/assets/js/script.js#L110
You can just do console.log(response)
to see what the format of the response is, or read the docs, instead of guessing.
Basically the response is an array of messages. Each message can contain text
, image
, buttons
, or more.
1 Like
A post was split to a new topic: Bot does not always reply on custom frontend