Build a company knowledge brain with Google Drive, Cognee, OpenAI, and Slack
Needs changesWhat this workflow does
This AI workflow has 16 nodes and runs manually, when you click “Execute workflow” (plus 3 other triggers). Along the way it connects Slack, OpenAI Chat Model, Google Drive and Cognee (community).
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 3 other triggers).
- Get Document from Google Drive (Google Drive): download
- Company Brain Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Search in cognee memory in Cognee); memory: Conversation Memory
- Format Error Message (Edit Fields (Set)): sets 4 fields: errorMessage, failedNode, workflowName…
- Extract PDF Text (Extract from File): extracts data from a file (pdf)
- Triggered via Slack? (If): checks a condition and branches into true / false
- Notify Error in Slack (Slack): uses Slack
- Add Data to Cognee (Cognee): uses Cognee
- Reply in Slack (Slack): uses Slack
- Set Chat Response (Edit Fields (Set)): sets 1 field: output
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 Company Brain Agent (v1.9): 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.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Company Brain Agent (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (14)
- Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Slack Trigger
n8n-nodes-base.slackTrigger - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - Error Trigger
n8n-nodes-base.errorTrigger - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Manual Trigger
n8n-nodes-base.manualTrigger - Cognee Tool
n8n-nodes-cognee.cogneeTool - Extract from File
n8n-nodes-base.extractFromFile - Google Drive
n8n-nodes-base.googleDrive - Cognee
n8n-nodes-cognee.cognee
From the author
Quick overview This workflow ingests PDFs from Google Drive into a Cognee companybrain dataset and exposes the knowledge graph through a GPT-4o-mini agent that answers questions from the n8n chat UI or Slack, replies in Slack when applicable, and posts…