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
buttons, or more.
A post was split to a new topic: Bot does not always reply on custom frontend