This workflow corresponds to n8n.io template #6018 — we link there as the canonical source.
This workflow follows the Agent → Google Drive 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": "oK6nDjVJjDLtlWYt",
"name": "RAG",
"tags": [],
"nodes": [
{
"id": "0c522a5e-eab3-492b-8875-3035725641f1",
"name": "Slack Trigger",
"type": "n8n-nodes-base.slackTrigger",
"position": [
0,
0
],
"parameters": {},
"typeVersion": 1
},
{
"id": "90fcd76e-2089-4283-8632-e2a543dd5697",
"name": "AI Agent1",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
1264,
0
],
"parameters": {},
"typeVersion": 2
},
{
"id": "48964ea1-4b35-45a2-af44-1e6ef906e1b2",
"name": "Azure OpenAI Chat Model1",
"type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
"position": [
1040,
224
],
"parameters": {},
"typeVersion": 1
},
{
"id": "d164286c-cc67-4885-8587-cc7df25f6b85",
"name": "Pinecone Vector Store2",
"type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
"position": [
1168,
224
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "3346c942-a5ec-400c-9ad7-e6f5a385553e",
"name": "Embeddings Azure OpenAI2",
"type": "@n8n/n8n-nodes-langchain.embeddingsAzureOpenAi",
"position": [
1184,
432
],
"parameters": {},
"typeVersion": 1
},
{
"id": "807f938a-9684-46da-9204-0506cf7ac1a8",
"name": "Get row(s) in sheet in Google Sheets",
"type": "n8n-nodes-base.googleSheetsTool",
"position": [
1456,
224
],
"parameters": {},
"typeVersion": 4.6
},
{
"id": "2f3b98d3-d326-4454-9ce4-3fe9cd5c8c1f",
"name": "Reranker Cohere1",
"type": "@n8n/n8n-nodes-langchain.rerankerCohere",
"position": [
1312,
432
],
"parameters": {},
"typeVersion": 1
},
{
"id": "54d785d1-db28-4d21-b9e2-a23d160c633a",
"name": "Structured Output Parser1",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
1584,
224
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "cc23fd1b-5f6b-442b-9405-34fd3841bb9e",
"name": "Pinecone Vector Store5",
"type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
"position": [
1776,
0
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "6d4c94ef-6df7-4a48-83d2-e2d10fda1678",
"name": "Embeddings Azure OpenAI5",
"type": "@n8n/n8n-nodes-langchain.embeddingsAzureOpenAi",
"position": [
1808,
224
],
"parameters": {},
"typeVersion": 1
},
{
"id": "26c39fa6-ec81-47e0-ba5c-b21bec4d045e",
"name": "Reranker Cohere3",
"type": "@n8n/n8n-nodes-langchain.rerankerCohere",
"position": [
1920,
224
],
"parameters": {},
"typeVersion": 1
},
{
"id": "f2a81baa-7035-4947-a6ab-c55d567a420b",
"name": "AI Agent3",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
2160,
0
],
"parameters": {},
"typeVersion": 2
},
{
"id": "4441929d-cb5e-4ec2-bb59-6779d58e3e02",
"name": "Azure OpenAI Chat Model3",
"type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
"position": [
2176,
416
],
"parameters": {},
"typeVersion": 1
},
{
"id": "2e056c6a-8261-4159-a1d7-2a25d01c0f13",
"name": "Auto-fixing Output Parser",
"type": "@n8n/n8n-nodes-langchain.outputParserAutofixing",
"position": [
2240,
224
],
"parameters": {},
"typeVersion": 1
},
{
"id": "aab927a0-9bef-4680-92e6-5f72e08c5cc3",
"name": "Structured Output Parser2",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
2352,
416
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "1774d8b6-f0a4-4d7f-827f-ce8cf2ba356f",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
224,
0
],
"parameters": {},
"typeVersion": 2
},
{
"id": "cc8e9c3e-bc06-4dbc-a37e-99219527c9ff",
"name": "Azure OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
"position": [
256,
224
],
"parameters": {},
"typeVersion": 1
},
{
"id": "4ff1e95e-5022-4021-8afc-ae9cc8084e37",
"name": "Structured Output Parser",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
368,
224
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "ee9d3653-e25c-4688-a3fa-6196781c8e40",
"name": "Download file",
"type": "n8n-nodes-base.googleDrive",
"position": [
608,
0
],
"parameters": {},
"typeVersion": 3
},
{
"id": "b0a29268-2e3a-4b69-ad4c-785b8d3b37c4",
"name": "Extract from File",
"type": "n8n-nodes-base.extractFromFile",
"position": [
816,
0
],
"parameters": {},
"typeVersion": 1
},
{
"id": "715b6321-360c-4dcf-b8f1-1bb3de5de5bf",
"name": "Send a message",
"type": "n8n-nodes-base.slack",
"position": [
2752,
0
],
"parameters": {},
"typeVersion": 2.3
},
{
"id": "e066f9cd-8179-4a59-bf3c-ebf2ae82781c",
"name": "Edit Fields",
"type": "n8n-nodes-base.set",
"position": [
2528,
0
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "93f1bbac-6b17-4e6a-bed6-5372ca30adcf",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
64,
-208
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "adae4fb9-0d69-4a21-801d-c17e45b0be4f",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
512,
-208
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "5f4c6a5a-6397-4bec-9d10-c26924b915a5",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
1760,
-384
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "69f3f08b-6202-43dc-95c5-34c121bc8938",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
2128,
-384
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "d74e2916-3c23-4b37-a1ba-0d95cf3a8a39",
"name": "Sticky Note5",
"type": "n8n-nodes-base.stickyNote",
"position": [
2672,
-384
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "a0880474-5190-4db5-bebc-c62cc96b1fb4",
"name": "Sticky Note6",
"type": "n8n-nodes-base.stickyNote",
"position": [
1264,
-384
],
"parameters": {
"content": ""
},
"typeVersion": 1
}
],
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "fdf7f61f-95e6-42f5-8fd7-d55c38e83d20",
"connections": {
"AI Agent": {
"main": [
[
{
"node": "Download file",
"type": "main",
"index": 0
}
]
]
},
"AI Agent1": {
"main": [
[
{
"node": "Pinecone Vector Store5",
"type": "main",
"index": 0
}
]
]
},
"AI Agent3": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields": {
"main": [
[
{
"node": "Send a message",
"type": "main",
"index": 0
}
]
]
},
"Download file": {
"main": [
[
{
"node": "Extract from File",
"type": "main",
"index": 0
}
]
]
},
"Slack Trigger": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Reranker Cohere1": {
"ai_reranker": [
[
{
"node": "Pinecone Vector Store2",
"type": "ai_reranker",
"index": 0
}
]
]
},
"Reranker Cohere3": {
"ai_reranker": [
[
{
"node": "Pinecone Vector Store5",
"type": "ai_reranker",
"index": 0
}
]
]
},
"Extract from File": {
"main": [
[
{
"node": "AI Agent1",
"type": "main",
"index": 0
}
]
]
},
"Pinecone Vector Store2": {
"ai_tool": [
[
{
"node": "AI Agent1",
"type": "ai_tool",
"index": 0
}
]
]
},
"Pinecone Vector Store5": {
"main": [
[
{
"node": "AI Agent3",
"type": "main",
"index": 0
}
]
]
},
"Azure OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Azure OpenAI Chat Model1": {
"ai_languageModel": [
[
{
"node": "AI Agent1",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Azure OpenAI Chat Model3": {
"ai_languageModel": [
[
{
"node": "AI Agent3",
"type": "ai_languageModel",
"index": 0
},
{
"node": "Auto-fixing Output Parser",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Embeddings Azure OpenAI2": {
"ai_embedding": [
[
{
"node": "Pinecone Vector Store2",
"type": "ai_embedding",
"index": 0
}
]
]
},
"Embeddings Azure OpenAI5": {
"ai_embedding": [
[
{
"node": "Pinecone Vector Store5",
"type": "ai_embedding",
"index": 0
}
]
]
},
"Structured Output Parser": {
"ai_outputParser": [
[
{
"node": "AI Agent",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Auto-fixing Output Parser": {
"ai_outputParser": [
[
{
"node": "AI Agent3",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Structured Output Parser1": {
"ai_outputParser": [
[
{
"node": "AI Agent1",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Structured Output Parser2": {
"ai_outputParser": [
[
{
"node": "Auto-fixing Output Parser",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Get row(s) in sheet in Google Sheets": {
"ai_tool": [
[
{
"node": "AI Agent1",
"type": "ai_tool",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
This advanced Retrieval-Augmented Generation (RAG) automation template for n8n enables contextual, real-time recommendations using Slack messages as input. The workflow extracts referenced documents from Google Drive, performs semantic retrieval from Pinecone, and generates…
Source: https://n8n.io/workflows/6018/ — 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.
Your AI workforce is ready. Are you?
Unleash the full potential of your HighLevel CRM by adding an intelligent GPT-5 Agent that does more than just follow commands — it understands context, retrieves the right data, and executes actions
Streamline client onboarding and lay the groundwork for future Retrieval-Augmented Generation (RAG) capabilities by automatically transforming Slack messages into structured data using GPT-4o, Google
This advanced n8n automation template empowers your Slack bot to act as an intelligent assistant: when a user asks a question or requests a suggestion (by mentioning the bot), it automatically retriev
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