{
  "name": "Collect leads with a conversational GPT-4.1 chatbot and Google Sheets",
  "nodes": [
    {
      "id": "42d8a3f9-abdf-405c-83f0-d0e8d9751e5e",
      "name": "Receive User Message via Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        64,
        -16
      ]
    },
    {
      "id": "f097a9a1-0232-453c-95e8-43ee1e71d018",
      "name": "Conversational Lead Collection Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        384,
        -16
      ]
    },
    {
      "id": "92930286-b494-45fe-bddf-7a44891423a1",
      "name": "OpenAI GPT-4.1 Mini Language Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        304,
        208
      ]
    },
    {
      "id": "7513a489-35e7-4423-bae9-f0c668ec7c29",
      "name": "Session Memory with Timestamp",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        480,
        208
      ]
    },
    {
      "id": "79705264-3171-4180-8a3c-a29e95cb93e2",
      "name": "Save Lead to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        784,
        -16
      ]
    },
    {
      "id": "5d7a2403-d11b-4b85-bcc9-fa631795efe5",
      "name": "Send AI Reply to User",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1088,
        -16
      ]
    },
    {
      "id": "01b09ab4-a6ea-4e29-a9c1-cdf5ed7162ae",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -480,
        -256
      ],
      "parameters": {
        "width": 432,
        "height": 752,
        "content": "## AI Booking Chatbot with Lead Collection\n\nThis workflow creates a conversational AI chatbot that naturally\ncollects lead information (Name, Phone, Email, Message) one\nquestion at a time—without feel"
      }
    },
    {
      "id": "c565861e-a63a-4ece-8665-2b5f1810b7a7",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        64,
        -176
      ],
      "parameters": {
        "width": 544,
        "height": 208,
        "content": "## Message Receive & AI Processing\n\nReceives user messages via webhook, processes\nthem through the conversational AI agent that\nintelligently asks for missing lead information."
      }
    },
    {
      "id": "678385ae-f5da-4e9f-9abc-43664dff705a",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        -176
      ],
      "parameters": {
        "width": 320,
        "height": 208,
        "content": "##  Lead Storage\n\nOnce all 4 details are collected (Name, Phone,\nEmail, Message), the AI saves the complete\nlead data to Google Sheets using timestamp."
      }
    },
    {
      "id": "9942d548-022d-4132-ab6e-2b90e33b4299",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        976,
        -176
      ],
      "parameters": {
        "width": 288,
        "height": 208,
        "content": "## Response Delivery\n\nSends the AI's conversational reply back\nto the user via webhook, continuing the\nnatural conversation flow."
      }
    }
  ],
  "connections": {
    "Save Lead to Google Sheets": {
      "main": [
        [
          {
            "node": "Send AI Reply to User",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Session Memory with Timestamp": {
      "ai_memory": [
        [
          {
            "node": "Conversational Lead Collection Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Receive User Message via Webhook": {
      "main": [
        [
          {
            "node": "Conversational Lead Collection Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI GPT-4.1 Mini Language Model": {
      "ai_languageModel": [
        [
          {
            "node": "Conversational Lead Collection Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Conversational Lead Collection Agent": {
      "main": [
        [
          {
            "node": "Save Lead to Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}