Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  How to get AgentID in Architect flow or dataaction

    Posted 06-15-2022 10:08
    No replies, thread closed.
    Hi ,

    Please recommend ,how to get agentID  in Architect flow or how to get it from Data action  .

    Thanks
    Jakkapan
    #ArchitectureandDesign

    ------------------------------
    jakkapan kerdpan
    [NTT]
    ------------------------------


  • 2.  RE: How to get AgentID in Architect flow or dataaction

    Posted 06-15-2022 16:18
    No replies, thread closed.
    HI Jakkapan,

    What is your starting point? What do you have already?
    If you have already done Find User Action with an email address, or some other method to create an agent variable, you can then just to Task.VariableName.AgentId

    If you don't already have an agent object but you have the conversationID the agent was involved in
    Then you should be able to get the agent ID from the Conversation Detail API

    If you don't have a ConversationId
    You can get all users with /api/v2/users

    So really depends on your use case here, and where you are starting from.


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