AutomationFlowsAI & RAG › Smart Customer Support System with Gpt-4o, Gmail, Slack & Drive Knowledge Base'

Smart Customer Support System with Gpt-4o, Gmail, Slack & Drive Knowledge Base'

ByDavid Olusola @dae221 on n8n.io

The AI Support Agent combines Gmail, Slack, and Google Drive into a seamless support workflow powered by GPT-4o and Pinecone.

Event trigger★★★★☆ complexityAI-powered19 nodesGmail TriggerText ClassifierOpenAI ChatHTTP RequestGoogle SheetsGmail ToolGoogle Drive TriggerGoogle Drive
AI & RAG Trigger: Event Nodes: 19 Complexity: ★★★★☆ AI nodes: yes Added:

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

This workflow follows the Agent → Documentdefaultdataloader 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": "cnquzHBto3dmFId0",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Smart Customer Support System with GPT-4o, Gmail, Slack & Drive Knowledge Base",
  "tags": [],
  "nodes": [
    {
      "id": "c48bec89-89b1-4db2-8f15-d9e75b1bb252",
      "name": "Gmail Inbox Monitor",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -100,
        120
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "41ca6a1d-7937-45c2-a664-b331eff322d1",
      "name": "Email Content Preprocessor",
      "type": "n8n-nodes-base.code",
      "position": [
        120,
        120
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "787e7482-4a23-4447-97e7-7ffb5830816c",
      "name": "Intelligent Email Classifier",
      "type": "@n8n/n8n-nodes-langchain.textClassifier",
      "position": [
        380,
        80
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "7b8c0e50-312b-4da2-9bb6-ab5278ef9cee",
      "name": "GPT-4o Language Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        428,
        340
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "a67a1722-a6ea-47a2-ad0f-f7ddb7a8fc80",
      "name": "Urgent Email Filter",
      "type": "n8n-nodes-base.if",
      "position": [
        854,
        -80
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "0bfae10c-e628-4f1b-b8e8-9d30b4038d27",
      "name": "Slack Notification Hub",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1212,
        -80
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "b921b5d3-6379-4574-9c63-ac51101f8884",
      "name": "Analytics Data Logger",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1432,
        -80
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "23a92a67-e4e7-4b32-8338-a9ae4274808d",
      "name": "Setup Instructions",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -880,
        -200
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8b923264-9bbf-4bde-b7f9-c8458b9b62ca",
      "name": "Gmail",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        920,
        420
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "e0e52200-16c3-468f-9452-609b7d94314a",
      "name": "Google Drive Trigger",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        -100,
        980
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "dd50ad61-12d2-494f-b5fa-2bb3815c52c1",
      "name": "Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        120,
        980
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "f27a3b15-ee13-4a7d-afc0-dd9819147981",
      "name": "Pinecone Vector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        356,
        980
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "01ddb988-882b-43a5-a6cc-e1529f73dbb4",
      "name": "Embeddings OpenAI",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        340,
        1200
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "f57d6db4-c76d-44b0-abdc-c00004ad7668",
      "name": "Default Data Loader",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        460,
        1202.5
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "8a480f83-b9e7-45c5-8fe2-74546561e2e4",
      "name": "Recursive Character Text Splitter",
      "type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "position": [
        548,
        1400
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "897c3ba4-274e-4d5c-9ddf-4f8b6abbdd76",
      "name": "Pinecone Vector Store1",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        920,
        540
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "b31fbce4-2722-4437-ba2d-e10adb724676",
      "name": "Embeddings OpenAI1",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        960,
        720
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "d51f4a4a-a5e1-4469-b33e-e8a53bb6733e",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        900,
        240
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "e7f6d1d0-c1f3-4598-8f88-d701feec2272",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        680,
        440
      ],
      "parameters": {},
      "typeVersion": 1.2
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "6d4bbc49-9313-4c1c-921f-ca50294c127d",
  "connections": {
    "Gmail": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive": {
      "main": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI1": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store1",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Default Data Loader": {
      "ai_document": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Gmail Inbox Monitor": {
      "main": [
        [
          {
            "node": "Email Content Preprocessor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Urgent Email Filter": {
      "main": [
        [
          {
            "node": "Slack Notification Hub",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive Trigger": {
      "main": [
        [
          {
            "node": "Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GPT-4o Language Model": {
      "ai_languageModel": [
        [
          {
            "node": "Intelligent Email Classifier",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone Vector Store1": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Slack Notification Hub": {
      "main": [
        [
          {
            "node": "Analytics Data Logger",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Email Content Preprocessor": {
      "main": [
        [
          {
            "node": "Intelligent Email Classifier",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Intelligent Email Classifier": {
      "main": [
        [
          {
            "node": "Urgent Email Filter",
            "type": "main",
            "index": 0
          },
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ],
        [],
        [],
        [],
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Recursive Character Text Splitter": {
      "ai_textSplitter": [
        [
          {
            "node": "Default Data Loader",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

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

About this workflow

The AI Support Agent combines Gmail, Slack, and Google Drive into a seamless support workflow powered by GPT-4o and Pinecone.

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

Api Schema Extractor. Uses manualTrigger, httpRequest, splitOut, textSplitterRecursiveCharacterTextSplitter. Event-driven trigger; 88 nodes.

HTTP Request, Text Splitter Recursive Character Text Splitter, Document Default Data Loader +9
AI & RAG

Wait Splitout. Uses manualTrigger, httpRequest, splitOut, textSplitterRecursiveCharacterTextSplitter. Event-driven trigger; 88 nodes.

HTTP Request, Text Splitter Recursive Character Text Splitter, Document Default Data Loader +9
AI & RAG

This workflow automates the process of discovering and extracting APIs from various services, followed by generating custom schemas. It works in three distinct stages: research, extraction, and schema

HTTP Request, Text Splitter Recursive Character Text Splitter, Document Default Data Loader +9
AI & RAG

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

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

Your AI workforce is ready. Are you?

Google Sheets Tool, Mcp Trigger, Google Drive +29