{
  "nodes": [
    {
      "id": "d5c4e571-1262-4a7d-b314-3f2ccc1550b4",
      "name": "Gmail Webhook",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -2704,
        80
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "5befd791-b40e-4718-841f-580e6daa2e8b",
      "name": "AI Intent Classification",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -2336,
        -368
      ],
      "parameters": {},
      "typeVersion": 1.4
    },
    {
      "id": "5abb9288-d712-4d7e-8db5-a35f28f9f783",
      "name": "Generate AI Response",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -1568,
        0
      ],
      "parameters": {},
      "typeVersion": 1.4
    },
    {
      "id": "c62a4ca9-5567-4b7e-b51a-c4a4fa788b2d",
      "name": "Send AI Response",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -1056,
        0
      ],
      "webhookId": "855142e2-20ca-4b47-a558-2a6c50f2f793",
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "75969f05-6f9f-4b79-8eca-53fe54ffd141",
      "name": "Natural Response Delay",
      "type": "n8n-nodes-base.wait",
      "position": [
        -1248,
        0
      ],
      "webhookId": "505a3ef8-eadb-4c8f-af64-c8068dbfe102",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "1f900d82-bbab-4afd-875f-d1ff6df201bb",
      "name": "Log Interaction",
      "type": "n8n-nodes-base.nocoDb",
      "position": [
        -848,
        0
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "d7133b31-910f-4a52-9f18-a907cb459d31",
      "name": "Update Lead Score",
      "type": "n8n-nodes-base.nocoDb",
      "position": [
        -656,
        0
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "de8bdd41-addd-48f1-b77c-17ce6f176bd2",
      "name": "Daily Trigger",
      "type": "n8n-nodes-base.cron",
      "position": [
        -304,
        -352
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "da06f4a9-9fe0-4530-a9ab-cca5d1d91594",
      "name": "Get All Active Leads",
      "type": "n8n-nodes-base.nocoDb",
      "position": [
        -288,
        -48
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "5eae4fe2-228a-4bb0-a870-2e71b350ecbb",
      "name": "Lead Found?",
      "type": "n8n-nodes-base.if",
      "position": [
        32,
        -1568
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "6ca4b99e-0b72-4e85-8f1e-1ea0812ac8cb",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2816,
        -448
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Gmail Webhook": {
      "main": [
        [
          {
            "node": "AI Intent Classification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Intent Classification": {
      "main": [
        [
          {
            "node": "Generate AI Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate AI Response": {
      "main": [
        [
          {
            "node": "Natural Response Delay",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Natural Response Delay": {
      "main": [
        [
          {
            "node": "Send AI Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send AI Response": {
      "main": [
        [
          {
            "node": "Log Interaction",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log Interaction": {
      "main": [
        [
          {
            "node": "Update Lead Score",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Daily Trigger": {
      "main": [
        [
          {
            "node": "Get All Active Leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get All Active Leads": {
      "main": [
        [
          {
            "node": "Lead Found?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}