Hello -
Our org has general email notifications disabled for compliance reasons. In the past, we have used triggers/workflows to notify users when a queue voicemail has been received. However, I have a new requirement to send an email when a group voicemail is received.
I was planning on using this event endpoint to set up the trigger:
v2.detail.events.conversation.{id}.voicemail.end
However, I noticed that groupId isn't listed in the event schema. Is there a known workaround for triggers for group voicemails?
I could try and use dnis as a surrogate - i believe that will capture all instances except for transfers, since I can only interrogate dnis instead of an array of sessionDnis values. I'd like to avoid this setup if possible.
With conversationId you can use data action to look at conversation.
I believe you will get a participant array entry with a purposegroup and participantTypeGroup
That object has a key groupId with your GUID to group
I have only seen that by calling an internal group and looking at conversation that was created.
Make a call, leave a Voicemail on the group and check interactions for the convesationId, then double check properties I mention above match your expectations.
Thanks, Simon -
On the trigger side, what would I use as my condition set for the trigger? I don't see a spot in the Event Schema to set up a trigger pointed at a Group VM.
You wont.
That is the point of creating a Data Action to get the groupId from the conversation using the conversationId the schema passes to the workflow linked to trigger.
Although I do see the ...voicemail.end schema has a property called voicemailDurationMs so maybe check that is greater than 0 ?