Need to fetch Agent Id from trigger event

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?

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,

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.
image

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

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,

1 Like

thanx @Jerome.Saint-Marc for your help

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