Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Web Messaging - Send information to front end without sending a message

    Posted 2 days ago

    I want to send information from the Architect flow (in this case in-queue message flow, but maybe others later) so that I can display the queue position and estimated wait time before the user gets to the chat.  I can use the database get command or subscribe to database updates through the SDK, but I have no way to update the customAttributes in Architect.

    Any suggestions on how I can update customAttributes, or otherwise update data in Architect so that the front end can subscribe to it?


    #ArchitectandDesign

    ------------------------------
    Dan Gilmour
    ------------------------------


  • 2.  RE: Web Messaging - Send information to front end without sending a message

    Posted 19 hours ago

    Hi Dan,

    I think this question may be better suited to the Genesys Cloud Developer Community so that the experts there can help with this, so I am going to move it over.



    ------------------------------
    Sam Jillard
    Online Community Manager/Moderator
    Genesys - Employees
    ------------------------------



  • 3.  RE: Web Messaging - Send information to front end without sending a message

    Posted 16 hours ago

    Thanks



    ------------------------------
    Dan Gilmour
    ------------------------------



  • 4.  RE: Web Messaging - Send information to front end without sending a message

    Posted 3 hours ago

    Hi @Dan Gilmour,

    There may be a better way to do this but you can use "Set Participant" step in Architect to set a key-value pair with the value of "position in queue" or "estimated wait time". Then you can subscribe to events from v2.detail.events.conversation.{id}.attributes and you can look for changes in the two participant data elements you set within Architect. You can subscribe to v2.detail.events.conversation.{id}.attributes either via eventbridge or websockets.

    Hope this helps, until someone posts a better solution.

    Regards



    ------------------------------
    Vineet Kakroo
    Senior Technical Consultant
    ------------------------------