CHATBOTS

Discord /ask command grounded in a Notion knowledge base

Powers a Discord slash command that answers members from your Notion knowledge base, citing the source pages, and replies privately so the channel stays clean.

CategoryChatbots
Enginesim
Difficultyintermediate
Triggerevent
Steps6
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • Trigger/ask slash command invoked in DiscordDiscordDiscord
  • ActionSearch Notion knowledge base for matching pagesNotionNotion
  • ActionCompose cited answer from retrieved pagesOpenAI
  • LogicBranch on whether relevant pages were found
  • OutputReply ephemerally in Discord with citationsDiscordDiscord
  • OutputFile Linear issue for missing topicLinearLinear

What it does

This turns a Discord `/ask` slash command into a knowledge-base assistant. When a member runs `/ask <question>`, the workflow searches your Notion KB, builds an answer from the matching pages, and replies as an ephemeral message visible only to the asker. Each answer links the Notion pages it used. If the KB has nothing relevant, it files a Linear issue so the gap gets documented.

When to use it

Ideal for product or developer communities that maintain their docs in Notion and want answers on demand without flooding channels. The ephemeral reply keeps conversations uncluttered, and the Linear fallback turns every unanswerable question into a tracked content task instead of a dead end.

How it works

  1. 1A member invokes the `/ask` slash command, firing the trigger with their question.
  2. 2The workflow searches the Notion knowledge base for pages matching the question.
  3. 3An LLM composes an answer using only the retrieved pages and lists the citations.
  4. 4A branch checks whether any page cleared the relevance bar.
  5. 5If yes: an ephemeral Discord reply returns the cited answer to the asker.
  6. 6If no: a Linear issue is created flagging the missing topic for the docs team.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect DiscordCommunity channels + voice + bots.
  2. 2
    Connect NotionPages, databases, comments.
  3. 3
    Connect OpenAIModels, embeddings, files.
  4. 4
    Connect LinearIssues, projects, cycles, triage.
  5. 5
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  6. 6
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  7. 7
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.