Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  /api/v2/analytics/conversations/details/query participantName

    Posted 03-28-2022 02:55
    Edited by Hampus Nygren 03-29-2022 01:38
    No replies, thread closed.
    Hi,

    I'm creating a new agent script on which I would like to show latest 10 interaction for the customer who contacts us. For this i'm trying to utlize the /api/v2/analytics/conversations/details/query endpoint and would like to end up with something like this which can be used in a markup field.

    {
    "mediaTypes": [
    "chat",
    "mail",
    "participantNames": [
    "agent.1@example.com, agent.2@example.com",
    "agent.2@example.com"
    ],
    "conversationStarts": [
    "2022-02-28 16:36",
    "2022-02-28 08:36"
    ],
    "conversationEnds": [
    "2022-02-28 16:37",
    "2022-02-28 10:04"
    ]
    }

    The problem that I see is that rarly see the participantName of the agent which handled the interaction, instead only userId. Is there anything I'm missning or is there a easy way of translate the userID to participantName?
    #Integrations

    ------------------------------
    Hampus Nygren

    ------------------------------


  • 2.  RE: /api/v2/analytics/conversations/details/query participantName

    Posted 03-28-2022 16:11
    No replies, thread closed.
    Hi Hampus,

    Your best bet is to post API questions to the Developer forum
    https://developer.genesys.cloud/forum/

    Some ideas:
    You can use the API:
    /api/v2/users/{userId}
    to get the user name.

    You can also use the CLI to pretty easily get a list of users IDs, their names, divisions, managers etc.

    ------------------------------
    Anton Vroon
    ------------------------------



  • 3.  RE: /api/v2/analytics/conversations/details/query participantName

    Posted 03-29-2022 01:37
    Edited by Hampus Nygren 03-29-2022 01:37
    No replies, thread closed.
    Thank you Anton!

    I will give post in the Developer Forum​

    ------------------------------
    Hampus Nygren

    ------------------------------



  • 4.  RE: /api/v2/analytics/conversations/details/query participantName

    Posted 03-29-2022 18:50
    No replies, thread closed.
    Hampus,

    Does the built-in contact history view not meet your needs: https://help.mypurecloud.com/articles/view-interaction-history-contact/

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



  • 5.  RE: /api/v2/analytics/conversations/details/query participantName

    Posted 04-04-2022 02:45
    No replies, thread closed.
    Hi,

    We havent used this yet, but it look promising. Thank you for your input, I will dig into this right away.

    ------------------------------
    Hampus Nygren
    ------------------------------