AutomationFlowsAI & RAG › Gmail Customer Support Auto-responder with Ollama LLM and Pinecone RAG

Gmail Customer Support Auto-responder with Ollama LLM and Pinecone RAG

ByAashit Sharma @aashitsharma on n8n.io

Built by Setidure Technologies Automate intelligent, friendly replies to customer queries using AI, vector search, and Gmail — all without human effort.

Event trigger★★★★☆ complexityAI-powered11 nodesGmail TriggerText ClassifierAgentPinecone Vector StoreGmailLm OllamaOllama EmbeddingsOllama Chat
AI & RAG Trigger: Event Nodes: 11 Complexity: ★★★★☆ AI nodes: yes Added:

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

This workflow follows the Agent → Gmail 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
{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "fcc4f02d-1e29-4079-97ba-c5d79120b3bc",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "6cdc9627-679f-4450-a16f-6ae1b90b92c0",
      "name": "Gmail Trigger",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -180,
        200
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "be28ff9c-da0b-47e4-bf1b-c0dd7db660cc",
      "name": "Text Classifier",
      "type": "@n8n/n8n-nodes-langchain.textClassifier",
      "position": [
        40,
        200
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3b9d2f14-730a-48c7-a211-8fa64e9dc869",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        280,
        380
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "3145c4bd-e7a0-4da0-ba24-221de1796a77",
      "name": "Pinecone Vector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        620,
        400
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "8c68df50-e781-4605-9ef7-0cd14e33530a",
      "name": "Label",
      "type": "n8n-nodes-base.gmail",
      "position": [
        580,
        200
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "4730d2dc-97c7-49a6-a75b-1cdb458277fb",
      "name": "Send",
      "type": "n8n-nodes-base.gmail",
      "position": [
        780,
        200
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "f51d6efd-d426-470b-994a-e8d33aa4325d",
      "name": "Ollama Model",
      "type": "@n8n/n8n-nodes-langchain.lmOllama",
      "position": [
        100,
        380
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "9c1f601b-cb58-41d6-aebc-1f7be0b0269a",
      "name": "Embeddings Ollama",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOllama",
      "position": [
        640,
        560
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "1f2a81de-2c6b-4394-a32e-47a49a220f73",
      "name": "Ollama Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOllama",
      "position": [
        280,
        560
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "951189a8-9a0d-4d78-91d9-0ebfa444f0c7",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        80,
        520
      ],
      "parameters": {},
      "typeVersion": 1.3
    }
  ],
  "connections": {
    "Label": {
      "main": [
        [
          {
            "node": "Send",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Label",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Ollama Model": {
      "ai_languageModel": [
        [
          {
            "node": "Text Classifier",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Gmail Trigger": {
      "main": [
        [
          {
            "node": "Text Classifier",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Text Classifier": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Embeddings Ollama": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Ollama Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone Vector Store": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "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

Built by Setidure Technologies Automate intelligent, friendly replies to customer queries using AI, vector search, and Gmail — all without human effort.

Source: https://n8n.io/workflows/4760/ — 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

Alfred (funcional). Uses gmailTool, googleCalendarTool, gmail, embeddingsOpenAi. Event-driven trigger; 83 nodes.

Gmail Tool, Google Calendar Tool, Gmail +24
AI & RAG

This n8n template automatically classifies incoming emails (Sales, Support, Internal, Finance, Promotions) and routes them to a dedicated OpenAI LLM Agent for processing. Depending on the category, th

OpenAI, Gmail, Text Classifier +16
AI & RAG

Turn your cluttered inbox into a smart, autonomous assistant that categorizes emails, replies to leads, checks your calendar, and notifies you on Telegram—all without lifting a finger.

Gmail Trigger, Text Classifier, OpenAI Chat +11
AI & RAG

This workflow demonstrates how to use AI text classifier to classify incoming emails, and uses a multi-agent architecture to respond for each email category respectively.

Gmail Trigger, OpenAI Embeddings, Gmail +7
AI & RAG

Advanced Ai Demo Presented At Ai Developers 14 Meetup. Uses slack, stickyNote, textSplitterRecursiveCharacterTextSplitter, embeddingsOpenAi. Chat trigger; 39 nodes.

Slack, Text Splitter Recursive Character Text Splitter, OpenAI Embeddings +14