Payload for carousel template

chatbots

(Tanzeem Bhatti) #1

Hi,
I used carousel template to display following data and I have 2 or 3 buttons in each carousel item :
{
“applications”: [
{
“id”: 1,
“comments”: “comment”,
“status”: “rejected”
},
{
“id”: 2,
“comments”: “test”,
“status”: “approved”
}
]
}
I used id as payload for each carousel item, but I want to ask is there any way to pass full object on button click?
Thanks,
Tanzeem


(Cindy Melissa Velasquez Sanchez) #2

Hello, I am also building a carousel, each one with a single button; Is there a limit on the number of elements? because when I create more than 4 elements in my array it doesn’t show me anything anymore.


(Cindy Melissa Velasquez Sanchez) #3

Hello, I am also building a carousel, each one with a single button; Is there a limit on the number of elements? because when I create more than 4 elements in my array it doesn’t show me anything anymore.


(Yoga Ramya Mendu) #5

Hi @tanzeem.bhatti,

Ideally, the payload will be considered as an input to the bot and the bot would be responding to the payload utterance.

Kindly let us know your requirement behind passing the entire object in the payload.

Regards,
Yoga Ramya.