Templates / Build a company knowledge brain with Google Drive, Cognee, OpenAI, and Slack

Build a company knowledge brain with Google Drive, Cognee, OpenAI, and Slack

Needs changes

by Rahul Joshi ✓ · 58 views · created 2026-09-02 · Internal Wiki, AI RAG

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What 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).

  1. Get Document from Google Drive (Google Drive): download
  2. 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
  3. Format Error Message (Edit Fields (Set)): sets 4 fields: errorMessage, failedNode, workflowName…
  4. Extract PDF Text (Extract from File): extracts data from a file (pdf)
  5. Triggered via Slack? (If): checks a condition and branches into true / false
  6. Notify Error in Slack (Slack): uses Slack
  7. Add Data to Cognee (Cognee): uses Cognee
  8. Reply in Slack (Slack): uses Slack
  9. Set Chat Response (Edit Fields (Set)): sets 1 field: output

Services it uses

SlackOpenAI Chat ModelGoogle DriveCognee (community)

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.0Replace 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)

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…

Excerpt from Rahul Joshi's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.