Engagement Split Format

The engagement split activity is used to change the path for a contact based on how they did or didn’t interact with an email. It allows you to define logical flows for your journey based on clicks and opens. This activity type can’t be used in a custom activity.

Helpful Hints 

  • This activity works only with the send email types for splitting the journey path.
  • The outcome of this decision affects goal statistics.

Journey Specification Format 

The activity must be formatted as specified in this sample request. This JSON object is included in the activities array of a journey, as defined in the Journey Specification.

1{
2  "key": "ENGAGEMENTDECISION-1",
3  "name": "Engagement Decision",
4  "description": "Description for this Activity",
5  "type": "EngagementDecision",
6  "outcomes": [
7    {
8      "next": "WAIT-[#]",
9      "arguments": {
10          "when": true
11      }
12    },
13    {
14      "next": "WAIT-[#]",
15      "arguments": {
16          "when": false
17      }
18    }
19  ],
20  "configurationArguments": {
21    "refActivityCustomerKey": "EMAIL-1",
22    "statsTypeId": 2, // 2 = Email opened, 3 = Email clicked, 6 = Email bounced
23    "statusUrlId": "0"
24  },
25  "metaData": {
26    "refActivityName": "<nameOfEmailForReference",
27  }
28}

The response resembles this example.

1{
2  "id": "<guid>",
3  "key": "ENGAGEMENTDECISION-1", // The UI adds an incremented number each time a new activity of this type is brought onto the stage.
4  "name": "Engagement Decision", // "Last Modified Today"
5  "description": "Description for this Activity",
6  "type": "EngagementDecision",
7  "outcomes": [
8    {
9      "key": "<guid>",
10      "next": "WAIT-[#]",
11      "arguments": {
12        "when": true
13      }
14    },
15    {
16      "key": "<guid>",
17      "next": "WAIT-[#]",
18      "arguments": {
19        "when": false
20      }
21    }
22  ],
23  "configurationArguments": {
24    "refActivityCustomerKey": "EMAIL-1",
25    "statsTypeId": 2,
26    "statusUrlId": "0"
27  },
28  "metaData": {
29    "refActivityName": "<nameOfEmailForReference",
30  }
31}

Related Items