Skip to main content

Slack AI chatbot for business team with RAG, Claude 3.7 Sonnet and Google Drive

Workflow preview

Workflow preview
100%
Slack AI chatbot for business team with RAG, Claude 3.7 Sonnet and Google Drive preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 ...

Best for

  • Internal Wiki automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.embeddingsopenai, @n8n/n8n-nodes-langchain.vectorstoreqdrant, @n8n/n8n-nodes-langchain.toolcalculator, n8n-nodes-base.slacktrigger, n8n-nodes-base.slack, n8n-nodes-base.manualtrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Davide.

Original n8n.io source

1.1 Workflow description

Title
Slack AI chatbot for business team with RAG, Claude 3.7 Sonnet and Google Drive
Workflow name
Slack AI chatbot for business team with RAG, Claude 3.7 Sonnet and Google Drive

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 folderDownload 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 for consulting and support or add me on Linkedin.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.8

Block 2 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 3 - Embeddings OpenAI1

Type / Role
@n8n/n8n-nodes-langchain.embeddingsOpenAi - embeddingsOpenAi
Config choices
Version 1.2

Block 4 - RAG

Type / Role
@n8n/n8n-nodes-langchain.vectorStoreQdrant - vectorStoreQdrant
Config choices
Version 1.1

Block 5 - Calculator

Type / Role
@n8n/n8n-nodes-langchain.toolCalculator - toolCalculator
Config choices
Version 1

Block 6 - Get message

Type / Role
n8n-nodes-base.slackTrigger - slackTrigger
Config choices
Version 1

Block 7 - Send message

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 8 - When clicking ‘Test workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 9 - Create collection

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 10 - Refresh collection

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 11 - Get folder

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 12 - Download Files

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 13 - Default Data Loader

Type / Role
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - documentDefaultDataLoader
Config choices
Version 1

Block 14 - Token Splitter

Type / Role
@n8n/n8n-nodes-langchain.textSplitterTokenSplitter - textSplitterTokenSplitter
Config choices
Version 1

Block 15 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Qdrant Vector Store1

Type / Role
@n8n/n8n-nodes-langchain.vectorStoreQdrant - vectorStoreQdrant
Config choices
Version 1

Block 17 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Embeddings OpenAI2

Type / Role
@n8n/n8n-nodes-langchain.embeddingsOpenAi - embeddingsOpenAi
Config choices
Version 1.1

Block 20 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Anthropic Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatAnthropic - lmChatAnthropic
Config choices
Version 1.3

3. Summary Table

Workflow Slack AI chatbot for business team with RAG, Claude 3.7 Sonnet and Google Drive
Complexity advanced
Nodes 21
Categories Internal Wiki, AI Chatbot
Author Davide
Published 03 Apr 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3414/3414.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Slack AI chatbot for business team with RAG, Claude 3.7 Sonnet and Google Drive do?

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 ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Internal Wiki, AI Chatbot use case.