GenAiHub

Last checked 23 October 2026 — responded normally.

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

Quick overview

Live
Open / InstallLast updated October 23, 2026

Description

Quick overview This workflow ingests PDFs from Google Drive into a Cognee company_brain 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 workflow errors to a Slack alert channel. How it works Manually starts an ingestion run to download a specified PDF from Google Drive, extract its text, and add it to Cognee as the company_brain dataset. Triggers when a message is received in the n8n chat UI or when a new message appears in a configured Slack channel. Sends the user’s question to an agent powered by OpenAI (gpt-4o-mini) that uses a Cognee search tool to retrieve relevant context from the company_brain knowledge graph and maintains short-term conversation memory. Routes the agent’s answer back to Slack as a channel reply when the question originated from Slack. Returns the agent’s answer to the n8n chat UI by setting the output field when the question originated from the chat trigger. On any workflow or node failure, formats the error details and posts a structured alert to a designated Slack error channel. Setup Create and connect credentials for Cognee API (ingestion and search), Google Drive OAuth2 (PDF download), OpenAI API (gpt-4o-mini), and Slack OAuth2 (Slack trigger, replies, and error notifications). Replace YOUR_DRIVE_FILE_ID with the Google Drive file ID of the PDF you want to ingest (and update it each time you add a new document). Set YOUR_SLACK_CHANNEL_ID for the Slack message trigger and reply target, and set YOUR_SLACK_ERROR_CHANNEL_ID for error alerts. Run the manual ingestion trigger once to populate Cognee before relying on the agent for grounded answers. Activate the workflow so the n8n chat trigger and Slack trigger can start receiving questions. An n8n automation workflow template by Rahul Joshi.

Community Metrics

Views
0
Avg Rating
N/A
Ratings
0
Likes
0
Comments
—

Author

Rahul Joshi

Platform

web

Pricing model

free

Categories

  • Automation
  • AI

Tags

  • n8n
  • workflow
  • slack
  • google-drive
  • ai-agent
  • openai-chat-model
  • simple-memory

Capabilities

  • 5 nodes

Information

TypeWorkflow
Sourcen8n
AddedSeptember 4, 2026

Comments

?

Others in the same category, ranked by how often they are opened.