Create Slack Channel Trigger
Create a Slack channel trigger on an agent (Agent in the Duvo UI): the agent starts a Run whenever a matching message is posted in the channel. An agent can carry one trigger per channel, so call this once per channel. The Slack workspace must be installed for the team AND bound to the agent’s live build first (see the Slack bound-workspaces endpoint) — otherwise this returns 400.
Authorizations
API key authentication. Get your API key from the Duvo dashboard.
Path Parameters
The agent's unique identifier
Body
Trigger type. Only slack_channel_message (a message posted in a Slack channel) is supported here.
slack_channel_message Slack channel ID to watch, e.g. C0123ABCD.
1Slack channel name shown in Duvo, without the leading #, e.g. support-inbox.
1Which channel messages fire the trigger: {"kind":"all"} for every message, or {"kind":"contains","values":["invoice"]} to match keywords.
- Option 1
- Option 2
Slack workspace (team) ID the channel belongs to, e.g. T0123ABCD. Defaults to the team's default installed workspace. Discover the workspaces an agent can use with the bound-workspaces endpoint.
1Whether the channel is private. Defaults to false. Private channels require the Duvo Slack app to be invited to the channel.
Specific bound Slack connection to run the trigger off. Omit to use your own connection, or pass one returned by the bound-workspaces endpoint.
Response
Default Response