Hi Dewalt. That is exactly the way to do it. In fact if you setup a trigger on user.start and user.end then you can call your webhook to notify when the agent joins the interaction and when they leave. Those messages won't be logged in the messaging transcript, but the customer will at least receive those notifications.
Original Message:
Sent: 03-17-2025 17:44
From: Dewald Smit
Subject: Open Messaging - Best way to get the Agent Name
Thanks Anton, I have just found, i think the best way.
Trigger:
------------------------------
Dewald Smit
Systems Consultant (CX Engineer)
Original Message:
Sent: 03-17-2025 16:17
From: Anton Vroon
Subject: Open Messaging - Best way to get the Agent Name
Not sure about the best way to do it,
But from the purpose=agent participant get the userId instead of the Participant Id, or the session.selectedAgentId.
From there you should be away, in architect you can find agent by id, with the action or expression, and once you have the agent object you can access the name id or username, eg State.UserExample.id State.UserExample.name State.UserExample.username
------------------------------
Anton Vroon
Original Message:
Sent: 03-17-2025 15:21
From: Dewald Smit
Subject: Open Messaging - Best way to get the Agent Name
Welcome to the new Home all.
I'm going to use this opportunity to ask a question and I'm looking for possible solutions with the least amount of API calls required to achieve the goal.
The Issue at hand. The customer built an Open Messaging Middleware application, everything is perfect, the only setback currently is not having the Agent name available to the Middleware via Open Messaging events/responses etc. See: ideas/OTB-I-578
Now the question part. What would be the simplest API call "cost" effective way using Trigger/Workflow/Data Action to on "event answer".
The Best event to trigger on seems to be, v2.detail.events.conversation.{id}.acd.end, since user.start did not seem to trigger.
I then created a Data action to get the participant Ids for the Purpose=Agent participants.
In the workflow I can then isolate the current agent on the conversation as the last in array participant Id returned, then I can use that on Get Participant Data and define the Participant Id Data to return.
And this is where I am stuck now.
How do I access the said Participant Id Data in Architect (Feels like a i cant believe i missed that question)
Then, if anyone has dealt with this use case before, any insight suggestions or solutions is currently welcome :)
Thank you, and Wishing this new chapter a health collaborative future.
#Integrations
------------------------------
Dewald Smit
Systems Consultant (CX Engineer)
------------------------------