Access element inside Rasa rest api 's response?

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 :slight_smile:

You can see an example in the setBotResponse() function here:

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

thank you chris…

A post was split to a new topic: Bot does not always reply on custom frontend