Trying to adapt the steps in this video Genesys Process Automation with Event Triggers - YouTube as well as follow the documentation here https://developer.genesys.cloud/platform/process-automation/ to create a trigger on acd.end, I set up a trigger like so:
{
"id": "58d18926-cbea-4245-93de-7cd59e2fd3c3",
"name": "Conversation.end Trigger",
"topicName": "v2.detail.events.conversation.{id}.acd.end",
"target": {
"type": "Workflow",
"id": "2b369842-bed0-445d-ac29-445f7a142b30"
},
"version": 2,
"enabled": true,
"matchCriteria": [
{
"jsonPath": "mediaType",
"operator": "Equal",
"value": "VOICE"
}
],
"description": "This trigger fires whenever a conversation ends, used by Davis for testing",
"selfUri": "/api/v2/processautomation/triggers/58d18926-cbea-4245-93de-7cd59e2fd3c3"
}
And for testing set up a simple workflow that updates the Conversation Data of "State" with "GA" (it previously was "OH") however I haven't been successful in doing so. With how simple the workflow is I'm assuming something is wrong with the trigger but am not sure. I'm making an inbound call from my cellphone into a IVR that sets a bunch of mock participant data, then sends it to a queue that I'm a member of, from there I end the call as the agent and would expect the workflow to be triggered. Having a hard time following the documentation on this but most of it seems pretty simple so not sure what I could be missing.
My only hunch is that Flow.conversationId just being a defined input variable seems like it's missing something, however that's all that was done in the video.
Edit: I thought maybe it had to do w/ the trigger not actually working the way I thought it did so I made another trigger that is on WRAP, still unable to get it to function:
{
"id": "9e71ed20-17a2-422b-a1b8-4f492115249d",
"name": "Conversation.end Trigger",
"topicName": "v2.detail.events.conversation.{id}.wrapup",
"target": {
"type": "Workflow",
"id": "2b369842-bed0-445d-ac29-445f7a142b30"
},
"version": 1,
"enabled": true,
"matchCriteria": [],
"description": "This trigger fires whenever a conversation is wrapped, used by Davis for testing",
"selfUri": "/api/v2/processautomation/triggers/9e71ed20-17a2-422b-a1b8-4f492115249d"
}