Question

Unable to create Chatbot buttons from api response

  • 28 December 2022
  • 1 reply
  • 93 views

I am trying to create a chatbot for whatsapp in freshchat. I am trying to render buttons according to response from api. I am using the process as can be seen from the demo bot dialogs. I am using an array returned from api as the button name. Everything else is working. except the buttons ae not rendered in the bot dialog in whatsapp. Please help if you can. Thank you


1 reply

Badge +1

I had the same. For multiple items in the response the json should be an array without any labels for the attributes. Only the array name.

Example;

{"Orders":

[123,456,788]

}

And then define the response parameter as: Orders[]

And in the button choose the api and then the Orders[]

This worked for me.

Reply