Genesys Cloud - Main

 View Only

Sign Up

Expand all | Collapse all

How to handle "agent disconnect" event using Open Messaging API

  Thread closed by the administrator, not accepting new replies.
  • 1.  How to handle "agent disconnect" event using Open Messaging API

    Posted 02-28-2023 12:48
    No replies, thread closed.

    Hello team,

    Once we have moved from Guest Chat API to Open messaging API, we are facing a huge problem that is that we can't handle the disconnect event from the agent side in order to trigger som other processes as we used to do on Guest Chat API.

    Any idea if this is being considered on the Open API roadmap?

    Thanks,

    Mario


    #DigitalChannels

    ------------------------------
    Mario Sanchez
    Servicios en Tecnología de la Informacion SETEINFO del Ecuador C.A.
    ------------------------------


  • 2.  RE: How to handle "agent disconnect" event using Open Messaging API

    Posted 02-28-2023 13:45
    No replies, thread closed.

    Hey @Mario Sanchez out of curiosity: why are you migrating to Open Messaging APIs from Guest Chat, rather than Web Messaging APIs?

    We do have Conversation Disconnect event available (now in Beta) on Web Messaging APIs, but perhaps there's a good reason to use Open Messaging for your integration.



    ------------------------------
    Angelo Cicchitto
    Genesys - Employees
    ------------------------------



  • 3.  RE: How to handle "agent disconnect" event using Open Messaging API

    Posted 02-28-2023 14:57
    No replies, thread closed.

    Hey Angelo thanks for your reply. Basically we moved to Open Messaging API as suggestion from our LATAM Genesys team. We have a social network connector to integrate WhatsApp, FB, IG, TW, YT, TT, Linkedin with Genesys Cloud CX. Do you think Web Message is the one we need to use to do so?

    Tks,

    Mario 



    ------------------------------
    Mario Sanchez
    Servicios en Tecnología de la Informacion SETEINFO del Ecuador C.A.
    ------------------------------



  • 4.  RE: How to handle "agent disconnect" event using Open Messaging API

    Posted 02-28-2023 14:59
    No replies, thread closed.

    Angelo, can we have access to the beta API?



    ------------------------------
    Mario Sanchez
    Servicios en Tecnología de la Informacion SETEINFO del Ecuador C.A.
    ------------------------------



  • 5.  RE: How to handle "agent disconnect" event using Open Messaging API

    Posted 03-01-2023 02:40
    No replies, thread closed.

    Sure, see the guidance in corresponding Idea here, for how to enroll to Beta: https://genesyscloud.ideas.aha.io/ideas/DXWMM-I-26



    ------------------------------
    Angelo Cicchitto
    Genesys - Employees
    ------------------------------



  • 6.  RE: How to handle "agent disconnect" event using Open Messaging API

    Posted 03-01-2023 13:00
    No replies, thread closed.

    Just to chime in on this one.  If you are building a Social Messaging "connector" that will be proxying hundreds, thousands, or 10s of thousands of simultaneous active conversations, Open Messaging API is the easier API to use because you do not have to maintain a persistent connection for each conversation.  Web Messaging is going to require you to maintain a websocket for each active conversation you are proxying across.

    If you use the Open Messaging API and need to get the Agent Joined and Agent Left events, then you can create a single Websocket connection to Genesys Cloud using our Notification API and you can subscription to conversation events for the conversations your are actively proxying, and then watch for then the agent participant gets added to the conversations (Agent Joined) and when the agent participant has a status of disconnect (Agent Left).  

    That is a patterns that has been used by many of our AppFoundry partners using the Open Messaging API and it works quite well.



    ------------------------------
    Jim Crespino
    Senior Director, Developer Evangelism
    Genesys
    https://developer.genesys.com
    ------------------------------



  • 7.  RE: How to handle "agent disconnect" event using Open Messaging API

    Posted 03-03-2023 01:42
    No replies, thread closed.

    Yep! We use open messaging  with notification topic subscriptions (also with aws event bridge integration) to manage agent disconnect or for example customer that does not write after x min...

    It could be more easy to have a platform configuration...



    ------------------------------
    Enrico Preite
    Vodafone Procurement Company S.a.r.l.
    ------------------------------



  • 8.  RE: How to handle "agent disconnect" event using Open Messaging API

    Posted 03-10-2023 06:32
    No replies, thread closed.

    Thank you Enrico, your post is really helpfull. Could you please provide more detailed information regarding the aws event bridge integration?

    Regards,



    ------------------------------
    Mario Sanchez
    Servicios en Tecnología de la Informacion SETEINFO del Ecuador C.A.
    ------------------------------



  • 9.  RE: How to handle "agent disconnect" event using Open Messaging API

    Posted 03-10-2023 11:40
    No replies, thread closed.

    Mario,

    Here is the Resource Center link for setting up the AWS Event Bridge integration: https://help.mypurecloud.com/articles/about-the-amazon-eventbridge-integration/

    Here is the Developer Center link for the technical aspects of consuming events: https://developer.genesys.cloud/notificationsalerts/notifications/event-bridge

    If you have questions as you are developing with Event Bridge then please feel free to post those into the Developer Center Forum (https://developer.genesys.cloud/forum) and we'll get those questions answered for you.

    Cheers,



    ------------------------------
    Jim Crespino
    Senior Director, Developer Evangelism
    Genesys
    https://developer.genesys.com
    ------------------------------



  • 10.  RE: How to handle "agent disconnect" event using Open Messaging API

    Posted 03-10-2023 14:48
    No replies, thread closed.

    what Jim shared is what we did.

    With the notification topic subscription it is easy but regarding the user presence if agent logout you will receive the OFFLINE status after 30sec

    @Jim Crespino this 30's seconds delay is not so good :(



    ------------------------------
    EnricoPreite
    Vodafone Procurement Company S.a.r.l.
    ------------------------------



  • 11.  RE: How to handle "agent disconnect" event using Open Messaging API

    Posted 03-10-2023 16:00
    No replies, thread closed.

    Enrico,

    I wasn't aware of a 30 second delay in the event after an agent logs out.  It might be worth making a post on the Developer Forum (https://developer.genesys.cloud/forum) to ask why that delay is there.  I'm sure someone from our engineering team will chime in on whether that's to be expected or not and if so then why.



    ------------------------------
    Jim Crespino
    Senior Director, Developer Evangelism
    Genesys
    https://developer.genesys.com
    ------------------------------



  • 12.  RE: How to handle "agent disconnect" event using Open Messaging API

    Posted 08-16-2023 17:31
    No replies, thread closed.

    Jim, is there any option to filter topic events as channel type, for example only for Message?



    ------------------------------
    Mario Sanchez
    Servicios en Tecnología de la Informacion SETEINFO del Ecuador C.A.
    ------------------------------



  • 13.  RE: How to handle "agent disconnect" event using Open Messaging API

    Posted 08-17-2023 13:30
    No replies, thread closed.

    Yes, a match criteria like this would filter on only "MESSAGE" interactions:

    {
      "jsonPath": "mediaType",
      "operator": "Equal",
      "value": "MESSAGE"
    }



    ------------------------------
    Jim Crespino
    Senior Director, Developer Evangelism
    Genesys
    https://developer.genesys.com
    ------------------------------



  • 14.  RE: How to handle "agent disconnect" event using Open Messaging API

    Posted 08-17-2023 13:39
    No replies, thread closed.

    Thanks Jim, where should I use the Json? In the Advanced Configuration tab inside the Amazon EventBridge Integration?



    ------------------------------
    Mario Sanchez
    Servicios en Tecnología de la Informacion SETEINFO del Ecuador C.A.
    ------------------------------



  • 15.  RE: How to handle "agent disconnect" event using Open Messaging API

    Posted 08-17-2023 15:27
    No replies, thread closed.

    Oh, on Event Bridge I don't believe there is any filtering that can be done within Genesys.  You'd have to perform filtering in your Lambda base on the event attributes that you receive.



    ------------------------------
    Jim Crespino
    Senior Director, Developer Evangelism
    Genesys
    https://developer.genesys.com
    ------------------------------



  • 16.  RE: How to handle "agent disconnect" event using Open Messaging API

    Posted 08-17-2023 16:58
    No replies, thread closed.

    Ooops I wanted to avoid a high volume of events but anyways we will do the filtering on lambda. Thanks a lot.



    ------------------------------
    Mario Sanchez
    Servicios en Tecnología de la Informacion SETEINFO del Ecuador C.A.
    ------------------------------



  • 17.  RE: How to handle "agent disconnect" event using Open Messaging API

    Posted 08-18-2023 11:58
    No replies, thread closed.

    We were looking at different mechanisms to get this info and ultimately decided to go with AWS EventBridge with Lambda filtering. Our CRM/Ticketing system is in Azure, so we simply pipe the AWS messages to a MQ in Azure.

    It worked out pretty well, but we do have to do a lot of filtering on the Lambda side. Of course we do end up paying for more EventBridge messages than we need, but they are super cheap so it's not an issue at the moment. 



    ------------------------------
    Maksim Gill
    Eccentex (Advanced Case and Email Management Platform for Genesys)
    https://www.eccentex.com/genesys
    ------------------------------



  • 18.  RE: How to handle "agent disconnect" event using Open Messaging API

    Posted 08-16-2023 17:30
    No replies, thread closed.

    Enrico, is there any option to filter topic events as channel type, for example only for Message?



    ------------------------------
    Mario Sanchez
    Servicios en Tecnología de la Informacion SETEINFO del Ecuador C.A.
    ------------------------------



  • 19.  RE: How to handle "agent disconnect" event using Open Messaging API

    Posted 03-10-2023 06:28
    No replies, thread closed.

    Thank you so much Jim, I really appreciate your post.



    ------------------------------
    Mario Sanchez
    Servicios en Tecnología de la Informacion SETEINFO del Ecuador C.A.
    ------------------------------



  • 20.  RE: How to handle "agent disconnect" event using Open Messaging API

    Posted 03-10-2023 06:29
    No replies, thread closed.

    Thank you so much Jim, I really appreciate your post.



    ------------------------------
    Mario Sanchez
    Servicios en Tecnología de la Informacion SETEINFO del Ecuador C.A.
    ------------------------------