Answer Slack knowledge questions with Notion, Google Drive, Pinecone, and OpenAI
Needs changesWhat this workflow does
This AI workflow has 25 nodes and runs on a schedule (every day at 02:00) (plus 2 other triggers). Along the way it connects Notion, Google Drive, Pinecone Vector Store and Embeddings OpenAI and 2 more.
How it runs
Trigger: On a schedule (every day at 02:00) (plus 2 other triggers).
- Search Notion Pages (Notion): search
- Search Drive Files (Google Drive): work with file folder
- Strip Mention (Code): runs custom JavaScript code
- Notify Ops (Slack): uses Slack
- Combine Doc Sources (Merge): merges the data from its input branches
- Answer Question (AI Agent) (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Knowledge Base (RAG Tool))
- Normalize Doc List (Code): runs custom JavaScript code
- Reply in Thread (Slack): uses Slack
- Process Each Doc (Loop Over Items (Split in Batches)): loops over the items in batches
- Is Notion Doc? (If): checks a condition and branches into true / false
…plus 6 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Answer Question (AI Agent) (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
- Also check Slack Trigger requires a signing secret on the Slack API credential.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Answer Question (AI Agent) (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (17)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Notion
n8n-nodes-base.notion - Google Drive
n8n-nodes-base.googleDrive - Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - No Operation, do nothing
n8n-nodes-base.noOp - If
n8n-nodes-base.if - Extract from File
n8n-nodes-base.extractFromFile - Pinecone Vector Store
@n8n/n8n-nodes-langchain.vectorStorePinecone - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Slack Trigger
n8n-nodes-base.slackTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Slack
n8n-nodes-base.slack - Error Trigger
n8n-nodes-base.errorTrigger
From the author
Quick overview This workflow syncs Notion pages and Google Drive files into a Pinecone vector index nightly, then answers Slack @mentions using an OpenAI chat model with retrieval from that Pinecone knowledge base and replies with a source URL. How it works…