Slack and Knowledge: Cited Answer Support Bot Template
A Slack slash command asks a question, Spojit pulls the matching passages from your docs, and the answer posts back in the thread with the sources it cited.
What It Builds
A Webhook trigger receives the Slack slash-command payload that carries the agent's question and the thread it came from. A Knowledge node in Query mode searches your documentation collection for the top matching passages, then a Slack Connector node in Direct mode posts a formatted reply back into the same thread, listing the document titles it drew the answer from. The result is a self-serve answer bot that never invents facts your docs do not contain.
The Prompt
Paste this into Miraxa and it builds the workflow, connecting the tools for you:
Build a workflow triggered by a Slack slash-command webhook that takes the user's question, queries my support-docs knowledge collection for the most relevant passages, and posts the answer back into the same Slack thread with a short "Sources:" list of the document titles it cited.
Connectors Used
- Webhook trigger - receives the Slack slash-command payload (question plus channel and thread).
- Knowledge node (Query mode) - returns the top matching passages from your docs collection.
- Slack - posts the cited answer back into the originating thread.
Customize It
Change the collection name to the docs you have embedded, adjust how many passages the query returns, or have the answer post to a fixed support channel instead of the originating thread. You can also tell the prompt to add a confidence note when no strong match is found, all without writing a second prompt.
Tips
- Embed your docs into a persistent Knowledge collection first so the Query node has something to search.
- Use Slack's slash-command verification and the Slack HMAC option on the Webhook trigger to confirm requests are genuine.
- Keep the Slack post in Direct mode (one exact tool, no AI cost) since the wording is already settled by the Knowledge step.