AutomationFlowsAI & RAG › AI Email Auto-responder System- AI RAG Agent for Email Inbox

AI Email Auto-responder System- AI RAG Agent for Email Inbox

ByLukaszB @lukaszb on n8n.io

This workflow is built for individuals, teams, and businesses that receive regular inquiries via email and want to automate responses in a way that’s intelligent, brand-aligned, and always up to date. Its core purpose is to generate high-quality, professional email replies using…

Event trigger★★★★★ complexityAI-powered34 nodesOpenAI ChatTool Vector StorePinecone Vector StoreOpenAI EmbeddingsTool WorkflowGmail TriggerMemory Buffer WindowGmail
AI & RAG Trigger: Event Nodes: 34 Complexity: ★★★★★ AI nodes: yes Added:

This workflow corresponds to n8n.io template #4748 — we link there as the canonical source.

This workflow follows the Agent → Chainllm recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "T7GqmcUwv8GVTe8L",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "AI Email Auto-Responder System",
  "tags": [],
  "nodes": [
    {
      "id": "2db5e025-209e-48ef-bdf5-8ee1eb0fab7b",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1780,
        1200
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "c11e07ab-75e8-42ed-b6a7-c98f0039eddb",
      "name": "Answer questions with a vector store",
      "type": "@n8n/n8n-nodes-langchain.toolVectorStore",
      "position": [
        2200,
        1200
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "e615fb6f-0870-4c81-bcef-c8a9d7ae0233",
      "name": "Pinecone Vector Store1",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        2040,
        1400
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "fcf497be-9614-4701-a5a8-15e04a9040fe",
      "name": "Embeddings OpenAI",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        2040,
        1520
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "d1b4ab12-fe69-406a-8c1b-d4bab1c02e63",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2340,
        1420
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "7ab09163-cea5-45a1-8a49-235b734773e5",
      "name": "Get Brand brief",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        2080,
        1220
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "8e571e5e-aa9f-48ac-86d7-365f05d25f7f",
      "name": "Gmail Trigger",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        780,
        900
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "a63ac63b-2002-4c56-9674-2ec20e406932",
      "name": "OpenAI Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1360,
        1120
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "cdc804b7-6b4f-4669-b3c0-3da3df1681d9",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        1660,
        900
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "1ea5665e-15ea-4dda-b1d7-88669139c0d4",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1940,
        1220
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "b50d2551-8b91-41aa-9e88-03f292e41858",
      "name": "OpenAI Chat Model3",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2660,
        1200
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "c833622a-c488-41a0-80b6-fced19b5c497",
      "name": "Gmail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        3080,
        900
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "f35198e9-2479-4e58-8d0e-21c96f8e9411",
      "name": "Search Information",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1960,
        900
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "8cc3a83a-0772-4d2d-b26a-1030b6d0a55b",
      "name": "Response writer",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2620,
        900
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "7cb7bae5-0630-4406-893b-c66d6888680b",
      "name": "Set Data",
      "type": "n8n-nodes-base.set",
      "position": [
        1040,
        900
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "9cc8f67f-dac0-41b7-9277-8f6ee6d4c0d7",
      "name": "Google Drive Trigger",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        1040,
        -720
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "92c8079b-f3c7-4949-b5e9-b01c4cf9395f",
      "name": "Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1280,
        -720
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "6b851c32-609a-4970-8065-5ad6193f1637",
      "name": "Pinecone Vector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        1580,
        -720
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "5492ffd8-21df-4dd9-9f3c-b55b8ecfb258",
      "name": "Default Data Loader",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        1800,
        -500
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d27b5bd6-0136-4a5d-a524-91b3c50a9524",
      "name": "Recursive Character Text Splitter",
      "type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "position": [
        1800,
        -300
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "2453df3e-9fc6-4b23-9076-339d9fcb4281",
      "name": "Embeddings OpenAI1",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        1440,
        -500
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "d5603de9-510d-42d4-9cca-b81326933550",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        1120,
        180
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "2315b4c2-e4df-4934-9b16-40e362397da1",
      "name": "Notion",
      "type": "n8n-nodes-base.notion",
      "position": [
        1360,
        180
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "9709f9dc-f2d0-4453-9795-ed321577a301",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1580,
        180
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "1e62669f-dd75-443c-a967-f362c824f9cf",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        1800,
        180
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "a00066ed-aa5c-4d06-ac84-defe30c44358",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        680,
        -900
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "0d1f7c5d-0826-46f5-8c79-15516e97e1cc",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2320,
        -900
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "18e784de-5ae5-45d5-8c92-067406327abd",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        680,
        -60
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d0afaa13-fdec-4006-8a5e-f31b2ebe308b",
      "name": "Google Docs",
      "type": "n8n-nodes-base.googleDocs",
      "disabled": true,
      "position": [
        1360,
        0
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "7f79c5f2-6430-4b4d-b578-7d95006d10bd",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2320,
        -80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9a3c6070-aad1-4d7f-a274-d75929b54796",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        740
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "a77c19e2-02ab-445f-b748-ee471d20add5",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3420,
        720
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "00cae7df-b14b-4b9f-9252-7eaf285906a4",
      "name": "Check if Question",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1260,
        900
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "aefac4d4-9c6a-4b1c-9526-83a8909b51f7",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3360,
        -780
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "timezone": "Europe/Warsaw",
    "callerPolicy": "workflowsFromSameOwner",
    "executionOrder": "v1"
  },
  "versionId": "c77d2b14-2465-402f-8668-98d82ba09383",
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Search Information",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Notion": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Data": {
      "main": [
        [
          {
            "node": "Check if Question",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive": {
      "main": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail Trigger": {
      "main": [
        [
          {
            "node": "Set Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Search Information",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Get Brand brief": {
      "ai_tool": [
        [
          {
            "node": "Search Information",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Response writer": {
      "main": [
        [
          {
            "node": "Gmail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if Question": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store1",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Search Information",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI1": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Answer questions with a vector store",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Check if Question",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "Response writer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Search Information": {
      "main": [
        [
          {
            "node": "Response writer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Default Data Loader": {
      "ai_document": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive Trigger": {
      "main": [
        [
          {
            "node": "Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone Vector Store1": {
      "ai_vectorStore": [
        [
          {
            "node": "Answer questions with a vector store",
            "type": "ai_vectorStore",
            "index": 0
          }
        ]
      ]
    },
    "Recursive Character Text Splitter": {
      "ai_textSplitter": [
        [
          {
            "node": "Default Data Loader",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Notion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Answer questions with a vector store": {
      "ai_tool": [
        [
          {
            "node": "Search Information",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This workflow is built for individuals, teams, and businesses that receive regular inquiries via email and want to automate responses in a way that’s intelligent, brand-aligned, and always up to date. Its core purpose is to generate high-quality, professional email replies using…

Source: https://n8n.io/workflows/4748/ — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

A lightweight, self-hosted AI assistant built entirely in n8n. Multi-channel messaging (Telegram, WhatsApp, Gmail), persistent memory, task management, and autonomous work — all in a single visual wor

Telegram Trigger, OpenRouter Chat, Data Table +20
AI & RAG

Your AI workforce is ready. Are you?

Google Sheets Tool, Mcp Trigger, Google Drive +29
AI & RAG

This comprehensive workflow bundle is designed as a powerful starter kit, enabling you to build a multi-functional AI assistant on Telegram. It seamlessly integrates AI-powered voice interactions, an

Telegram Trigger, Telegram, OpenAI +19
AI & RAG

This intelligent chatbot leverages cutting-edge financial APIs and AI-driven analysis to deliver comprehensive stock research reports. Get instant access to professional-grade investment analysis that

Tool Think, Supabase Vector Store, OpenAI Embeddings +15
AI & RAG

This advanced n8n workflow automates the full lead enrichment, qualification, and personalized outreach process tailored specifically for the B2B real estate sector. Integrating top platforms like Api

N8N Nodes Fillout, OpenAI Chat, Pinecone Vector Store +11