Skip to main content
POST
Create Slack Channel Trigger

Authorizations

Authorization
string
header
required

API key authentication. Get your API key from the Duvo dashboard.

Path Parameters

agent_id
string<uuid>
required

The agent's unique identifier

Body

application/json
trigger_type
enum<string>
required

Trigger type. Only slack_channel_message (a message posted in a Slack channel) is supported here.

Available options:
slack_channel_message
channel_id
string
required

Slack channel ID to watch, e.g. C0123ABCD.

Minimum string length: 1
channel_name
string
required

Slack channel name shown in Duvo, without the leading #, e.g. support-inbox.

Minimum string length: 1
match_rule
object
required

Which channel messages fire the trigger: {"kind":"all"} for every message, or {"kind":"contains","values":["invoice"]} to match keywords.

slack_team_id
string

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.

Minimum string length: 1
is_private
boolean

Whether the channel is private. Defaults to false. Private channels require the Duvo Slack app to be invited to the channel.

integration_instance_id
string<uuid>

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

slack_trigger
object
required