{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "A1EC09E4-A2A0-450C-9A3A-D2457C5BB228",
    "name": "subscriber.dev: demo bookings tag the subscriber"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": -70,
        "y": -270,
        "zoom": 1
      },
      "autoSave": false,
      "descriptions": {
        "flow": "When someone books a demo in Calendly, starts the demo follow-up workflow in subscriber.dev for them with the meeting details, then tags the subscriber demo-booked. When a demo is canceled, removes the tag, so broadcasts can include or leave out people in a sales conversation.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "When someone books a demo in Calendly, starts the demo follow-up workflow in subscriber.dev for them with the meeting details, then tags the subscriber demo-booked. When a demo is canceled, removes the tag, so broadcasts can include or leave out people in a sales conversation.",
    "elements": [
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read the booking Result"
          },
          "position": {
            "x": 449,
            "y": 449
          }
        },
        "flowElementId": "871EF041-65D3-4572-AA45-E39288732881",
        "groupId": null,
        "id": "6FFBA943-FB79-46BA-9600-2E1845A834AE",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "data",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Calendly event",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "49ED4F34-6062-4694-AA16-C92BA002B42D"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "source",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Calendly event",
                    "subPathSegments": [
                      {
                        "key": "source",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "49ED4F34-6062-4694-AA16-C92BA002B42D"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const d = data || {};\nconst clean = v => String(v || '').trim();\nconst ev = d.scheduled_event || {};\nconst host = (ev.event_memberships || [])[0] || {};\nconst canceled = clean(source) === 'Demo canceled' || d.status === 'canceled' || !!d.cancellation;\nconst email = clean(d.email).toLowerCase();\nconst name = clean(d.name);\nconst firstName = clean(d.first_name) || name.split(' ')[0] || '';\nconst lastName = clean(d.last_name) || name.split(' ').slice(1).join(' ');\nconst timezone = d.timezone || 'UTC';\nlet startTimeLocal = ev.start_time || '';\ntry {\n  if (ev.start_time) {\n    startTimeLocal = new Intl.DateTimeFormat('en-US', { dateStyle: 'full', timeStyle: 'short', timeZone: timezone }).format(new Date(ev.start_time));\n  }\n} catch (e) {}\nreturn {\n  canceled,\n  email,\n  name,\n  firstName,\n  lastName,\n  payload: {\n    meeting: ev.name || '',\n    startTime: ev.start_time || '',\n    endTime: ev.end_time || '',\n    startTimeLocal,\n    timezone,\n    host: host.user_name || '',\n    hostEmail: host.user_email || '',\n    joinUrl: (ev.location && ev.location.join_url) || '',\n    rescheduleUrl: d.reschedule_url || '',\n    cancelUrl: d.cancel_url || '',\n  },\n};"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Booking",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Read the booking",
        "nextElementIds": [
          "BCA6784E-F43E-4D8F-AE64-CD2C70AA89BA"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 783,
            "y": 449
          }
        },
        "flowElementId": "F6157B07-4DF3-4269-B415-121939AB16AB",
        "groupId": null,
        "id": "BCA6784E-F43E-4D8F-AE64-CD2C70AA89BA",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "4068245a-cb53-4bd4-b206-5705050f9e5b",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Booking",
                      "subPathSegments": [
                        {
                          "key": "canceled",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "6FFBA943-FB79-46BA-9600-2E1845A834AE"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "4068245a-cb53-4bd4-b206-5705050f9e5b"
            ]
          },
          "elseComponent": {
            "componentId": "0F1F6EB5-9E23-41FE-BC19-6510634B4106",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Canceled",
          "storeResult": false,
          "thenComponent": {
            "componentId": "6AEAC858-861E-4268-8B91-D60CBA6AF20C",
            "componentType": "ELEMENT"
          }
        },
        "name": "Canceled?",
        "nextElementIds": [
          "6AEAC858-861E-4268-8B91-D60CBA6AF20C",
          "0F1F6EB5-9E23-41FE-BC19-6510634B4106"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Lists subscribers, one page at a time, optionally narrowed to an exact email or external ID, a search over names, email, phone and external ID, or their opt-in.",
          "elementId": "EXTENSION:::SHARED:::default:::subscriber-dev:::findSubscribers",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Find the subscriber who canceled Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::subscriber-dev:::findSubscribers",
          "legacyElementId": null,
          "methodName": "findSubscribers",
          "position": {
            "x": 1116,
            "y": 440
          }
        },
        "flowElementId": "657AEA65-1FC3-4FAA-AAB8-93F89EEE54E3",
        "groupId": null,
        "id": "6AEAC858-861E-4268-8B91-D60CBA6AF20C",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "email",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Booking",
                    "subPathSegments": [
                      {
                        "key": "email",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "6FFBA943-FB79-46BA-9600-2E1845A834AE"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "externalId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "search",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "emailOptIn",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "limit",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 1
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "offset",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 0
                  }
                ],
                "mode": "BASIC",
                "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": "findSubscribers",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Canceled subscriber",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "subscriber-dev",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Find the subscriber who canceled",
        "nextElementIds": [
          "05A96AA0-2C1F-44C3-A702-47D4BCA887BD"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Removes a tag from a subscriber.",
          "elementId": "EXTENSION:::SHARED:::default:::subscriber-dev:::removeTag",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Remove the demo-booked tag Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::subscriber-dev:::removeTag",
          "legacyElementId": null,
          "methodName": "removeTag",
          "position": {
            "x": 749,
            "y": 610
          }
        },
        "flowElementId": "17374FCF-296A-4110-8D4F-498713A11FB8",
        "groupId": null,
        "id": "FC5C9826-5647-419C-8925-435BDEAC8219",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "subscriberId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Canceled subscriber",
                    "subPathSegments": [
                      {
                        "key": "subscribers",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "publicId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "6AEAC858-861E-4268-8B91-D60CBA6AF20C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "tag",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Demo tag",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Demo tag"
                  }
                ],
                "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": "removeTag",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Tag removed",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "subscriber-dev",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Remove the demo-booked tag",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Starts a workflow for one subscriber, matched by subscriber ID, then external ID, then email. If nobody matches and an email is given, the subscriber is created first; an existing subscriber is not changed. If the workflow is paused, the answer is triggered false with the reason, and nothing is sent.",
          "elementId": "EXTENSION:::SHARED:::default:::subscriber-dev:::triggerWorkflow",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Start the demo follow-up series Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::subscriber-dev:::triggerWorkflow",
          "legacyElementId": null,
          "methodName": "triggerWorkflow",
          "position": {
            "x": 1123,
            "y": 310
          }
        },
        "flowElementId": "F1F98EDE-E13D-4837-8BAF-A0819F906476",
        "groupId": null,
        "id": "0F1F6EB5-9E23-41FE-BC19-6510634B4106",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "workflowKey",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Demo follow-up workflow",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Demo follow-up workflow"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "subscriberEmail",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Booking",
                    "subPathSegments": [
                      {
                        "key": "email",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "6FFBA943-FB79-46BA-9600-2E1845A834AE"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "subscriberExternalId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "subscriberPublicId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "subscriberFirstName",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Booking",
                    "subPathSegments": [
                      {
                        "key": "firstName",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "6FFBA943-FB79-46BA-9600-2E1845A834AE"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "subscriberLastName",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Booking",
                    "subPathSegments": [
                      {
                        "key": "lastName",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "6FFBA943-FB79-46BA-9600-2E1845A834AE"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "subscriberName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "payload",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Booking",
                    "subPathSegments": [
                      {
                        "key": "payload",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "6FFBA943-FB79-46BA-9600-2E1845A834AE"
                  }
                ],
                "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": "triggerWorkflow",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Follow-up run",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "subscriber-dev",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Start the demo follow-up series",
        "nextElementIds": [
          "F4EC7E72-BAE5-4ED7-90A8-56789CE461E3"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Lists subscribers, one page at a time, optionally narrowed to an exact email or external ID, a search over names, email, phone and external ID, or their opt-in.",
          "elementId": "EXTENSION:::SHARED:::default:::subscriber-dev:::findSubscribers",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Find the subscriber Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::subscriber-dev:::findSubscribers",
          "legacyElementId": null,
          "methodName": "findSubscribers",
          "position": {
            "x": 1161,
            "y": 740
          }
        },
        "flowElementId": "CF28BD9F-6908-4DAF-A25C-9AB2B0C89835",
        "groupId": null,
        "id": "F4EC7E72-BAE5-4ED7-90A8-56789CE461E3",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "email",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Booking",
                    "subPathSegments": [
                      {
                        "key": "email",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "6FFBA943-FB79-46BA-9600-2E1845A834AE"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "externalId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "search",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "emailOptIn",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "limit",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 1
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "offset",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 0
                  }
                ],
                "mode": "BASIC",
                "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": "findSubscribers",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Subscriber lookup",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "subscriber-dev",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Find the subscriber",
        "nextElementIds": [
          "8A56991F-606E-488E-80F1-E6B715F6580A"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "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": "E7F9E41B-02AB-487C-A394-C8F6CCEDF863",
        "groupId": "49ED4F34-6062-4694-AA16-C92BA002B42D",
        "id": "3C92F370-A7AE-4F49-884F-777482F3C28F",
        "metaInfo": {
          "callbackUrl": null,
          "clientValidationState": {
            "errorMessage": "Block: 'Demo booked', 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": "Demo booked",
          "scope": "SINGLE_APP",
          "serviceId": "calendly",
          "slaConditions": [],
          "staticData": {},
          "storeResult": true,
          "subtype": "REALTIME",
          "type": "CUSTOM"
        },
        "name": "Demo booked",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 1161,
            "y": 619
          }
        },
        "flowElementId": "FCF82F0C-DEEA-443E-B8BF-ECAC37AC8A77",
        "groupId": null,
        "id": "05A96AA0-2C1F-44C3-A702-47D4BCA887BD",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "053b5810-745a-4240-ae64-65cedaff5dbf",
                "nestedOperation": null,
                "operation": "arrayIsNotEmpty",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Canceled subscriber",
                      "subPathSegments": [
                        {
                          "key": "subscribers",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "6AEAC858-861E-4268-8B91-D60CBA6AF20C"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "ARRAY",
                "values": []
              }
            ],
            "grouping": [
              "053b5810-745a-4240-ae64-65cedaff5dbf"
            ]
          },
          "elseComponent": null,
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Subscriber found",
          "storeResult": false,
          "thenComponent": {
            "componentId": "FC5C9826-5647-419C-8925-435BDEAC8219",
            "componentType": "ELEMENT"
          }
        },
        "name": "Subscriber found?",
        "nextElementIds": [
          "FC5C9826-5647-419C-8925-435BDEAC8219"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Adds a tag to a subscriber. Adding a tag the subscriber already has changes nothing.",
          "elementId": "EXTENSION:::SHARED:::default:::subscriber-dev:::addTag",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Tag them demo-booked Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::subscriber-dev:::addTag",
          "legacyElementId": null,
          "methodName": "addTag",
          "position": {
            "x": 770,
            "y": 740
          }
        },
        "flowElementId": "739D4C7B-0967-4F84-A6D2-8E2C9F6D8CA8",
        "groupId": null,
        "id": "8A56991F-606E-488E-80F1-E6B715F6580A",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "subscriberId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Subscriber lookup",
                    "subPathSegments": [
                      {
                        "key": "subscribers",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "publicId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F4EC7E72-BAE5-4ED7-90A8-56789CE461E3"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "tag",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Demo tag",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Demo tag"
                  }
                ],
                "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": "addTag",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Tag added",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "subscriber-dev",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Tag them demo-booked",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Triggers when someone cancels their scheduled meeting, enabling AI agents to automatically send acknowledgment emails, update CRM records, trigger reschedule workflows, or launch retention campaigns. Perfect for maintaining customer relationships and reducing churn from canceled meetings.",
          "elementId": "EXTENSION:::SHARED:::default:::calendly:::onCancelInvitee",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-trigger",
          "newElementId": "EXTENSION:::SHARED:::default:::calendly:::onCancelInvitee",
          "legacyElementId": "JS###v1###CalendlyService###onCancelInvitee",
          "methodName": "onCancelInvitee",
          "position": {
            "x": 110,
            "y": 220
          }
        },
        "flowElementId": "4267D5D2-ACF6-4A88-82C3-C52738E1C01C",
        "groupId": "49ED4F34-6062-4694-AA16-C92BA002B42D",
        "id": "105695C2-2660-4DC0-997B-339C6B322237",
        "metaInfo": {
          "callbackUrl": null,
          "clientValidationState": {
            "errorMessage": "Block: 'Demo canceled', Error: OAuth Connection is required",
            "valid": false
          },
          "condition": null,
          "connectionId": null,
          "eventName": "onCancelInvitee",
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Demo canceled",
          "scope": "SINGLE_APP",
          "serviceId": "calendly",
          "slaConditions": [],
          "staticData": {},
          "storeResult": true,
          "subtype": "REALTIME",
          "type": "CUSTOM"
        },
        "name": "Demo canceled",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      }
    ],
    "firstElementId": "49ED4F34-6062-4694-AA16-C92BA002B42D",
    "groups": [
      {
        "clientMetadata": {
          "elementId": "triggers-group",
          "isFirstElement": true,
          "blockDefinitionId": "triggers-group",
          "viewport": {
            "x": 0,
            "y": 0,
            "zoom": 0.8
          },
          "position": {
            "x": 110,
            "y": 449
          }
        },
        "flowElementId": "B38671E5-B16D-4D07-B5F2-25D66D3AC71D",
        "groupId": null,
        "id": "49ED4F34-6062-4694-AA16-C92BA002B42D",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": "Block: 'Demo booked or canceled', Error: Children have error",
            "valid": false
          },
          "occurWithin": null,
          "occurrenceTimeUnit": null,
          "onFailElemId": null,
          "resultAlias": "Calendly event",
          "storeResult": true,
          "transitionMode": "ONE_OCCUR"
        },
        "name": "Demo booked or canceled",
        "nextElementIds": [
          "6FFBA943-FB79-46BA-9600-2E1845A834AE"
        ],
        "nextGroupIds": [],
        "type": "TRIGGERS"
      }
    ],
    "id": "E47853E4-5485-4200-98D6-917A583AD206",
    "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": "The key of the subscriber.dev workflow that follows up a booked demo, with the meeting details in its templates.",
          "error": null,
          "name": "Demo follow-up workflow",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "The tag put on a subscriber who booked a demo, and taken off when the demo is canceled.",
          "error": null,
          "name": "Demo tag",
          "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-02T08:37:07.196Z"
}
