Legacy Dev Forum Posts

 View Only

Sign Up

Need to fetch Agent Id from trigger event

  • 1.  Need to fetch Agent Id from trigger event

    Posted 06-05-2025 19:05

    Maloy.Karmakar | 2023-10-12 14:37:52 UTC | #1

    The ask is to fetch agent Id from Trigger event v2.detail.events.conversation.{id}.user.end

    Is this possible directly or Another data action is required to get Conversation Details first in workflow?


    Jerome.Saint-Marc | 2023-10-12 14:48:36 UTC | #2

    Hello,

    The id of the user (your agent) is available in the userId attribute (in the v2.detail.events.conversation.{id}.user.end event). See the Event Schema section in v2.detail.events.conversation.{id}.user.end.

    Regards,


    Maloy.Karmakar | 2023-10-12 14:55:32 UTC | #3

    Jerome.Saint-Marc, post:2, topic:22503
    userId

    Hi @Jerome.Saint-Marc.. when I am trying to fetch userId using Get Conversation Data in Workflow, it returns nothing :frowning: . Below is the screenshot, not sure if I am doing it wrong.


    Maloy.Karmakar | 2023-10-12 15:06:52 UTC | #4

    @Jerome.Saint-Marc got it now. sorry my bad here!


    Jerome.Saint-Marc | 2023-10-12 15:08:47 UTC | #5

    This block is to retrieve conversation's participant attributes. That's not what you need.

    Assuming that you have defined your trigger using TopLevelPrimitives dataFormat in workflowtargetsettings. Then, in your workflow, you just need to create a string variable "*userId* " and enable "*Input to flow* " under Variable Options. When the workflow is triggered, this variable will be populated automatically - the user if will be contained in Flow.userId

    Regards,


    Maloy.Karmakar | 2023-10-12 15:09:40 UTC | #6

    thanx @Jerome.Saint-Marc for your help


    system | 2023-11-11 15:10:07 UTC | #7

    This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 22503