{
  "name": "Convert Instagram comments to leads with KlickTipp & custom DMs",
  "nodes": [
    {
      "id": "17b4422b-47fc-4d28-9906-762cb3f71049",
      "name": "Listen to new Instagram comments",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -304,
        0
      ]
    },
    {
      "id": "2152d1c1-f620-4478-bb57-94c42743cbaa",
      "name": "Check first validation",
      "type": "n8n-nodes-base.switch",
      "position": [
        -96,
        0
      ]
    },
    {
      "id": "5c2c6595-0057-4921-abc8-ef1d57ebc8bf",
      "name": "Challenge to validate",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        128,
        -144
      ]
    },
    {
      "id": "07b31569-056b-4ac1-afdf-fde4bf07bf82",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        -272
      ],
      "parameters": {
        "width": 704,
        "height": 544,
        "content": "## 1. Data reception\n"
      }
    },
    {
      "id": "e843796f-20d8-4f56-9d84-7ade490a0c5f",
      "name": "DM form to user",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        624,
        0
      ]
    },
    {
      "id": "e0217fec-a444-4c64-8ab4-93b7ef90fa6d",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        320,
        -272
      ],
      "parameters": {
        "width": 480,
        "height": 544,
        "content": "## 2. Validate and send message"
      }
    },
    {
      "id": "85cc1544-caf3-4e47-b01c-9f282d0b8a8d",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        304
      ],
      "parameters": {
        "width": 1072,
        "height": 1360,
        "content": "## **Community Node Disclaimer**\nThis workflow uses **KlickTipp community nodes**, available for **self-hosted n8n instances only**.\n\n---\n\n## **Who’s it for**\nMarketing teams, agencies, and content cr"
      }
    },
    {
      "id": "7c5ffb38-938a-4067-9a88-54a8ba021905",
      "name": "Does comment contain keyword?",
      "type": "n8n-nodes-base.if",
      "position": [
        384,
        16
      ]
    },
    {
      "id": "7d26c483-faf2-4f09-af42-497aadb35ef4",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        816,
        -272
      ],
      "parameters": {
        "width": 656,
        "height": 544,
        "content": "## 3. Save data"
      }
    },
    {
      "id": "6f5b0980-f3b6-42e0-9b25-a4475656d2a2",
      "name": "Look for entry in matching table",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        864,
        0
      ]
    },
    {
      "id": "a0ff0eac-81ee-45de-9a42-a287af2b2161",
      "name": "Does entry exist?",
      "type": "n8n-nodes-base.if",
      "position": [
        1056,
        0
      ]
    },
    {
      "id": "184ab01a-d072-41cb-88d2-72147b41539a",
      "name": "Add entry to matching table",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1280,
        96
      ]
    }
  ],
  "connections": {
    "DM form to user": {
      "main": [
        [
          {
            "node": "Look for entry in matching table",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Does entry exist?": {
      "main": [
        [],
        [
          {
            "node": "Add entry to matching table",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Challenge to validate": {
      "main": [
        []
      ]
    },
    "Check first validation": {
      "main": [
        [
          {
            "node": "Challenge to validate",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Does comment contain keyword?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Does comment contain keyword?": {
      "main": [
        [
          {
            "node": "DM form to user",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Listen to new Instagram comments": {
      "main": [
        [
          {
            "node": "Check first validation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Look for entry in matching table": {
      "main": [
        [
          {
            "node": "Does entry exist?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}