{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "4D17EEDB-1199-486E-A19F-59DDC642AC02",
    "name": "Dittofeed: orders, bookings, signups to journeys"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": -64.40677966101696,
        "y": -425.08474576271186,
        "zoom": 0.95
      },
      "autoSave": false,
      "descriptions": {
        "flow": "Sends new Shopify orders, Calendly bookings and Tally newsletter signups to self-hosted Dittofeed: identifies the person, records Order Placed or Appointment Booked for journeys to act on, and subscribes newsletter signups to the newsletter group.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "Sends new Shopify orders, Calendly bookings and Tally newsletter signups to self-hosted Dittofeed: identifies the person, records Order Placed or Appointment Booked for journeys to act on, and subscribes newsletter signups to the newsletter group.",
    "elements": [
      {
        "clientMetadata": {
          "notes": "Triggers when someone schedules a meeting, enabling AI agents to automate follow-up workflows, send confirmation emails, add contacts to CRM systems, or trigger personalized onboarding sequences. Perfect for capturing leads, scheduling follow-ups, and maintaining engagement momentum.",
          "elementId": "EXTENSION:::SHARED:::default:::calendly:::onCreateInvitee",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-trigger",
          "newElementId": "EXTENSION:::SHARED:::default:::calendly:::onCreateInvitee",
          "legacyElementId": "JS###v1###CalendlyService###onCreateInvitee",
          "methodName": "onCreateInvitee",
          "position": {
            "x": 110,
            "y": 40
          }
        },
        "flowElementId": "4854CEF1-3D25-49E8-8A89-93268788B84B",
        "groupId": "15A5B093-B492-4C1F-892A-7F9D694CBAB3",
        "id": "ECA32BF8-EEC9-42EA-BDE0-E995F3E3D837",
        "metaInfo": {
          "callbackUrl": null,
          "clientValidationState": {
            "errorMessage": "Block: 'New Calendly booking', Error: OAuth Connection is required",
            "valid": false
          },
          "condition": null,
          "connectionId": null,
          "eventName": "onCreateInvitee",
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Calendly booking",
          "scope": "SINGLE_APP",
          "serviceId": "calendly",
          "slaConditions": [],
          "staticData": {},
          "storeResult": true,
          "subtype": "REALTIME",
          "type": "CUSTOM"
        },
        "name": "New Calendly booking",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read the order, booking or signup Result"
          },
          "position": {
            "x": 472,
            "y": 499
          }
        },
        "flowElementId": "9C04BFEB-4BD8-40BE-B915-E212D89FA037",
        "groupId": null,
        "id": "556F595F-514C-494B-B317-303A74DA6319",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "data",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Source event",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "15A5B093-B492-4C1F-892A-7F9D694CBAB3"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const d = data || {};\nconst clean = v => String(v || '').trim();\n\nif (Array.isArray(d.lineItems) || d.totalPrice !== undefined) {\n  const customer = d.customer || {};\n  const email = clean(customer.email || d.email).toLowerCase();\n  return {\n    kind: 'order',\n    email,\n    traits: { email, name: clean(customer.displayName) },\n    event: 'Order Placed',\n    properties: {\n      orderNumber: d.name,\n      total: Number(d.totalPrice || (d.totalPriceSet && d.totalPriceSet.shopMoney && d.totalPriceSet.shopMoney.amount) || 0),\n      currency: d.currency || '',\n      products: (d.lineItems || []).map(i => ({ title: i.title, sku: i.sku, quantity: i.quantity, price: Number(i.price || 0) })),\n    },\n    timestamp: d.createdAt || '',\n  };\n}\n\nif (d.scheduled_event) {\n  const ev = d.scheduled_event;\n  const email = clean(d.email).toLowerCase();\n  const host = (ev.event_memberships || [])[0] || {};\n  return {\n    kind: 'booking',\n    email,\n    traits: { email, name: clean(d.name), timezone: d.timezone || '' },\n    event: 'Appointment Booked',\n    properties: {\n      meeting: ev.name,\n      startTime: ev.start_time,\n      endTime: ev.end_time,\n      joinUrl: (ev.location && ev.location.join_url) || '',\n      host: host.user_name || '',\n      rescheduleUrl: d.reschedule_url || '',\n      cancelUrl: d.cancel_url || '',\n    },\n    timestamp: d.created_at || '',\n  };\n}\n\nconst fields = d.fields || [];\nconst emailField = fields.find(f => f.type === 'INPUT_EMAIL') || fields.find(f => /e-?mail/i.test(f.label || ''));\nconst nameField = fields.find(f => /name/i.test(f.label || '') && f.type !== 'INPUT_EMAIL');\nconst email = clean(emailField && emailField.value).toLowerCase();\nreturn {\n  kind: 'signup',\n  email,\n  traits: { email, name: clean(nameField && nameField.value), signupForm: d.formName || '' },\n  event: '',\n  properties: {},\n  timestamp: d.createdAt || '',\n};"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Person",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Read the order, booking or signup",
        "nextElementIds": [
          "8CABB282-F638-4CA5-A1E1-77F49B1872EB"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 907,
            "y": 499
          }
        },
        "flowElementId": "4BEBEE59-ED59-4A53-9A41-D11CC365F846",
        "groupId": null,
        "id": "8CABB282-F638-4CA5-A1E1-77F49B1872EB",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "a58d785f-f0b6-4c00-91f1-79cafdfa7356",
                "nestedOperation": null,
                "operation": "isNotEmpty",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Person",
                      "subPathSegments": [
                        {
                          "key": "email",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "556F595F-514C-494B-B317-303A74DA6319"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": []
              }
            ],
            "grouping": [
              "a58d785f-f0b6-4c00-91f1-79cafdfa7356"
            ]
          },
          "elseComponent": null,
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Email given",
          "storeResult": false,
          "thenComponent": {
            "componentId": "E1706A8D-2A30-4D4E-B1EE-B7083947EFD6",
            "componentType": "ELEMENT"
          }
        },
        "name": "Email address given?",
        "nextElementIds": [
          "E1706A8D-2A30-4D4E-B1EE-B7083947EFD6"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Creates or updates a user in Dittofeed with their traits, such as email, name or plan (POST /api/public/apps/identify). Uses the Write Key.",
          "elementId": "EXTENSION:::SHARED:::default:::dittofeed:::identifyUser",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Add the person to Dittofeed Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::dittofeed:::identifyUser",
          "legacyElementId": null,
          "methodName": "identifyUser",
          "position": {
            "x": 1254,
            "y": 490
          }
        },
        "flowElementId": "BE393F43-B275-4675-94E0-AD3184D251DA",
        "groupId": null,
        "id": "E1706A8D-2A30-4D4E-B1EE-B7083947EFD6",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "userId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Person",
                    "subPathSegments": [
                      {
                        "key": "email",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "556F595F-514C-494B-B317-303A74DA6319"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "anonymousId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "traits",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Person",
                    "subPathSegments": [
                      {
                        "key": "traits",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "556F595F-514C-494B-B317-303A74DA6319"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "timestamp",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "context",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "messageId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "identifyUser",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Identified user",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "dittofeed",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Add the person to Dittofeed",
        "nextElementIds": [
          "1BDAA187-CEB9-4F12-B035-D069E825724B"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Triggers when a new order is created in your Shopify store. Polling interval can be customized (minimum 30 seconds). Each cycle inspects the 50 most recent orders, so bursts of more than 50 new orders between polls may be missed.",
          "elementId": "EXTENSION:::SHARED:::default:::shopify:::onNewOrder",
          "isFirstElement": false,
          "blockDefinitionId": "EXTENSION:::SHARED:::default:::shopify:::onNewOrder",
          "newElementId": "EXTENSION:::SHARED:::default:::shopify:::onNewOrder",
          "legacyElementId": "JS###v1###Shopify###onNewOrder",
          "methodName": "onNewOrder",
          "position": {
            "x": 110,
            "y": 220
          }
        },
        "flowElementId": "E38702D0-A1C1-4FF3-B940-A46817045E7D",
        "groupId": "15A5B093-B492-4C1F-892A-7F9D694CBAB3",
        "id": "37E0F27F-71B7-4576-94D4-7F22E5C31553",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": "Block: 'New Shopify order', Error: OAuth Connection is required",
            "valid": false
          },
          "condition": null,
          "connectionId": null,
          "dynamicData": [],
          "eventName": "onNewOrder",
          "frequency": {
            "repeat": {
              "every": 300
            },
            "schedule": "custom"
          },
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Shopify order",
          "serviceId": "shopify",
          "slaConditions": [],
          "staticData": {},
          "storeResult": true,
          "subtype": "POLLING",
          "type": "CUSTOM"
        },
        "name": "New Shopify order",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "notes": "Subscribes a user to some subscription groups and unsubscribes them from others. Groups not named are left as they are (PUT /api/admin/subscription-groups/assignments).",
          "elementId": "EXTENSION:::SHARED:::default:::dittofeed:::updateUserSubscriptions",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Add them to the newsletter group Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::dittofeed:::updateUserSubscriptions",
          "legacyElementId": null,
          "methodName": "updateUserSubscriptions",
          "position": {
            "x": 864,
            "y": 660
          }
        },
        "flowElementId": "D6CF01EC-B167-4D34-B3FD-06D20FCC751D",
        "groupId": null,
        "id": "DEB04AF7-EE11-45AA-A748-2DBACE4719A9",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "userId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Person",
                    "subPathSegments": [
                      {
                        "key": "email",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "556F595F-514C-494B-B317-303A74DA6319"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "subscribeTo",
              "type": "SIMPLE_LIST",
              "value": [
                {
                  "expression": [
                    {
                      "id": "PLACEHOLDER_DATA",
                      "label": "Newsletter subscription group",
                      "subPathSegments": null,
                      "type": "EXECUTION_CONTEXT_STATIC_DATA",
                      "value": "Newsletter subscription group"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                }
              ]
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Add them to the newsletter group', Error: [object Object]",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "updateUserSubscriptions",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Newsletter subscription",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "dittofeed",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Add them to the newsletter group",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Fires in real time when the selected Tally form receives a new submission. Tally registers a webhook for the form and this trigger runs your flow with the raw submission data: responseId, submissionId, respondentId, formId, formName, createdAt, the raw fields array (each with key, label, type, and value), plus a flattened values map keyed by field label for easy access to answers.",
          "elementId": "EXTENSION:::SHARED:::default:::tally:::onNewSubmission",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-trigger",
          "newElementId": "EXTENSION:::SHARED:::default:::tally:::onNewSubmission",
          "legacyElementId": "JS###v1###Tally###onNewSubmission",
          "methodName": "onNewSubmission",
          "position": {
            "x": 110,
            "y": 400
          }
        },
        "flowElementId": "424D819B-6B92-493A-B92A-596CA8B33D24",
        "groupId": "15A5B093-B492-4C1F-892A-7F9D694CBAB3",
        "id": "9686DB42-F89E-4ABC-ABB0-452B2772E956",
        "metaInfo": {
          "callbackUrl": null,
          "clientValidationState": {
            "errorMessage": "Block: 'New newsletter signup', Error: Form is required",
            "valid": false
          },
          "condition": null,
          "connectionId": null,
          "eventName": "onNewSubmission",
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Tally signup",
          "scope": "SINGLE_APP",
          "serviceId": "tally",
          "slaConditions": [],
          "staticData": {},
          "storeResult": true,
          "subtype": "REALTIME",
          "type": "CUSTOM"
        },
        "name": "New newsletter signup",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 1280,
            "y": 669
          }
        },
        "flowElementId": "7B26DBEA-708D-4039-9111-73D207CC3905",
        "groupId": null,
        "id": "1BDAA187-CEB9-4F12-B035-D069E825724B",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "04db199a-701b-41f3-8669-cfc95ad2a2f7",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Person",
                      "subPathSegments": [
                        {
                          "key": "kind",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "556F595F-514C-494B-B317-303A74DA6319"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "signup"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "04db199a-701b-41f3-8669-cfc95ad2a2f7"
            ]
          },
          "elseComponent": {
            "componentId": "35DB967D-AC24-4A0F-8BB6-F2BD3AF3AFAF",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Is signup",
          "storeResult": false,
          "thenComponent": {
            "componentId": "DEB04AF7-EE11-45AA-A748-2DBACE4719A9",
            "componentType": "ELEMENT"
          }
        },
        "name": "Newsletter signup?",
        "nextElementIds": [
          "DEB04AF7-EE11-45AA-A748-2DBACE4719A9",
          "35DB967D-AC24-4A0F-8BB6-F2BD3AF3AFAF"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Records an action a user performed, with its properties, for segments and journeys to act on (POST /api/public/apps/track). Uses the Write Key.",
          "elementId": "EXTENSION:::SHARED:::default:::dittofeed:::trackEvent",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Record the order or booking Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::dittofeed:::trackEvent",
          "legacyElementId": null,
          "methodName": "trackEvent",
          "position": {
            "x": 883,
            "y": 790
          }
        },
        "flowElementId": "80E0547A-A444-4390-B6A3-08C6D8FF2D39",
        "groupId": null,
        "id": "35DB967D-AC24-4A0F-8BB6-F2BD3AF3AFAF",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "userId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Person",
                    "subPathSegments": [
                      {
                        "key": "email",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "556F595F-514C-494B-B317-303A74DA6319"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "anonymousId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "event",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Person",
                    "subPathSegments": [
                      {
                        "key": "event",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "556F595F-514C-494B-B317-303A74DA6319"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "properties",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Person",
                    "subPathSegments": [
                      {
                        "key": "properties",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "556F595F-514C-494B-B317-303A74DA6319"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "timestamp",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Person",
                    "subPathSegments": [
                      {
                        "key": "timestamp",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "556F595F-514C-494B-B317-303A74DA6319"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "context",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "messageId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "trackEvent",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Recorded event",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "dittofeed",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Record the order or booking",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      }
    ],
    "firstElementId": "15A5B093-B492-4C1F-892A-7F9D694CBAB3",
    "groups": [
      {
        "clientMetadata": {
          "elementId": "triggers-group",
          "isFirstElement": true,
          "blockDefinitionId": "triggers-group",
          "viewport": {
            "x": 0,
            "y": 0,
            "zoom": 0.8
          },
          "position": {
            "x": 110,
            "y": 499
          }
        },
        "flowElementId": "DA7D931C-2E1E-409C-B9D8-107A5CD30FF4",
        "groupId": null,
        "id": "15A5B093-B492-4C1F-892A-7F9D694CBAB3",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": "Block: 'New order, booking or signup', Error: Children have error",
            "valid": false
          },
          "occurWithin": null,
          "occurrenceTimeUnit": null,
          "onFailElemId": null,
          "resultAlias": "Source event",
          "storeResult": true,
          "transitionMode": "ONE_OCCUR"
        },
        "name": "New order, booking or signup",
        "nextElementIds": [
          "556F595F-514C-494B-B317-303A74DA6319"
        ],
        "nextGroupIds": [],
        "type": "TRIGGERS"
      }
    ],
    "id": "AB95D928-15E3-48C5-84BC-802A0F40315C",
    "metaInfo": {
      "clientValidationState": {
        "errorMessage": "Please fix problems before start. Blocks with issues have red badge in the top-right corner of a block, hover it to see what needs to be done.",
        "valid": false
      },
      "errorMessage": "Please fix problems before start. Blocks with issues have red badge in the top-right corner of a block, hover it to see what needs to be done.",
      "executionStaticData": [
        {
          "description": "ID of the Dittofeed subscription group that newsletter signups are subscribed to. Copy it from Subscription Groups in your Dittofeed dashboard.",
          "error": null,
          "name": "Newsletter subscription group",
          "type": "STRING",
          "value": ""
        }
      ],
      "initialData": null,
      "initialDataDefaultValues": {},
      "ownerFlowVersionId": null,
      "schedule": null,
      "sharedMemory": {
        "anchor": {
          "missingAnchorPolicy": null,
          "path": null,
          "type": "FLOW_MEMORY"
        },
        "expirationInSec": null
      },
      "wasLive": false
    }
  },
  "slaCalendars": [],
  "slaGoals": [],
  "subFlows": [],
  "exportDate": "2026-12-02T01:42:46.714Z"
}
