AI Slack knowledge bot

Build an AI Slack knowledge bot

A Slack knowledge bot answers questions like 'what's our refund policy?' or 'how do I get VPN access?' in a channel or DM, using your own docs instead of the open web, and links the page each answer came from. It combines our RAG docs stack (index your docs, retrieve the relevant chunks, answer from them) with a Slack app that listens for mentions and direct messages.

Uses the picker's RAG / docs Q&A stack, with advice specific to this use case.

Recommended stack

Model

Framework

  • LlamaIndex: Open source (free); LlamaParse cloud Pay-as-you-go $0/mo with 10K credits included, Pro $500/mo (400K credits) (verified 2026-11-15)
  • LangChain / LangGraph: Open source (free); LangSmith Developer $0 (5k traces/mo), Plus $39/seat/mo (verified 2026-11-15)
  • Chroma: Open source (free); Chroma Cloud Starter $0 + usage with $5 free credits, Team $250/mo (verified 2026-11-29)
  • Supabase (Postgres + pgvector): Free: 500 MB database, 2 active projects, pauses after 1 week idle; Pro from $25/mo (verified 2026-11-29)

Hosting

  • Render: Free instances spin down after 15 min idle, 750 hrs/mo; Postgres free 30 days (verified 2026-11-15)
  • Vercel: Hobby $0 (personal, non-commercial); Pro $20/mo incl. $20 credit (verified 2026-11-29)

No-code alternative

  • Dify: Open source self-host free; Cloud Sandbox free (200 message credits), Professional $590/yr per workspace (verified 2026-11-15)

Rough monthly cost

$0–30/mo (Supabase/Chroma free tier + embeddings + tokens)Approximate. Tool prices checked 2026-11-15.

Difficulty

Intermediate

Some links may be affiliate links. Disclosure

Why this stack

Step-by-step

  1. Create a Slack app from a manifest with only the scopes you need (for example app_mentions:read, chat:write and im:history), turn on Socket Mode and generate an app-level token. Install it in a test workspace first.
  2. Get a Bolt app replying 'pong' to an @mention before you add any AI.
  3. Index 20 to 50 of your most-asked-about docs. Chunk them and store each chunk with its title and URL so answers can link the source.
  4. On each mention or DM, retrieve the top chunks, answer only from them with a short system prompt, reply in a thread and include the source links. If nothing relevant comes back, say so and point to a person or channel.
  5. Run it in one channel for two weeks, collect thumbs-up/down feedback, log unanswered questions, and fill the gaps in your docs.

Common pitfalls

FAQ

How do I make a Slack bot that answers questions from our docs?

Create a Slack app with Bolt and Socket Mode, index your docs into a vector database (Chroma or Supabase pgvector) with LlamaIndex or LangChain, and on each mention retrieve the relevant chunks and have a model answer from them with links to the source pages.

How much does an AI Slack bot cost to run?

Often a few dollars a month. Chroma is free and open source, Supabase has a free plan, Railway's Hobby plan is $5 a month including $5 of usage, and a cheap model like GPT-6 Luna costs about $0.10 in / $0.50 out per 1M tokens (checked 29 Nov 2026).

Can the bot read our Slack conversations too?

It can, with the right scopes, but be careful: indexing channels can expose private discussions, Slack limits channel-history reads for apps distributed outside its Marketplace, and the Free plan only gives access to 90 days of history. Most teams start with docs and wiki pages and add selected public channels later.

Try it in the picker: Slack bot that answers questions from our docs · AI Slack bot for our company wiki · Slack bot for our HR knowledge base

Customise this stack in the picker →

Related stacks

Last updated 2026-11-29.

📬 The Loadout

One weekly AI build loadout: a project idea, the stack to build it, and the tools worth knowing. Free, unsubscribe anytime.

Subscribe to The Loadout