Response Cards Do Not Render Web Messaging

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.


image

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.

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"

        }

    ]

}]

}

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.

I misread the documentation page. Work with cards in bot conversations - Genesys Cloud Resource Center has a box that says, " Note: Best practice recommends that you limit the number of bot selections on a single card to three options."

This did help! Thank you! By any chance, is it best to use a carousel and have each card be the device type? Would that be easier and would that work?

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. Work with carousels in bot conversations - Genesys Cloud Resource Center

1 Like

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?

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.

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.


image

Hello @dsiukola,

Do you know why the response card would appear above the communication?

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.

After following up with a different team, that restriction appears to be in Web Messaging. It supports image/jpeg,
image/gif, & image/png.

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.