{
  "nodes": [
    {
      "id": "1",
      "name": "JotForm Trigger",
      "type": "n8n-nodes-base.jotFormTrigger",
      "position": [
        400,
        300
      ],
      "parameters": {
        "form": "YOUR_JOTFORM_ID"
      }
    },
    {
      "id": "2",
      "name": "HTTP Request (Optional Enrichment)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        600,
        300
      ],
      "parameters": {
        "url": "=https://person.clearbit.com/v2/combined/find?email={{$json.email}}",
        "options": {},
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "=Bearer $env.CLEARBIT_API_KEY"
            }
          ]
        }
      }
    },
    {
      "id": "3",
      "name": "Insert Row (n8n Data Table)",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        800,
        300
      ],
      "parameters": {
        "columns": {
          "value": {},
          "schema": [],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "dataTableId": {
          "__rl": true,
          "mode": "list",
          "value": ""
        }
      }
    },
    {
      "id": "4",
      "name": "If Node",
      "type": "n8n-nodes-base.if",
      "position": [
        1000,
        300
      ],
      "parameters": {
        "conditions": {
          "conditions": [
            {
              "leftValue": "{{$json.linkedinProfile}}",
              "operator": {
                "type": "string",
                "operation": "notEquals"
              },
              "rightValue": ""
            }
          ]
        }
      }
    },
    {
      "id": "5",
      "name": "Google Gemini AI (LinkedIn Agent)",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1200,
        300
      ],
      "parameters": {
        "options": {}
      }
    },
    {
      "id": "6",
      "name": "HeyReach Node",
      "type": "n8n-nodes-heyreach.heyReach",
      "position": [
        1400,
        300
      ],
      "parameters": {
        "operation": "addLeads",
        "accountLeadPairs": {
          "pair": [
            {
              "lead": {
                "details": {
                  "firstName": "={{$json.firstName}}",
                  "lastName": "={{$json.lastName}}"
                }
              },
              "linkedInAccountId": "YOUR_LINKEDIN_ACCOUNT_ID"
            }
          ]
        }
      }
    },
    {
      "id": "7",
      "name": "Google Gemini AI (Email Agent)",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1600,
        300
      ],
      "parameters": {
        "options": {}
      }
    },
    {
      "id": "8",
      "name": "Gmail Node",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1800,
        300
      ],
      "parameters": {
        "sendTo": "={{$json.email}}",
        "subject": "AI-gestützte Automatisierung",
        "options": {}
      }
    },
    {
      "id": "9",
      "name": "Insert Row (n8n Data Table)",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        2000,
        300
      ],
      "parameters": {
        "columns": {
          "value": {},
          "schema": [],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "dataTableId": {
          "__rl": true,
          "mode": "list",
          "value": ""
        }
      }
    }
  ],
  "connections": {
    "JotForm Trigger": {
      "main": [
        [
          {
            "node": "HTTP Request (Optional Enrichment)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request (Optional Enrichment)": {
      "main": [
        [
          {
            "node": "Insert Row (n8n Data Table)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Insert Row (n8n Data Table)": {
      "main": [
        [
          {
            "node": "If Node",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Node": {
      "main": [
        [
          {
            "node": "Google Gemini AI (LinkedIn Agent)",
            "type": "main",
            "index": 0
          },
          {
            "node": "Google Gemini AI (Email Agent)",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Google Gemini AI (LinkedIn Agent)": {
      "main": [
        [
          {
            "node": "HeyReach Node",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini AI (Email Agent)": {
      "main": [
        [
          {
            "node": "Gmail Node",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail Node": {
      "main": [
        [
          {
            "node": "Insert Row (n8n Data Table)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}