{"product_id":"n8n-workflow-all-source-ai-knowledge-agent-claude-rag-drive","title":"n8n Workflow: All-Source AI Knowledge Agent (Claude, RAG, Drive)","description":"\u003ch3\u003eTurn chat into answers from everything you know—Claude + RAG + Google Drive\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow, \u003cstrong\u003eAll-Source AI Knowledge Agent (Claude, RAG, Drive)\u003c\/strong\u003e, automatically takes incoming chat messages and responds using an orchestrated \u003cstrong\u003eAnthropic Claude\u003c\/strong\u003e agent that can recall prior context (via Postgres), retrieve relevant knowledge (RAG), query structured data, and search documents in \u003cstrong\u003eGoogle Drive\u003c\/strong\u003e.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives messages:\u003c\/strong\u003e A \u003cstrong\u003e“When chat message received”\u003c\/strong\u003e trigger captures each user message and sends it to the \u003cstrong\u003eKnowledge Agent\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOrchestrates the AI response:\u003c\/strong\u003e The \u003cstrong\u003eKnowledge Agent\u003c\/strong\u003e uses the \u003cstrong\u003eAnthropic Chat Model\u003c\/strong\u003e with \u003cstrong\u003eclaude-sonnet-4-20250514\u003c\/strong\u003e to generate the final reply.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRemembers conversations:\u003c\/strong\u003e \u003cstrong\u003ePostgres Chat Memory\u003c\/strong\u003e stores and recalls conversation context across sessions.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUses tool-assisted reasoning:\u003c\/strong\u003e A \u003cstrong\u003e“Think”\u003c\/strong\u003e tool is included to force internal reasoning before actions are taken.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFinds relevant knowledge (RAG):\u003c\/strong\u003e It searches a \u003cstrong\u003eGeneral knowledge\u003c\/strong\u003e vector store using \u003cstrong\u003eOpenAI embeddings (1536-dimensional)\u003c\/strong\u003e and \u003cstrong\u003eCohere reranking\u003c\/strong\u003e to improve retrieval quality.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAnswers with data:\u003c\/strong\u003e It provides a \u003cstrong\u003estructured data\u003c\/strong\u003e Postgres tool to run queries against relational tables.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSearches your docs:\u003c\/strong\u003e It includes \u003cstrong\u003esearch about any doc in google drive\u003c\/strong\u003e, then calls the \u003cstrong\u003eRead File From GDrive\u003c\/strong\u003e sub-workflow to fetch and process files for use in responses.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOptionally pulls current info:\u003c\/strong\u003e It offers \u003cstrong\u003eMessage a model in Perplexity\u003c\/strong\u003e to access up-to-date web information.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eCustomer support agents answering questions from internal knowledge bases and policy docs stored in Google Drive.\u003c\/li\u003e\n  \u003cli\u003eOperations teams using Postgres-backed structured data (FAQs, status tables, KPIs) combined with RAG retrieval.\u003c\/li\u003e\n  \u003cli\u003eSaaS operators building an n8n knowledge copilot for research + documentation workflows.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes\/tools:\u003c\/strong\u003e set, switch, sticky note, Google Drive, Postgres tool, manual trigger.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations:\u003c\/strong\u003e Google Drive file search + \u003cem\u003eRead File From GDrive\u003c\/em\u003e, Postgres Chat Memory, vector search with OpenAI embeddings + Cohere reranking, and Anthropic Chat Model (claude-sonnet-4-20250514).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAgent orchestration:\u003c\/strong\u003e “When chat message received” → \u003cstrong\u003eKnowledge Agent\u003c\/strong\u003e with reasoning via \u003cstrong\u003eThink\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45755362869427,"sku":"N8N-6542","price":13.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/UnGmR_2wa-5znKIjyEwo4_wt5aqQnf.png?v=1785662092","url":"https:\/\/buyflowscripts.com\/products\/n8n-workflow-all-source-ai-knowledge-agent-claude-rag-drive","provider":"N8N Commerce","version":"1.0","type":"link"}