{
  "name": "Auto-respond to Gmail inquiries using OpenAI, Google Sheet & AI agent",
  "nodes": [
    {
      "id": "0ff8971c-662e-4578-8a9a-340d48724648",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        560,
        320
      ]
    },
    {
      "id": "6ed348ac-1fed-4f23-93c5-f1870c0507eb",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        900,
        340
      ]
    },
    {
      "id": "379006af-b4c2-4d96-b83d-d8d84b8dcbe7",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1100,
        340
      ]
    },
    {
      "id": "328dd554-b7c3-4e03-8869-c1ec6842c469",
      "name": "Google Sheets Context Retrieval Tool",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        1080,
        420
      ]
    },
    {
      "id": "87c47073-2638-4b67-8d7c-e1a5f8026897",
      "name": "Send Reply to User",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1280,
        120
      ]
    },
    {
      "id": "6cd58ecb-43b3-411f-a431-6f87c6563341",
      "name": "Reply Generator AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        940,
        120
      ]
    },
    {
      "id": "b3a097f6-a2b8-4ae2-a4d3-501e160f00f2",
      "name": "Watch Gmail for New Incoming Emails",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        320,
        120
      ]
    },
    {
      "id": "d21045cb-2eec-4118-9549-1b82921d03b9",
      "name": "Log Inquiries + Response to Google Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1480,
        120
      ]
    },
    {
      "id": "2bf38e09-1469-448d-a793-3a64d744957d",
      "name": "Inquiry Filter",
      "type": "@n8n/n8n-nodes-langchain.textClassifier",
      "position": [
        540,
        120
      ]
    },
    {
      "id": "7b7efbb6-e0fd-487d-921c-724f4ae3a743",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 260,
        "height": 380,
        "content": "## SETUP REQUIRED\n**Author:** [Billy Christi](https://n8n.io/creators/billy/)\n\n**Copy the Google Sheet template** here:\n   👉 [Gmail Auto-Responder – Google Sheet Template](https://docs.google.com/spre"
      }
    },
    {
      "id": "46fde5e3-1d14-4c5c-afa2-326036d7b5e5",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        860,
        60
      ],
      "parameters": {
        "width": 380,
        "height": 520,
        "content": "🤖 Reads email and creates intelligent replies"
      }
    },
    {
      "id": "a05b5499-e586-44fc-a563-7e533647bc87",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1420,
        40
      ],
      "parameters": {
        "width": 260,
        "height": 280,
        "content": "✏️ Records every inquiry and response"
      }
    },
    {
      "id": "4405bfb8-5c1e-4fce-902e-680b9cfdc00e",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -40,
        440
      ],
      "parameters": {
        "width": 460,
        "height": 420,
        "content": "## 📧 Smart Gmail Auto-Responder with AI-Powered Customer Support\nWhat This Template Does:\n\n- Automatically monitors your Gmail inbox for new customer inquiries\n- Uses GPT-4 to intelligently classify e"
      }
    },
    {
      "id": "274934c0-00fc-483b-8bd4-972363c4f22b",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        440,
        440
      ],
      "parameters": {
        "width": 400,
        "height": 340,
        "content": "## 📋 WORKFLOW PROCESS OVERVIEW\nStep 1: 📧 Gmail monitors inbox for new incoming emails\nStep 2: 🤖 AI classifies email as genuine inquiry vs spam/newsletter\nStep 3: 🔍 AI analyzes customer questions and s"
      }
    },
    {
      "id": "74eea88e-e16f-496f-afb0-53c3e72e66e5",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1760,
        -200
      ],
      "parameters": {
        "width": 380,
        "height": 760,
        "content": "# 👋 Hi, I’m Billy\n![My Photo](https://i.ibb.co/Gvn63Bzc/Billy-Christi-AI-Automation.jpg)\nI help businesses build **n8n workflows** & **AI automation projects**.  \nNeed help with n8n or AI Automation p"
      }
    }
  ],
  "connections": {
    "Inquiry Filter": {
      "main": [
        [
          {
            "node": "Reply Generator AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Inquiry Filter",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Reply Generator AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Send Reply to User": {
      "main": [
        [
          {
            "node": "Log Inquiries + Response to Google Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Reply Generator AI Agent": {
      "main": [
        [
          {
            "node": "Send Reply to User",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Reply Generator AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Watch Gmail for New Incoming Emails": {
      "main": [
        [
          {
            "node": "Inquiry Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets Context Retrieval Tool": {
      "ai_tool": [
        [
          {
            "node": "Reply Generator AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}