{"product_id":"n8n-google-drive-cognee-company-brain-openai-chat","title":"n8n Google Drive → Cognee Company Brain + OpenAI Chat","description":"\u003ch3\u003eAsk questions across your PDFs in minutes—using Google Drive, Cognee’s Company Brain, and an OpenAI GPT-4o-mini agent\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow ingests a PDF from \u003cstrong\u003eGoogle Drive\u003c\/strong\u003e into a Cognee \u003cstrong\u003ecompany_brain\u003c\/strong\u003e dataset and then answers questions via an \u003cstrong\u003eOpenAI (gpt-4o-mini)\u003c\/strong\u003e agent. You can chat from the \u003cstrong\u003en8n chat UI\u003c\/strong\u003e or a \u003cstrong\u003eSlack\u003c\/strong\u003e channel—and receive replies back in Slack when applicable, with workflow errors automatically posted to a Slack alert channel.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIngest PDF content on demand:\u003c\/strong\u003e Manually start an ingestion run to download the specified PDF from Google Drive, extract its text, and add it to Cognee as the \u003ccode\u003ecompany_brain\u003c\/code\u003e dataset.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAnswer questions from chat:\u003c\/strong\u003e Trigger on a message in the n8n chat UI or when a new message appears in a configured Slack channel.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSearch and respond with context:\u003c\/strong\u003e Send the user’s question to an \u003cstrong\u003eOpenAI gpt-4o-mini\u003c\/strong\u003e agent that uses a Cognee search tool to retrieve relevant context from the \u003ccode\u003ecompany_brain\u003c\/code\u003e knowledge graph, while maintaining short-term conversation memory.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRoute responses correctly:\u003c\/strong\u003e If the question originated from Slack, reply in the Slack channel; if it originated from the n8n chat trigger, set the \u003ccode\u003eoutput\u003c\/code\u003e field for the chat UI.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAlert on failures:\u003c\/strong\u003e If any node\/workflow fails, format the error details and post a structured alert to a designated Slack error channel.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eEnable teams to ask company policy, product, or research questions directly about a PDF stored in Google Drive.\u003c\/li\u003e\n  \u003cli\u003eSupport fast internal Q\u0026amp;A in Slack without manually searching documents.\u003c\/li\u003e\n  \u003cli\u003eGive SaaS operators a controlled workflow that keeps answers grounded in Cognee’s searchable knowledge graph.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eNodes\/logic: \u003ccode\u003eif\u003c\/code\u003e, \u003ccode\u003eset\u003c\/code\u003e, \u003ccode\u003eslack\u003c\/code\u003e, \u003ccode\u003en8n-nodes-cogneecognee\u003c\/code\u003e (ingestion + search), \u003ccode\u003esticky note\u003c\/code\u003e, \u003ccode\u003egoogle drive\u003c\/code\u003e\n\u003c\/li\u003e\n  \u003cli\u003eCredentials required: \u003cstrong\u003eCognee API\u003c\/strong\u003e (ingestion \u0026amp; search), \u003cstrong\u003eGoogle Drive OAuth2\u003c\/strong\u003e, \u003cstrong\u003eOpenAI API\u003c\/strong\u003e (gpt-4o-mini), and \u003cstrong\u003eSlack OAuth2\u003c\/strong\u003e (triggers, replies, error notifications).\u003c\/li\u003e\n  \u003cli\u003eConfiguration: update \u003ccode\u003eYOUR_DRIVE_FILE_ID\u003c\/code\u003e with the Google Drive PDF file ID to ingest.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45945722732723,"sku":"N8N-19082","price":31.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/q2mdm6C1ISt8L-J-eQBbg_vNLVJiVS.png?v=1788426853","url":"https:\/\/buyflowscripts.com\/products\/n8n-google-drive-cognee-company-brain-openai-chat","provider":"N8N Commerce","version":"1.0","type":"link"}