Skip to main content

What this does

A fleet can answer when someone mentions the agentsfleet app in a subscribed Slack channel. The answer appears in the same thread. Retried Slack deliveries do not start another turn.

Before you begin

Open Connected apps in the dashboard and connect Slack to the active workspace. Invite the agentsfleet Slack app to the channel. See Connect a provider. Open the channel’s details. Copy its identifier (ID) from Channel ID in the About tab.

Steps

  1. Start a fleet or open an existing one in the workspace that owns the Slack connection.
  2. Send “Add a Slack mention trigger for channel <CHANNEL_ID>” in its chat. The fleet calls trigger_add with kind mention and that channel ID.
  3. Confirm the channel under Wakes on. A fleet subscribes to one Slack channel.
  4. Mention the app in that channel. Include the fleet’s name when more than one fleet can answer.
A named mention matches the fleet name without regard to case. A colon or comma can follow the name. A fleet with approved GitHub write access answers only when you name it.

Verify it works

Check for the reply in the Slack thread. Open the fleet’s chat to see the turn, or list the turns from the terminal.
Get <FLEET_ID> from agentsfleet fleet list. The actor identifies the Slack team and sender.

Common problems

The fleet gets your question and the thread messages that Slack returns, in order. The default wait for the thread is 1.5 seconds. If Slack cannot return the thread in time, the fleet can still answer your mention. Editing a message or the app replying to itself does not start another turn.

Remove or undo

Remove the Slack trigger from Summary under Wakes on. From the terminal, run agentsfleet fleet triggers list <FLEET_ID> to find the trigger identifier. Then use agentsfleet fleet triggers delete <FLEET_ID> <TRIGGER_ID>.