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
Page 1 / 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
Join the Community
Already have an account? Login.
Sign in to the Community
No account yet? Create an account.
Social Login
Login for Freshworks Employees Login with LinkedInor sign up below
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.