AI Automation

Build an internal AI assistant that answers company process questions (Slack/Telegram + RAG)

TL;DR

Architecture: internal docs → chunk + embed → vector store; Slack/Telegram question → retrieve relevant chunks → Claude answers with source links, says “I don't know” when nothing matches. Doable with n8n or a few hundred lines of code. Permissions and doc freshness matter most.

Architecture

Sources: Confluence / Google Drive / Notion
  → chunk + embed → vector store (pgvector, Qdrant…)
Slack/Telegram question
  → retrieve top-k chunks (filtered by the asker's permissions)
  → Claude: answer ONLY from retrieved chunks + cite links
  → log unanswered questions → docs backlog

Design decisions

IssueRecommendation
PermissionsTag chunks with access metadata, filter before prompting
HallucinationsSystem prompt: not in sources → “no documentation yet”
Stale docsSync regularly, show each source's last-updated date
Sensitive dataKeep salaries and HR records out of the shared index
Measuring value👍/👎 buttons, rate of unanswerable questions

3-step rollout

  1. MVP: one department, 20–50 docs, one Slack channel.
  2. Measure for 2 weeks: repeated questions, wrong answers.
  3. Add sources and permissions, plug it into new-hire onboarding.