AI & Automation

Building a Slack Knowledge Assistant with n8n

How we built an AI-powered Slack bot that searches Google Drive, Confluence, and meeting transcripts — delivering sourced answers in seconds instead of minutes.

👤
Mick McGrath

The Problem: Information Everywhere, Answers Nowhere

Every growing org hits this wall. Meeting notes live in Google Drive. Policies live in Confluence. Project specs are in shared folders. Tribal knowledge lives in people's heads. When someone needs an answer, they're searching multiple systems, scanning through documents, and hoping they find the right version — a process that routinely eats 10-15 minutes per query.

Multiply that across a team and you're looking at a significant, invisible productivity tax.

The Solution: BitBot — A Slack-Native Knowledge Agent

Using n8n and our Surface/Core architecture, we built BitBot — a Slack-integrated AI assistant that searches your internal data sources and synthesizes answers directly in the conversation.

The Experience

Ask a question:

"Brian and Mick had a discussion called 'AI Agents Pairing Session' on March 27. What did they talk about and what were their next steps?"

Get a sourced answer:

BitBot searches Google Drive, finds the meeting transcript, and responds with a summary of discussion topics, agreed next steps, and a link to the original document for verification.

No context-switching. No manual searching. No "I think it was in that Google Doc somewhere."

BitBot processing a question in Slack — notice the 👀 emoji indicating the agent received and is working on the request
BitBot processing a question in Slack — notice the 👀 emoji indicating the agent received and is working on the request

Key Capabilities

Google Drive Search API as Lightweight RAG

This is the architectural decision that makes the system practical: instead of downloading and indexing your entire Google Drive (creating sync headaches, storage costs, and stale data), we use Google Drive's native search API as the retrieval layer. When a user asks a question, the agent formulates a search query, finds relevant documents, and extracts the content it needs.

The advantages are significant:

BitBot's response with a summary and source link to the original Google Drive document
BitBot's response with a summary and source link to the original Google Drive document

Confluence Integration

For internal policies, HR documentation, and wiki content, BitBot connects to Confluence's search API. Questions like "What's our PTO policy?" or "What are the onboarding requirements for new engineers?" get immediate, accurate answers from the source of truth — not a paraphrased version that might be out of date.

BitBot answering HR policy questions from Confluence — acting as a self-service knowledge assistant
BitBot answering HR policy questions from Confluence — acting as a self-service knowledge assistant

Thread-Aware Conversations

BitBot respects Slack's threading model, which is what makes it feel natural rather than transactional:

  1. Ask an initial question → Get a sourced answer
  2. Follow up in the same thread → BitBot has full conversation context
  3. Tag BitBot in an existing discussion → It reads the thread history first, then contributes

The Slack Surface workflow grabs the entire thread as context before calling the Core — so the agent can build on previous answers, disambiguate follow-ups, and have genuine multi-turn conversations.

Multi-turn conversation in a Slack thread — BitBot maintains context and builds on previous answers
Multi-turn conversation in a Slack thread — BitBot maintains context and builds on previous answers

Processing Feedback

When BitBot receives a message, it immediately reacts with 👀 (eyes emoji) to acknowledge receipt. A small UX detail, but critical — it eliminates the anxiety of staring at a blank thread wondering if something broke.

Architecture

Slack Message → n8n Slack Surface → BitBot Core Agent → Formatted Response
                     ↓                     ↓
               Thread history         Sub-agents:
               (context prep)         - Drive Agent (Google Drive search)
                     ↓                - Confluence Agent
               Format as              - Web Visitor
               Slack Blocks           

The Slack Surface handles channel-specific concerns:

The Core Agent is channel-agnostic:

The Sub-Agent Pattern

This is worth highlighting because it's a powerful n8n technique. The Drive Agent is a separate n8n workflow that specializes in Google Drive operations. When BitBot needs to search Drive, it delegates to this sub-agent rather than handling the API calls directly.

The benefit: the same Drive Agent can be called from email workflows, chat widgets, or any other Surface. Build the capability once, use it everywhere.

Same Core, Different Channels

The same BitBot Core that powers Slack also handles email. A Gmail Surface workflow filters incoming emails, prepares thread context, calls the same Core, and formats the response as HTML for email reply. For public-facing email, a different agent configuration limits access to public data only — handled through n8n's credential separation, not duplicate workflow logic.

The Surface/Core architecture in n8n — both Slack and Gmail surfaces feed into the same BitBot Core
The Surface/Core architecture in n8n — both Slack and Gmail surfaces feed into the same BitBot Core

Impact

Want to Build Your Knowledge Assistant?

At Bitovi, we're a certified n8n expert partner helping teams connect their internal data to intelligent agents. Whether your knowledge lives in Google Drive, Confluence, SharePoint, or Notion, we can help you build a system that makes it accessible wherever your team works.

Book a free consultation →


This post is part of our 5 Ways We Use n8n to Build Intelligent Automation series.