Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  get customer name

    Posted 2 days ago

    I am creating a real time dashboard using web socket notifications. I am looking for a way to get the name and number of a customer that is currently interacting with a given agent. Which notification do I need to subscribe to?


    #Integrations
    #PlatformAPI

    ------------------------------
    Joel Einhorn
    ------------------------------


  • 2.  RE: get customer name

    Posted yesterday
    Edited by Guillaume Sens yesterday

    Hi Joel,

    Have you tried to use v2.users.{userId}.conversations notification? https://developer.genesys.cloud/notificationsalerts/notifications/available-topics#v2-users--id--conversations

    From there you can find live conversation (state == "connected") and extract ANI and ExternalContactId (where participant purpose == "customer")



    ------------------------------
    Guillaume Sens
    Sr. Technical Account Manager
    ------------------------------



  • 3.  RE: get customer name

    Posted yesterday
    Thank you, how can I get the customers name from that Id?





  • 4.  RE: get customer name

    Posted 16 hours ago
    Edited by Guillaume Sens 16 hours ago

    With the External Contact ID you can retrieve the customer name via a call to endpoint: GET /api/v2/externalcontacts/contacts/{contactId}



    ------------------------------
    Guillaume
    ------------------------------