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.

