{
  "name": "Baserow Lead Database",
  "nodes": [
    {
      "parameters": {
        "path": "baserow-lead-database",
        "responseMode": "lastNode",
        "options": {}
      },
      "id": "baserow-lead-database-1",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "notes": "Leads in Baserow speichern, Status pflegen und Follow-ups auslösen."
    },
    {
      "parameters": {},
      "id": "baserow-lead-database-2",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        260,
        0
      ]
    },
    {
      "parameters": {
        "conditions": {
          "string": [
            {
              "value1": "={{ $json.status || \"ok\" }}",
              "operation": "isNotEmpty"
            }
          ]
        }
      },
      "id": "baserow-lead-database-3",
      "name": "IF",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        520,
        0
      ]
    },
    {
      "parameters": {},
      "id": "baserow-lead-database-4",
      "name": "Email Send",
      "type": "n8n-nodes-base.emailSend",
      "typeVersion": 1,
      "position": [
        780,
        0
      ]
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "IF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "IF": {
      "main": [
        [
          {
            "node": "Email Send",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1",
    "timezone": "Europe/Berlin"
  },
  "staticData": null,
  "meta": {
    "templateId": "n8nexperten-baserow-lead-database",
    "description": "Leads in Baserow speichern, Status pflegen und Follow-ups auslösen.",
    "setupSteps": [
      "Baserow Tabelle modellieren.",
      "API Token begrenzen.",
      "Upsert-Logik bauen.",
      "Follow-up Status auswerten."
    ],
    "privacyNotes": [
      "Berechtigungen in Baserow prüfen.",
      "API-Key nicht in Logs ausgeben.",
      "Aufbewahrung definieren."
    ],
    "testPayload": {
      "email": "lead@example.com",
      "status": "new",
      "source": "beratung",
      "owner": "sales"
    }
  }
}