Hi all,
I am trying to build a use case with triggers. The trigger is meant for scheduled callbacks. We our give customers the possiblilty to cancel their appointment. by doing so the endpoint api/v2/conversations/callbacks/${conversationId} is called and the jsonpath is
"state" : "disconnected"
with this trigger below I listen to mediatype callback with customer end and the workflow is sending a sms
topic is "v2.detail.events.conversation.{id}.customer.end"
{
"id": "93562d09-93bb-466-5c374a413870",
"name": "Callback Cancelled Trigger",
"topicName": "v2.detail.events.conversation.{id}.customer.end",
"target": {
"type": "Workflow",
"id": "0a8a1877-cf00-41e1-92560523eb"
},
"version": 5,
"enabled": false,
"matchCriteria": [
{
"jsonPath": "mediaType",
"operator": "Equal",
"value": "CALLBACK"
},
{
"jsonPath": "disconnectType",
"operator": "Equal",
"value": "CLIENT"
},
{
"jsonPath": "state",
"operator": "Equal",
"value": "disconnected"
}
],
"description": "Trigger that fires when a callback is cancelled",
"selfUri": "/api/v2/processautomation/triggers/93562d09-9*********8-9916-5c374a413870"
I am testing the workflow with the Launch en Get api's based on the conversation id and the workflow works fine by noticing the sms that arrives on the cell phone. but when I am disconnecting the scheduled callback the trigger does not work. What goes wrong here?
best reagrds
Jerry