Workflow Events

Custom event that can be fired from our Workflows

Workflow Event Object

NameTypeDescriptionExample
idstrIdentifier of the event"zzzz1111yyyy2222xxxx"
typestrThe type of event that occurred"workflow.send_communication""
createdintUnix timestamp when the event occurred1758652772
dataobjectEvent payloadSee JSON below
data.keystrThe user created identifier to differentiate eventsfree_gift
data.object.typestrResource type of event objectworkflow
data.object.merchantstrIdentifier of merchant519f1f120e3411ef984b1e8a267ce85a
data.object.workflow_idarrayIdentifier of the workflow519f1f120e3411ef984b1e8a267ce85a
data.object.workflow_namestrName of the workflow"dee489eb3c6f419dbd65fb99f33c60f5"
data.object.execution_idstrIdentifier of the workflow execution"519f1f120e3411ef984b1e8a267ce85a"
data.subscriber.emailstrThe email of the subscriber[email protected]
data.subscriber.phone_numberstrThe phone number of the subscriber555-555-5555
data.subscriber.first_namestrThe first name of the subscriberJoe
data.subscriber.last_namestrThe last name of the subscriberSmith
data.execution_contextobjectKey-Value pair containing workflow execution data
  • Example data:
{
  "id": "mmmm4444nnnn3333pppp",
  "type": "workflow.send_communication",
  "created": 1622589211,
  "data": {
    "key": "free_gift",
    "object": {
      "type": "workflow",
      "merchant": "aaaa1111bbbb2222cccc",
      "workflow_id": "dddjjjjkk3343",
      "workflow_name": "My Workflow",
      "execution_id": "aaaa1111bbbb2222cccc",
    },
    "subscriber": {
       "email": "[email protected]",
      "first_name": "Joe",
      "last_name": "Smith",
      "phone_number": "555-555-5555"
    },
    execution_context: {
      "foo": "bar"
    }
  }
}

Workflow Event Types

  • workflow.send_communication

  • Triggered from a "Send Communication" node in a workflow that is configured to use an Ordergroove webhook. The execution context will depend on the type of workflow and the nodes preceding the send communication node.