Skip to content
midlandDocs
Esc
navigateopen⌘Jpreview
On this page

Slack Q&A bot

A bot that answers questions in a Slack channel from the workspace, and says plainly when the workspace does not hold the answer.

Slack Q&A bot

A bot that answers questions in a Slack channel from the workspace, and says plainly when the workspace does not hold the answer.

You get a bot in a channel that answers from the team’s shared context, cites which entity it read, and says “the workspace does not hold that yet” instead of improvising, so every miss reaches the admins.

The prompt

Read the skill at https://github.com/fred-abrahamson/midland-examples/blob/main/slack-qa-bot/SKILL.md and follow it. Build the bot in this repository: a Slack app that, on a mention, asks Claude one question with the Foundation connector attached using the connection key in MIDLAND_CONNECTION_KEY, allowing only the read tools, and replies with the answer and the entity it came from. Where the workspace holds nothing, reply saying so and pass the wording to list_entities' seeking argument.

The skill

slack-qa-bot/SKILL.md covers the Slack app shape, the one request that runs the tool loop, the read-only tool allow list, the system prompt and the reply format.

Check

Ask the bot a question the workspace answers, then one it does not. The first cites an entity; the second says so, and the miss appears in the workspace’s log.

Was this page helpful?