Slack and Knowledge: Document Q&A Bot Template
A Slack slash command asks a question; a Knowledge node answers from your company documents and posts a cited reply back to the same thread.
What It Builds
A Webhook trigger receives the slash command payload from Slack with the user's question and channel. A Knowledge node in Query mode searches a persistent collection of your company documents and drafts an answer with source citations. A Slack Direct-mode send-message step then posts that answer back into the originating thread, so the whole team sees it.
The Prompt
Paste this into Miraxa and it builds the workflow, connecting the tools for you:
Build a workflow that triggers from a Slack slash command webhook carrying a question, channel, and thread. Query my company-docs Knowledge collection to answer the question with citations, then post the cited answer back to Slack in the same thread.
Connectors Used
- Webhook trigger - receives the Slack slash command payload that starts each run.
- Knowledge - Query mode searches your persistent document collection and returns a cited answer.
- Slack - posts the answer back to the originating channel and thread.
Customize It
In the prompt, change the collection name to point at the right document set, name the slash command you registered in Slack, and tell Miraxa whether to reply in-thread or to a fixed channel. You can also ask it to add a fallback line such as "I could not find that in the docs" when the Knowledge query returns no confident match.
Tips
- Embed your documents into the Knowledge collection first, before the bot can answer; a persistent collection is reusable across many runs.
- Keep the Slack send-message step in Direct mode so it posts exactly the cited answer with no extra AI cost.
- Give your Slack connection the scopes to post in the target channels, and acknowledge the slash command quickly so Slack does not time out.