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 →
{
"id": "pmEt7zAsJcWZ2lje",
"meta": {
"templateCredsSetupCompleted": true
},
"name": "AI-Powered Customer Support: Email, Knowledge Base & Human Escalation Automation",
"tags": [],
"nodes": [
{
"id": "fb735100-d9b6-487d-b279-33dd655e490a",
"name": "OpenAI Classification Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-960,
944
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "11388127-5e8b-4308-8234-8ef285e968ea",
"name": "Technical Support Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-368,
512
],
"parameters": {},
"typeVersion": 2.1
},
{
"id": "386b4b91-61c0-45e4-91df-0098e4e8f653",
"name": "Billing Support Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-368,
608
],
"parameters": {},
"typeVersion": 2.1
},
{
"id": "1558b431-1314-4d14-808a-9101e5a68c5a",
"name": "Urgent Escalation Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-368,
720
],
"parameters": {},
"typeVersion": 2.1
},
{
"id": "44dac164-a34a-4658-b624-3104ec8589f1",
"name": "General Support Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-368,
816
],
"parameters": {},
"typeVersion": 2.1
},
{
"id": "576c4a87-a86b-4889-b931-882b2127f328",
"name": "Send Gmail Response",
"type": "n8n-nodes-base.gmail",
"position": [
96,
848
],
"parameters": {},
"typeVersion": 2.1
},
{
"id": "ebf0bca8-da8b-4db5-8fbb-14ad380b9c86",
"name": "Log to Support Dashboard",
"type": "n8n-nodes-base.googleSheets",
"position": [
96,
656
],
"parameters": {},
"typeVersion": 4.4
},
{
"id": "5f172d3e-afb1-40e5-a92c-74e99181cf24",
"name": "Slack Human Escalation",
"type": "n8n-nodes-base.slack",
"position": [
96,
1088
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "3e04908c-590a-4af8-998a-33a782f1dd1b",
"name": "Text Classifier",
"type": "@n8n/n8n-nodes-langchain.textClassifier",
"position": [
-1056,
656
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "10e51dbf-dbb2-4040-8dc1-5b1ac609ee93",
"name": "Gmail Trigger",
"type": "n8n-nodes-base.gmailTrigger",
"position": [
-1280,
656
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "7e96f31b-ae39-433d-9812-631a54abbab2",
"name": "Google Gemini Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
-384,
336
],
"parameters": {},
"typeVersion": 1
},
{
"id": "cec8e724-65e1-463c-ba96-c260c6c7f77d",
"name": "Pinecone Vector Store",
"type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
"position": [
-304,
224
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "31950fbc-b56d-4dc5-8e9c-257ee3ce42be",
"name": "Embeddings OpenAI",
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"position": [
-208,
432
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "5bd4a70e-dcce-4d57-bae5-641296921916",
"name": "Google Drive Trigger",
"type": "n8n-nodes-base.googleDriveTrigger",
"position": [
-864,
1472
],
"parameters": {},
"typeVersion": 1
},
{
"id": "4763b5d6-3575-4613-a151-e12181ac7e19",
"name": "Google Drive",
"type": "n8n-nodes-base.googleDrive",
"position": [
-640,
1472
],
"parameters": {},
"typeVersion": 3
},
{
"id": "45d351f9-4b82-44f7-a361-d9011ec22183",
"name": "Default Data Loader",
"type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
"position": [
-656,
1904
],
"parameters": {},
"typeVersion": 1
},
{
"id": "245e89d4-e60b-48aa-9238-d90169244bbe",
"name": "Recursive Character Text Splitter",
"type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
"position": [
-864,
1904
],
"parameters": {},
"typeVersion": 1
},
{
"id": "0585c365-66ab-4f6e-be11-cd24da8d82ab",
"name": "Pinecone Vector Store1",
"type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
"position": [
-336,
1424
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "006cb1c9-5729-44c2-b946-4a3689da5eb2",
"name": "Embeddings OpenAI1",
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"position": [
-864,
1696
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "3b7fbe6f-efa3-47ef-ab3b-b1fa780214e4",
"name": "Set Ticket Metadata",
"type": "n8n-nodes-base.set",
"position": [
-656,
208
],
"parameters": {},
"typeVersion": 2
},
{
"id": "52761f6b-2f2a-482a-a0bd-bd5fc61db6e9",
"name": "Set Ticket Metadata1",
"type": "n8n-nodes-base.set",
"position": [
-656,
608
],
"parameters": {},
"typeVersion": 2
},
{
"id": "99063eb3-55ab-43fa-aa9d-653e990abaee",
"name": "Set Ticket Metadata2",
"type": "n8n-nodes-base.set",
"position": [
-656,
1184
],
"parameters": {},
"typeVersion": 2
},
{
"id": "7a34e575-654e-4c29-97f2-a2552d322ee5",
"name": "Set Ticket Metadata3",
"type": "n8n-nodes-base.set",
"position": [
-656,
944
],
"parameters": {},
"typeVersion": 2
},
{
"id": "695f8848-a813-44b3-88e2-27f351e52c2b",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2048,
496
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "1d20c34c-2ee4-407f-afd5-e3617ed7ea8d",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
448,
64
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "f98310ed-0b43-4082-978c-ef97678cd978",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1968,
1168
],
"parameters": {
"content": ""
},
"typeVersion": 1
}
],
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "0d57afb8-3317-48d5-b39e-84ea6aa3cf76",
"connections": {
"Google Drive": {
"main": [
[
{
"node": "Pinecone Vector Store1",
"type": "main",
"index": 0
}
]
]
},
"Gmail Trigger": {
"main": [
[
{
"node": "Text Classifier",
"type": "main",
"index": 0
}
]
]
},
"Text Classifier": {
"main": [
[
{
"node": "Set Ticket Metadata",
"type": "main",
"index": 0
}
],
[
{
"node": "Set Ticket Metadata1",
"type": "main",
"index": 0
}
],
[
{
"node": "Set Ticket Metadata3",
"type": "main",
"index": 0
}
],
[
{
"node": "Set Ticket Metadata2",
"type": "main",
"index": 0
}
]
]
},
"Embeddings OpenAI": {
"ai_embedding": [
[
{
"node": "Pinecone Vector Store",
"type": "ai_embedding",
"index": 0
}
]
]
},
"Embeddings OpenAI1": {
"ai_embedding": [
[
{
"node": "Pinecone Vector Store1",
"type": "ai_embedding",
"index": 0
}
]
]
},
"Default Data Loader": {
"ai_document": [
[
{
"node": "Pinecone Vector Store1",
"type": "ai_document",
"index": 0
}
]
]
},
"Set Ticket Metadata": {
"main": [
[
{
"node": "Technical Support Agent",
"type": "main",
"index": 0
}
]
]
},
"Google Drive Trigger": {
"main": [
[
{
"node": "Google Drive",
"type": "main",
"index": 0
}
]
]
},
"Set Ticket Metadata1": {
"main": [
[
{
"node": "Billing Support Agent",
"type": "main",
"index": 0
}
]
]
},
"Set Ticket Metadata2": {
"main": [
[
{
"node": "General Support Agent",
"type": "main",
"index": 0
}
]
]
},
"Set Ticket Metadata3": {
"main": [
[
{
"node": "Urgent Escalation Agent",
"type": "main",
"index": 0
}
]
]
},
"Billing Support Agent": {
"main": [
[
{
"node": "Send Gmail Response",
"type": "main",
"index": 0
},
{
"node": "Log to Support Dashboard",
"type": "main",
"index": 0
}
]
]
},
"General Support Agent": {
"main": [
[
{
"node": "Send Gmail Response",
"type": "main",
"index": 0
},
{
"node": "Log to Support Dashboard",
"type": "main",
"index": 0
}
]
]
},
"Pinecone Vector Store": {
"ai_tool": [
[
{
"node": "Technical Support Agent",
"type": "ai_tool",
"index": 0
},
{
"node": "Billing Support Agent",
"type": "ai_tool",
"index": 0
},
{
"node": "Urgent Escalation Agent",
"type": "ai_tool",
"index": 0
},
{
"node": "General Support Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Technical Support Agent": {
"main": [
[
{
"node": "Send Gmail Response",
"type": "main",
"index": 0
},
{
"node": "Log to Support Dashboard",
"type": "main",
"index": 0
}
]
]
},
"Urgent Escalation Agent": {
"main": [
[
{
"node": "Send Gmail Response",
"type": "main",
"index": 0
},
{
"node": "Log to Support Dashboard",
"type": "main",
"index": 0
},
{
"node": "Slack Human Escalation",
"type": "main",
"index": 0
}
]
]
},
"Google Gemini Chat Model": {
"ai_languageModel": [
[
{
"node": "Technical Support Agent",
"type": "ai_languageModel",
"index": 0
},
{
"node": "Billing Support Agent",
"type": "ai_languageModel",
"index": 0
},
{
"node": "Urgent Escalation Agent",
"type": "ai_languageModel",
"index": 0
},
{
"node": "General Support Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"OpenAI Classification Model": {
"ai_languageModel": [
[
{
"node": "Text Classifier",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Recursive Character Text Splitter": {
"ai_textSplitter": [
[
{
"node": "Default Data Loader",
"type": "ai_textSplitter",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
AI-Powered Customer Support: Email, Knowledge Base & Human Escalation Automation. Uses lmChatOpenAi, agent, gmail, googleSheets. Event-driven trigger; 26 nodes.
Source: https://gist.github.com/viktorshab/879d9b6f0873349896b94a9e4a703668 — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Api Schema Extractor. Uses manualTrigger, httpRequest, splitOut, textSplitterRecursiveCharacterTextSplitter. Event-driven trigger; 88 nodes.
Wait Splitout. Uses manualTrigger, httpRequest, splitOut, textSplitterRecursiveCharacterTextSplitter. Event-driven trigger; 88 nodes.
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
Inquiry-Agent. Uses @digitalocean/n8n-nodes-digitalocean-gradient-serverless-inference, stopAndError, googleDocs, gmail. Event-driven trigger; 88 nodes.
Alfred (funcional). Uses gmailTool, googleCalendarTool, gmail, embeddingsOpenAi. Event-driven trigger; 83 nodes.