Create Slack Channel Trigger
createAgentSlackTriggerCreate 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | The agent's unique identifier | |
| channel_id | Yes | Slack channel ID to watch, e.g. `C0123ABCD`. | |
| is_private | No | Whether the channel is private. Defaults to false. Private channels require the Duvo Slack app to be invited to the channel. | |
| match_rule | Yes | Which channel messages fire the trigger: `{"kind":"all"}` for every message, or `{"kind":"contains","values":["invoice"]}` to match keywords. | |
| channel_name | Yes | Slack channel name shown in Duvo, without the leading `#`, e.g. `support-inbox`. | |
| trigger_type | Yes | Trigger type. Only `slack_channel_message` (a message posted in a Slack channel) is supported here. | |
| slack_team_id | No | 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. | |
| integration_instance_id | No | Specific bound Slack connection to run the trigger off. Omit to use your own connection, or pass one returned by the bound-workspaces endpoint. |