[
  {
    "updatedAt": "2026-09-06T06:52:52.860Z",
    "createdAt": "2026-09-06T06:52:52.860Z",
    "id": "MarsenMigrationDemo2026",
    "name": "Marsen migration lab — safe synthetic lead intake",
    "description": null,
    "active": false,
    "isArchived": false,
    "nodes": [
      {
        "id": "manual",
        "name": "Start demo",
        "type": "n8n-nodes-base.manualTrigger",
        "typeVersion": 1,
        "position": [
          0,
          0
        ],
        "parameters": {}
      },
      {
        "id": "input",
        "name": "Read synthetic event",
        "type": "n8n-nodes-base.httpRequest",
        "typeVersion": 4.2,
        "position": [
          220,
          0
        ],
        "parameters": {
          "url": "http://127.0.0.1:4398/input",
          "options": {}
        }
      },
      {
        "id": "valid",
        "name": "Valid and permitted",
        "type": "n8n-nodes-base.if",
        "typeVersion": 1,
        "position": [
          440,
          0
        ],
        "parameters": {
          "conditions": {
            "boolean": [
              {
                "value1": "={{ Boolean($json.source_event_id && $json.contact && /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test($json.contact.email || \"\") && $json.permission === true) }}",
                "operation": "equal",
                "value2": true
              }
            ]
          }
        }
      },
      {
        "id": "map",
        "name": "Map CRM fields",
        "type": "n8n-nodes-base.set",
        "typeVersion": 2,
        "position": [
          660,
          -100
        ],
        "parameters": {
          "keepOnlySet": true,
          "values": {
            "string": [
              {
                "name": "event_id",
                "value": "={{ $json.source_event_id }}"
              },
              {
                "name": "email",
                "value": "={{ $json.contact.email.trim().toLowerCase() }}"
              },
              {
                "name": "company",
                "value": "={{ $json.contact.company.trim() }}"
              },
              {
                "name": "need",
                "value": "={{ $json.request }}"
              },
              {
                "name": "source",
                "value": "website-demo"
              }
            ]
          },
          "options": {}
        }
      },
      {
        "id": "crm",
        "name": "Write to demo CRM",
        "type": "n8n-nodes-base.httpRequest",
        "typeVersion": 4.2,
        "position": [
          880,
          -100
        ],
        "retryOnFail": true,
        "maxTries": 3,
        "waitBetweenTries": 1000,
        "parameters": {
          "method": "POST",
          "url": "http://127.0.0.1:4398/crm",
          "sendHeaders": true,
          "headerParameters": {
            "parameters": [
              {
                "name": "Idempotency-Key",
                "value": "={{ $json.event_id }}"
              }
            ]
          },
          "sendBody": true,
          "specifyBody": "json",
          "jsonBody": "={{ $json }}",
          "options": {
            "timeout": 5000
          }
        }
      },
      {
        "id": "hold",
        "name": "Hold for review",
        "type": "n8n-nodes-base.set",
        "typeVersion": 2,
        "position": [
          660,
          140
        ],
        "parameters": {
          "keepOnlySet": true,
          "values": {
            "string": [
              {
                "name": "status",
                "value": "held-for-review"
              },
              {
                "name": "reason",
                "value": "Missing required fields or permission"
              }
            ]
          },
          "options": {}
        }
      }
    ],
    "connections": {
      "Start demo": {
        "main": [
          [
            {
              "node": "Read synthetic event",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "Read synthetic event": {
        "main": [
          [
            {
              "node": "Valid and permitted",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "Valid and permitted": {
        "main": [
          [
            {
              "node": "Map CRM fields",
              "type": "main",
              "index": 0
            }
          ],
          [
            {
              "node": "Hold for review",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "Map CRM fields": {
        "main": [
          [
            {
              "node": "Write to demo CRM",
              "type": "main",
              "index": 0
            }
          ]
        ]
      }
    },
    "settings": {
      "executionOrder": "v1"
    },
    "staticData": null,
    "meta": null,
    "pinData": {},
    "versionId": "6d441467-b5a6-4174-9f64-5579d80b94cd",
    "activeVersionId": null,
    "versionCounter": 3,
    "triggerCount": 0,
    "tags": [],
    "shared": [
      {
        "updatedAt": "2026-09-06T06:52:52.861Z",
        "createdAt": "2026-09-06T06:52:52.861Z",
        "role": "workflow:owner",
        "workflowId": "MarsenMigrationDemo2026",
        "projectId": "EisUmJhlcJlZvZV2",
        "project": {
          "updatedAt": "2026-09-06T06:52:32.957Z",
          "createdAt": "2026-09-06T06:52:32.957Z",
          "id": "EisUmJhlcJlZvZV2",
          "name": "Unnamed Project",
          "type": "personal",
          "icon": null,
          "description": null,
          "creatorId": "5b179fcd-a31e-492e-ae8e-949cb83508a4"
        }
      }
    ],
    "versionMetadata": {
      "name": null,
      "description": null
    }
  }
]