Hi Victor,
You can try setting up a trigger for v2.detail.events.conversation.{id}.user.start and filter on queueId if its blank.
Then trigger a workflow that calls this endpoint:
patch
/api/v2/conversations/calls/{conversationId}/participants/{participantId}/communications/{communicationId}
You can reference conversationId, participantId and communicationId (sessionId) from the event attributes itself in Architect.
The data action above to update the conversation must have this is the request body:
{
"state": "disconnected"
}
------------------------------
Niel Vicente
DAMAC Properties Co. LLC
------------------------------
Original Message:
Sent: 08-01-2024 22:12
From: Victor Shvetsky
Subject: Triggers on Outbound Call?
Hi,
I was wondering if there is a way to setup a trigger that checks for the presence of a queue in an outbound call and cancels the call in case of its absence. Thank you!
#Implementation
------------------------------
WE PROUDLY SUPPORT UKRAINE.
------------------------------