{
  "name": "Auto-respond to Gmail enquiries using GPT-4o, Dumpling AI & LangChain agent",
  "nodes": [
    {
      "id": "149c7dd9-9f5f-4c5b-8342-7c907eb52402",
      "name": "Watch Gmail for New Incoming Emails",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -2300,
        -340
      ]
    },
    {
      "id": "8a0de384-9028-47e3-86e5-b5bf6476ae0c",
      "name": "Classify Email Type with GPT-4o",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -2080,
        -340
      ]
    },
    {
      "id": "57756cd3-9009-4189-8cba-e2edba87554f",
      "name": " Only Proceed if Email is an Enquiry",
      "type": "n8n-nodes-base.filter",
      "position": [
        -1704,
        -340
      ]
    },
    {
      "id": "64e851b8-7ff1-4b4c-9828-7c764594f1ea",
      "name": "GPT-4o Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1484,
        -120
      ]
    },
    {
      "id": "2957c6ad-5e7b-4692-a96f-5c4fb5b8203c",
      "name": "Memory Buffer (Past 10 Interactions)",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -1364,
        -120
      ]
    },
    {
      "id": "9e8617f1-cd89-4de5-9d44-ded155779745",
      "name": "Dumpling AI Agent – Search for Relevant Info",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        -1244,
        -120
      ]
    },
    {
      "id": "da474406-a6e3-427d-b21b-3e7e00ebe910",
      "name": "Send Email Response via Gmail",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        -1124,
        -120
      ]
    },
    {
      "id": "03882650-9272-43c3-b1bc-15adae456881",
      "name": "LangChain Agent Handles Reply Logic",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1392,
        -340
      ]
    },
    {
      "id": "52bb3b65-0b7f-4206-87c9-1f91997a44dd",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1500,
        -560
      ],
      "parameters": {
        "width": 480,
        "height": 240,
        "content": "### ✉️ Sticky Note 2: Website Scraping, Email Generation, and Sending\n\nFor leads with complete data, Dumpling AI scrapes the content of the lead’s company website. This content, combined with scraped "
      }
    },
    {
      "id": "3a6df2e9-1d1a-4cab-889c-c323f876b98f",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2320,
        -540
      ],
      "parameters": {
        "width": 540,
        "height": 220,
        "content": "### Sticky Note 1: Apollo Link Sourcing & Contact Scraping\n\nThis section begins the workflow manually. The Apollo lead URLs are pulled from a Google Sheet. Each link is passed to Apify which scrapes k"
      }
    }
  ],
  "connections": {
    "GPT-4o Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "LangChain Agent Handles Reply Logic",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Send Email Response via Gmail": {
      "ai_tool": [
        [
          {
            "node": "LangChain Agent Handles Reply Logic",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Classify Email Type with GPT-4o": {
      "main": [
        [
          {
            "node": " Only Proceed if Email is an Enquiry",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "LangChain Agent Handles Reply Logic": {
      "main": [
        []
      ]
    },
    "Watch Gmail for New Incoming Emails": {
      "main": [
        [
          {
            "node": "Classify Email Type with GPT-4o",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    " Only Proceed if Email is an Enquiry": {
      "main": [
        [
          {
            "node": "LangChain Agent Handles Reply Logic",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Memory Buffer (Past 10 Interactions)": {
      "ai_memory": [
        [
          {
            "node": "LangChain Agent Handles Reply Logic",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Dumpling AI Agent – Search for Relevant Info": {
      "ai_tool": [
        [
          {
            "node": "LangChain Agent Handles Reply Logic",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}