View as markdown

Slack triggers

slack.mention fires when someone mentions the bot in a Slack channel or thread where the bot is present. Direct messages, slash commands, and interactive components do not fire this event.

First connect a Slack workspace under Integrations (or configure a Slack app on a self-hosted Hub) and invite the bot to the channels it watches.

.remio/triggers/slack-help.yml:

name: slack-help
on:
  slack.mention:
    connection: acme-slack
    filters:
      workspace: T01234567
      channels: [C01234567]
      from_users: [U01234567]
run:
  target:
    daemon: devbox
    cwd: /workspace/project
  agent:
    provider: codex
    mode: full-access
  continuation:
    mode: conversation
  max_runtime: 30m
  idle_timeout: 5m
  prompt: |
    Answer the request using reply, then call finish_execution.

    <user-prompt>
    ${{ remio.prompt }}
    </user-prompt>
  outputs:
    slack.reply:
      max: 1
      required: true

Filters and prompt text

Slack filters use IDs, not display names or connection slugs. All filters compose with AND:

  • from_users is required and matches the sender's Slack member ID.
  • workspace matches the Slack team ID and channels limits which channels can trigger the run.
  • pattern requires a prefix after the mention (contains is its legacy alias with the same prefix behavior).

${{ remio.prompt }} contains the full message. Hub parses leading key=value tokens after the mention for inputs you declare. If you declare inputs.repo, use ${{ remio.inputs.repo }} in run.prompt to insert its value.

@Remio repo=project investigate the failed sync

Include ${{ remio.context }} in run.prompt to pass the Slack thread history and execution-scoped attachment descriptors as JSON.

Replies and continuation

Hub posts replies in the triggering Slack thread. A channel message starts a thread, and a reply inside a thread stays in that thread. Follow-up mentions in the same thread continue the same agent by default.

Slack triggers automatically grant the reply tool (slack.reply). Declare run.outputs.slack.reply when you want to cap max replies or set required: true. When Hub runs over HTTPS, replies include an Open in Remio link.

To read or post to Slack channels from a schedule, webhook, or another trigger, use Integration tools. To give the agent repository access, add a run.github block.

Find your Slack IDs

FilterWhere to copy it
workspaceOpen Slack in a browser. The team ID is the T... segment of the URL.
from_usersOpen your avatar, then Profile, then ⋮, then Copy member ID (starts with U).
channelsOpen the channel name, then About. The channel ID is at the bottom (starts with C).

remio hub init reads the Slack connection automatically and prompts only for your member ID.

Sponsors