All workflows
Slack logoOpenAI logo

Answer channel questions from what was already said

Answers a question posted in Slack using only the messages that channel already contains, in a thread.

On new message in Slack2 apps5 steps

Apps it connects

Authenticate each one once and the workflow is ready to run.

What it does

Each integration step this workflow runs, in order, what it is for, and the conditions and loops that decide when it runs.

  1. 1SlackNew message triggerStarts a run whenever a message is posted in the channel you chose, ignoring any that lack the agreed ask word.
  2. 2SlackGet channel historyReads the channel's most recent messages as context, leaving out empty ones, duplicates and other questions to the bot.
  3. 3OpenAIQuery modelAsks the AI for a short search phrase, then for an answer drawn only from the quoted channel messages.
  4. If searchPhrase is not empty

    1. 4SlackFind messagesSearches further back in the same channel for older messages matching the search phrase, to widen the evidence.
  5. 5SlackSend messagePosts the answer in a thread under the question, or the closest messages found when no safe answer could be drafted.

How it works

What happens on each run, in plain English.

Whenever someone posts a message in your chosen Slack channel that addresses the bot with an agreed word, the rest of the message is treated as a question. The channel's recent messages are read, a short search phrase is worked out, older messages in the same channel that match it are found, and the AI drafts an answer from those messages alone.

The answer is posted in a thread under the question, with a line saying how many earlier messages it drew on. When nothing relevant turns up it says so instead of improvising, and when the draft quotes a figure that appears in none of the messages, the draft is withheld and the closest messages are posted instead. Mentions in the answer are defused so nobody is pinged.

You need a Slack channel to watch, a word people will use to address the bot, and a line or two describing your team. Replies written inside threads are not part of what Slack hands back, so an answer that only ever lived in a thread cannot be found.

slackopenaiquestion answeringknowledge baseevent drivenai

Start from a workflow that already works.

Add "Answer channel questions from what was already said" to your workspace, connect its apps, and make it yours. No credit card required.

Free plan available · No credit card required