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
- 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.
- 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.
- Knowledge Retrieval:
- The RAG tool searches Qdrant’s vector store using OpenAI embeddings to find the most relevant document chunks (top 10 matches).
- 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
- 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.
- 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
).
- 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.
- 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.
- 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.