I have integrated my bot with whatsapp using infobip. I have created a bot for e-commerce and I want to implement the carousel template in whatsApp to view the products of my e-commerce website . Help me to implement the carousel in whatsApp
Hello Srinivas,
Thank you for reaching out to Kore.ai Community.
Could you please try the below approach and let us know if that works ?
Integration Steps with Kore.ai and Infobip:
- Configure the Infobip Channel:
- In the Kore.ai bot builder, go to Channels > WhatsApp (via Infobip).
- Set up the webhook and authentication details provided by Infobip.
- Create a Script Node for the Payload:
Use the following payload structure in the script node to send a list message:
{
"messages": [
{
"from": "whatsapp:<your_number>",
"to": "whatsapp:<user_number>",
"content": {
"type": "interactive",
"interactive": {
"type": "list",
"header": {
"type": "text",
"text": "Choose an Option"
},
"body": {
"text": "Select from the list below:"
},
"footer": {
"text": "Powered by Kore.ai"
},
"action": {
"button": "View Options",
"sections": [
{
"title": "Options",
"rows": [
{
"id": "option1",
"title": "Option 1",
"description": "Details for option 1"
},
{
"id": "option2",
"title": "Option 2",
"description": "Details for option 2"
}
]
}
]
}
}
}
}
]
}
Then handle the user responses.
Thank you,
Srujan Madderla
Kore.ai Community Team
Hi @srujan.madderla , Thanks for the reply
1)The above template is not working when I copied it to the script node.
2)I think the above code is in JSON and will not work in the script Node.
3)I think the above given code is for the list not for the carousel, but I Need to implement carousel (please refer the below image).
4)Do I need to do the POST API call, in order to display the scripts in WhatsApp?