Banner required onlywhile raising ticket and closing banner after ticket closed

Usecase: To enable banner only when Raise Ticket node is triggered and banner removed when the ticket is closed.


However the banner is coming like this

The object I’m passing as a custom event data is

{
        quickReplies: [
            {
                title: `Click below to end the chat with Live Agent.`,
                options: [
                    {
                        title: "End Chat", text: "unpause"
                    }
                ]
            }
        ],
        "autoPlay": false
    }

with event name

ui-event-update-promotion

I also need an event if user clicks the banner button
Can anyone help to understand how will get the banner in quickReply and event onClick?

Namaste @Subhrajit_Gupta
Please send an event when agent will get connected, to load/show the banner:
app.sendEvent({ 2 code: "ui-event-update-promotion", 3 data: { 4 [ 5 title:"hello", 6 actions:[{ 7 title:"1", 8 text:"1" 9 }] 10 ] 11 }); 12

To close/hide the banner send a different event:
code:"ui-event-close-promotion"
Note: Data is not needed in this case

Hi @akshay_bhat ,

Its a On prem cloud bot where we dont have accesss to app, and we are using Genesys. We dont get any event after ticket gets connected.
Plus made the necessary changes in as you suggested.
The sendEvent object you shared isnt having a balanced paranthesis.

The banner issue is resolved.
For the unpause case, a fix has been found for now, will wait if anything more is required.

Solution :
Pass dynamic array to data

[
        {
            title: `Title.`,
            options: [
                {
                    title: "Title", text: "text"
                }
            ]
        }
    ]
1 Like