FM
FlowMarket
AI Agents Advanced ⚡ 21 n8n Nodes

Slack AI chatbot for business team with RAG Claude 3 7 Sonnet a

Imagine having an AI chatbot on Slack that seamlessly integrates with your company’s workflow, automating repetitive requests. No more digging through emails...

🔌 Nodes & Integrations Used (12)

Agent Memory Buffer Window Embeddings Open Ai Vector Store Qdrant Tool Calculator Slack Trigger Slack HTTP Request Google Drive Document Default Data Loader Text Splitter Token Splitter Lm Chat Anthropic

📖 Implementation & Setup Guide

Imagine having an **AI chatbot on Slack** that seamlessly integrates with your company’s workflow, **automating repetitive requests**. No more digging through emails or documents to find answers about IT requests, company policies, or vacation days—just ask the bot, and it will instantly provide the right information.

With its **24/7 availability**, the chatbot ensures that team members get immediate support without waiting for a colleague to be online, making assistance faster and more efficient.

Moreover, this AI-powered bot serves as a **central hub for internal communication**, allowing everyone to quickly access procedures, documents, and company knowledge without searching manually. A simple Slack message is all it takes to get the information you need, enhancing productivity and collaboration across teams.

-----

#### **How It Works** 1. **Slack Trigger**: The workflow starts when a user mentions the AI bot in a Slack channel. The trigger captures the message and forwards it to the AI Agent. 2. **AI Agent Processing**: - The AI Agent, powered by Anthropic's Claude 3.7 Sonnet model, processes the query. - It uses **Retrieval-Augmented Generation (RAG)** to fetch relevant information from the company’s internal knowledge base stored in Qdrant (a vector database). - A **Simple Memory** buffer retains recent conversation context (last 10 messages) for continuity. 3. **Knowledge Retrieval**: - The RAG tool searches Qdrant’s vector store using OpenAI embeddings to find the most relevant document chunks (top 10 matches). 4. **Response Generation**: - The AI synthesizes the retrieved data into a concise, structured response (1-2 sentences for the answer, 2-3 supporting details, and a source citation). - The response is formatted in Slack-friendly markdown (bullet points, blockquotes) and sent back to the user.

---

#### **Set Up Steps** 1. **Prepare Qdrant Vector Database**: - Create a Qdrant collection via HTTP request (`Create collection` node). - Optionally, refresh/clear the collection (`Refresh collection` node) before adding new documents. 2. **Load Company Documents**: - Fetch files from a Google Drive folder (`Get folder` → `Download Files`). - Process documents: Split text into chunks (`Token Splitter`) and generate embeddings (`Embeddings OpenAI2`). - Store embeddings in Qdrant (`Qdrant Vector Store1`). 3. **Configure Slack Bot**: - Create a Slack bot via Slack API with required permissions - Add the bot to the desired Slack channel and note the `channelId` for the workflow. 4. **Deploy AI Components**: - Connect the AI Agent to Anthropic’s model, RAG tool, and memory buffer. - Ensure OpenAI embeddings are configured for both RAG and document processing. 5. **Test & Activate**: - Use the manual trigger (`When clicking ‘Test workflow’`) to validate document ingestion. - Activate the workflow to enable real-time Slack interactions.

----

**Need help customizing?** [Contact me](mailto:info@n3w.it) for consulting and support or add me on [Linkedin](https://www.linkedin.com/in/davideboizza/).

⚡ How to import this workflow into n8n:

  1. Click the Direct Download JSON button above to save Slack_AI_chatbot_for_business_team_with_RAG_Claude_3_7_Sonnet_a.json.
  2. Log in to your n8n Cloud or self-hosted n8n instance.
  3. In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
  4. Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
  5. Click Execute Workflow to test and switch to Active!

Related AI Agents Workflows

View All in AI Agents →