Build Second Brain using Claude and N8N
Build an AI second brain for your company with n8n and Claude. It reads your Google Drive, Slack and database, learns from people's heads, respects who is allowed to see what, and answers in Slack or straight inside Claude. Free setup guide + workflow kit (import all workflows in one click): https://codebasics.io/resources/build-second-brain-using-claude-and-n8n Get started with n8n: https://n8n.plug.dev/mc778b This is an enterprise project, not a toy one. We build it around AtliQ Hardware, a fictional company where the CEO asks one question: "What did we agree with Croma in July?" The answer is buried across documents, chats and someone's memory. By the end, the brain answers it in seconds. I explain the architecture, then Aditya (business automation specialist at Codebasics) walks through n8n and builds the brain agent live. What you will build: ✅ Learn and Remember workflows that pull new files and Slack messages every hour, mask sensitive data, and store it as embeddings ✅ An Answer workflow with role-based access (the intern and the CEO get different answers) ✅ An Improve workflow that asks the right colleague when the brain does not know, then remembers the answer ✅ Decision logging from Claude with CEO approval in Slack ✅ A Monday brief for leadership ✅ Live web search with Tavily ✅ n8n connected to Claude through MCP, both ways ✅ A brand new workflow built just by prompting Claude Tools used: n8n, Claude (Anthropic), Docker, ngrok, Supabase (Postgres), Gemini embeddings, Groq (fallback model), Tavily, MCP, Slack, Google Drive. The full build takes 5 to 6 hours with the guide. The video covers the core concepts so nothing is a black box when something breaks. ⏱️ Chapters 0:00 What we are building 0:33 The AtliQ Hardware story 2:32 The problem: answers scattered everywhere 3:35 Demo: Slack, Monday brief and Claude 6:11 Architecture: n8n on Docker, ngrok, credentials 9:18 Learn and Remember workflows, masking sensitive data 11:02 Embeddings: search by meaning 12:41 Answer workflow and role-based access 15:03 When the brain does not know: Improve workflow 16:52 Logging decisions from Claude with approval 18:28 The complete architecture 19:11 Live demo: same question, intern vs CEO 23:17 n8n basics: credentials and importing workflows 26:28 How a node works: input, settings, output 29:42 Building the brain agent by hand 37:39 Claude model, Groq fallback and memory 42:13 Monday brief for leadership 44:17 Ask the brain from inside Claude (MCP) 46:39 Live web search with Tavily 50:03 Build a workflow just by prompting Claude 53:42 Review and fix: vibe workflowing 56:16 How the story ends 57:22 Get the guide and build it yourself Questions? Drop them in the comments. Do you want to learn technology from me? Check https://codebasics.io/?utm_source=description&utm_medium=yt&utm_campaign=description&utm_id=description for my affordable video courses. Need help building AI, data solutions? My company https://www.atliq.com/ can help. Click on the Contact button on that website. 🎥 Codebasics Hindi channel: https://www.youtube.com/channel/UCTmFBhuhMibVoSfYom1uXEg #️⃣ Social Media #️⃣ 🧑🤝🧑 Discord for Community Support: https://discord.gg/r42Kbuk 🏫 Skool Community for Support & Networking - https://resources.codebasics.io/6J8mXg 📸 Codebasics' Instagram: https://www.instagram.com/codebasicshub/ 📝 Codebasics' Linkedin : https://www.linkedin.com/company/codebasics/ 📱 Dhaval's X handle : https://x.com/dpcodebasics ------ 📝 Dhaval's Linkedin : https://www.linkedin.com/in/dhavalsays/ 📝 Hem's Linkedin: https://www.linkedin.com/in/hemvad/ 📽️ Hem's Instagram for daily tips: https://www.instagram.com/hemvadivel/ 📸 Dhaval's Personal Instagram: https://www.instagram.com/dhavalcodebasics 🔗 Patreon: https://www.patreon.com/codebasics?fan_landing=true