Build a powerful Slack AI Chatbot n8n workflow using RAG, Qdrant, Google Drive, and Anthropic Claude 3.7. Automate internal queries instantly with this high-density n8n template.
Download this n8n workflow template and start using it instantly.
HR and Operations Managers: Seeking to reduce repetitive questions about policies and procedures.
Developers and n8n specialists: Looking for advanced n8n templates integrating LangChain components (Agents, RAG, Memory).
Technical Teams: Utilizing Qdrant for vector storage and requiring a robust, customized n8n node setup for their internal AI tools.
Companies using Slack and Google Drive: Who need to leverage their existing documentation for immediate query resolution.
This robust n8n workflow solves the problem of dispersed corporate knowledge by integrating a custom AI agent directly into Slack. Leveraging the Retrieval Augmented Generation (RAG) pattern, the chatbot uses Qdrant as its vector database, populated with documents sourced from Google Drive. When an employee mentions the bot on Slack, the n8n trigger captures the query. The AI Agent, powered by Anthropic's Claude 3.7 Sonnet and equipped with Simple Memory for contextual conversations, uses the RAG tool to search and retrieve the most relevant document chunks from Qdrant. This ensures answers are accurate, grounded in company documentation, and formatted appropriately for Slack. This specific n8n workflow provides an immediate, efficient, and accurate alternative to manual document searching, significantly boosting team productivity and showcasing a powerful use case for n8n.
This comprehensive n8n workflow operates in two main phases: Document Indexing and Live Chat Interaction.
Phase 1: Document Indexing (RAG Setup)
Phase 2: Live Chat Interaction
Get message Slack n8n trigger activates when the bot is mentioned in a channel (app_mention).app_mention, chat:write, etc.).Anthropic Chat Model (Claude 3.7 Sonnet).Embeddings OpenAI n8n node (used for generating vector embeddings).Create collection, Refresh collection) with your actual QDRANTURL and COLLECTION name. Update the Get folder n8n node to point to the specific Google Drive folder ID. Run the Indexing flow once using the Manual n8n trigger to vectorize your data.RAG Qdrant n8n node with the correct COLLECTION ID. Activate the Get message Slack n8n trigger to start monitoring app mentions.This sophisticated n8n workflow template uses several key n8n node types:
Get message (Slack Trigger n8n trigger):
Function: Starts the n8n workflow upon a Slack mention, initiating the chat interaction.
Key Configuration: Trigger set to appmention.
AI Agent (LangChain Agent n8n node):
Function: The central orchestration point. It processes the query, decides whether to use RAG or Calculator tools, manages memory, and crafts the final response using the LLM. This crucial n8n node defines the chatbot's behavior.
Key Configuration: Connected to Anthropic Chat Model, Simple Memory, and both RAG/Calculator tools. The system message enforces a RAG-specific persona and source citation requirements.
RAG (Qdrant Vector Store n8n node):
Function: Acts as a specialized tool for the AI Agent to perform vector searches against the corporate knowledge base, providing Retrieval Augmented Generation capabilities to the n8n workflow.
Key Configuration: Mode is retrieve-as-tool, configured with the tool name companyinfo.
Simple Memory (Memory Buffer Window n8n node):
Function: Stores the last 10 turns of conversation, ensuring the Agent maintains conversational context across multiple Slack messages.
Key Configuration: Session Key is dynamically generated based on Slack channel and user ID.
Download Files (Google Drive n8n node):
Function: Used during indexing to fetch documents from Google Drive and convert them to text/plain for vectorization.
Qdrant Vector Store1 (Qdrant Vector Store n8n node):
Function: Used exclusively in the indexing flow (mode: insert) to upload vectorized document chunks, created using an Embeddings OpenAI n8n node, into the Qdrant database.
Send message (Slack n8n node):
Function: Sends the final, generated response from the AI Agent back to Slack, ensuring the reply is correctly placed within the original thread.
Build a context-aware Slack AI ChatBot using this specialized n8n workflow. Integrates OpenAI and LangChain memory (Simple Memory) to respond to public mentions and direct messages efficiently. Get started with n8n templates today.

Automate high-volume skip tracing with this advanced n8n workflow. Pull input data from Google Sheets, use the Zyte API to scrape TruePeopleSearch for phone numbers and emails, and update the results instantly. This n8n template includes a relative fallback mechanism.

Use this powerful n8n workflow to automatically extract SEO Titles and Meta Descriptions from all URLs listed in your sitemap. Export results directly to Google Sheets for fast auditing and analysis.

Use this powerful n8n workflow to create a custom Slack slash command for instant Japanese-English translation. It utilizes GPT-4o-mini and an n8n node structure for speed and accuracy.

Secure your Slack webhooks using this crucial n8n workflow template. It verifies the request signature via HMAC-SHA256 hashing, ensuring data authenticity and preventing malicious injection. Use this n8n node sequence for robust security.

Full-stack Web Developer based in Italy specialising in Marketing & AI-powered automations. For business enquiries, send me an email at [email protected] or add me on Linkedin.com/in/davideboizza







































