{
  "name": "Sync leads from Webflow to Pipedrive CRM using n8n",
  "nodes": [
    {
      "id": "1cb2135d-277a-4833-a962-d46881a487b0",
      "name": "Webflow Trigger",
      "type": "n8n-nodes-base.webflowTrigger",
      "position": [
        -760,
        20
      ]
    },
    {
      "id": "8a15787e-0721-4db8-9511-e7b0ee2c51da",
      "name": "Pipedrive",
      "type": "n8n-nodes-base.pipedrive",
      "position": [
        760,
        0
      ]
    },
    {
      "id": "e7fff24e-4087-4fae-9ce8-a63088fc321f",
      "name": "Person Exists?",
      "type": "n8n-nodes-base.if",
      "position": [
        1020,
        0
      ]
    },
    {
      "id": "ef577258-bf9d-4280-a027-a30258411fc0",
      "name": "Create Person",
      "type": "n8n-nodes-base.pipedrive",
      "position": [
        1420,
        100
      ]
    },
    {
      "id": "a43c7ae3-f09f-493b-b990-d11c32b25ddb",
      "name": "Add Note",
      "type": "n8n-nodes-base.pipedrive",
      "position": [
        1620,
        100
      ]
    },
    {
      "id": "16ec8feb-f526-4f4f-9546-0715015c117b",
      "name": "Create Lead",
      "type": "n8n-nodes-base.pipedrive",
      "position": [
        1840,
        100
      ]
    },
    {
      "id": "332041fb-beb1-4973-bbe4-7263ca09074d",
      "name": "Add Note 2",
      "type": "n8n-nodes-base.pipedrive",
      "position": [
        1420,
        -80
      ]
    },
    {
      "id": "70dc530a-bd77-47a0-8c36-4414b0373c3a",
      "name": "Get Organization",
      "type": "n8n-nodes-base.pipedrive",
      "position": [
        -100,
        20
      ]
    },
    {
      "id": "1f1fd890-41e5-4914-b684-1ec10f265596",
      "name": "Organization Exists?",
      "type": "n8n-nodes-base.if",
      "position": [
        160,
        20
      ]
    },
    {
      "id": "d4775c6f-ede6-48d3-8842-94583288f927",
      "name": "Add Organization",
      "type": "n8n-nodes-base.pipedrive",
      "position": [
        440,
        160
      ]
    },
    {
      "id": "514578ab-052c-4a4d-9f64-225a939e71d6",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -480,
        -120
      ],
      "parameters": {
        "width": 260,
        "height": 480,
        "content": "## 1. Extract website from email\nWe will first split the email into 2 parts to extract the website."
      }
    },
    {
      "id": "71ac9e5a-9d40-44a9-a56b-5aec18cdc900",
      "name": "Website",
      "type": "n8n-nodes-base.code",
      "position": [
        -420,
        20
      ]
    },
    {
      "id": "a113e82f-1558-49a6-9841-890313ea8dde",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -200,
        -120
      ],
      "parameters": {
        "width": 880,
        "height": 480,
        "content": "## 2. Check if the organization already exists\nUsing the extracted website, we check if the organization already exists in Pipedrive.\n- If it does not exist, we create it.\n- Otherwise, we move to the "
      }
    },
    {
      "id": "660f9518-c737-4adc-86c5-ebff6a23508e",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        700,
        -120
      ],
      "parameters": {
        "width": 1380,
        "height": 480,
        "content": "## 3. Check if the person already exists\n- If it exists, add a note to record the submission event.\n- If it does not exist, create the person, add a note to record the submission event, and create a l"
      }
    },
    {
      "id": "3a56b855-c59b-439f-9b76-652e64bbe1b8",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1340,
        -120
      ],
      "parameters": {
        "width": 400,
        "height": 1380,
        "content": "This n8n template automates the process of capturing leads from Webflow form submissions and syncing them with your Pipedrive CRM. It ensures that each submission is accurately associated with the cor"
      }
    }
  ],
  "connections": {
    "Website": {
      "main": [
        [
          {
            "node": "Get Organization",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add Note": {
      "main": [
        [
          {
            "node": "Create Lead",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pipedrive": {
      "main": [
        [
          {
            "node": "Person Exists?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Lead": {
      "main": [
        []
      ]
    },
    "Create Person": {
      "main": [
        [
          {
            "node": "Add Note",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Person Exists?": {
      "main": [
        [
          {
            "node": "Add Note 2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create Person",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webflow Trigger": {
      "main": [
        [
          {
            "node": "Website",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add Organization": {
      "main": [
        [
          {
            "node": "Pipedrive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Organization": {
      "main": [
        [
          {
            "node": "Organization Exists?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Organization Exists?": {
      "main": [
        [
          {
            "node": "Pipedrive",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Add Organization",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}