Dante_Cady | 2022-09-29 15:24:20 UTC | #1
Hello,
I am following the following article Work with carousels in bot conversations - Genesys Cloud Resource Center (mypurecloud.com) to utilize response cards in AWS Lex v1 integration with the Genesys web messenger. I have setup the JSON accordingly and yet the response card carousel does not appear in the web messaging channel. Please see below screenshots of the Lex console setup and web messenger.
 |
 |
dsiukola | 2022-09-29 15:27:33 UTC | #2
Can you share the whole JSON object or share a conversationId for this issue? In the screenshot, I only see the actions array. The title is a required field for cards.
Dante_Cady | 2022-09-29 15:40:28 UTC | #3
This is the whole JSON:
{
"genesys_carousel": [{
"title": "Device Type",
"actions": [{
"type": "Postback",
"text": "Altura",
"payload": "Altura"
},
{
"type": "Postback",
"text": "CDS-4",
"payload": "CDS-4"
},
{
"type": "Postback",
"text": "Customer Ticket Checker",
"payload": "Customer Ticket Checker"
},
{
"type": "Postback",
"text": "GameTouch 28",
"payload": "GameTouch 28"
},
{
"type": "Postback",
"text": "EDSQ",
"payload": "EDSQ"
},
{
"type": "Postback",
"text": "Retailer Pro",
"payload": "Retailer Pro"
}
]
}]
}
dsiukola | 2022-09-29 16:50:43 UTC | #4
It looks like the maximum number of buttons supported for a Card in Web Messaging is 3. I didn't see that documented on the page for configuring bots, but I will try to get that added.
dsiukola | 2022-09-29 17:09:16 UTC | #5
I misread the documentation page. https://help.mypurecloud.com/articles/work-with-cards-in-bot-conversations/ has a box that says, " Note: Best practice recommends that you limit the number of bot selections on a single card to three options."
Dante_Cady | 2022-09-29 17:40:09 UTC | #6
<del>This </del><del>did </del><del>help</del><del>!</del> <del>Thank </del><del>you</del><del>!</del> <del>By </del><del>any </del><del>chance</del><del>,</del> <del>is </del><del>it </del><del>best </del><del>to </del><del>use </del><del>a </del><del>carousel </del><del>and </del><del>have </del><del>each </del><del>card </del><del>be </del><del>the </del><del>device </del><del>type</del><del>?</del> <del>Would </del><del>that </del><del>be </del><del>easier </del><del>and </del><del>would </del><del>that </del><del>work</del><del>?</del>
dsiukola | 2022-09-29 17:25:13 UTC | #7
Yes, it may work better with a carousel. Up to 10 cards are supported. One thing to be aware of is that Lex will enforce a 1000 character limit in the reply area. Whitespace does count, so if you have pretty printed JSON, removing the spaces, tabs, and returns may help. https://help.mypurecloud.com/articles/work-with-carousels-in-bot-conversations/
Dante_Cady | 2022-09-29 17:39:48 UTC | #8
And can you confirm the process with the carousel. I go within the actual slot settings to setup the cards but the individual cards do not appear in the web messenger. Is there something I am missing?
dsiukola | 2022-09-29 17:53:41 UTC | #9
Without having a conversationId to check the logs, the other thing I can think of is that all of the image links cannot contain any redirects.
Dante_Cady | 2022-09-29 18:05:03 UTC | #10
Here is a conversation ID: 91784a6c-523f-4843-bb6b-e338d04bbc45
I was able to get the cards to display however, it shows above all the text in the chat, after the intent is invoked.
 |
 |
Dante_Cady | 2022-10-04 18:57:01 UTC | #11
Hello @dsiukola,
Do you know why the response card would appear above the communication?
dsiukola | 2022-10-04 20:17:48 UTC | #12
I see multiple Inbound Message flows that got run for that conversation. It looks like there was an issue with delivering a carousel message. It appears that the image/src+xml content type isn't supported.
dsiukola | 2022-10-04 20:41:50 UTC | #13
After following up with a different team, that restriction appears to be in Web Messaging. It supports image/jpeg, image/gif, & image/png.
system | 2022-11-04 20:42:28 UTC | #14
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 16514