Add a channel
colliedesk_channels_createAdd a channel of a type with its configuration. A workspace may have several of a type (two support mailboxes, two web forms): give each a name that tells them apart; a name or a support address another channel has is refused, and the error names that channel. The first channel of a type is its default; is_default true makes a later one the default. Adding the first email channel connects the support address, like colliedesk_email_channel_update.
Needs: channels:update.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"type": "<type>"
},
"name": "colliedesk_channels_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| type | Yes | ||
| config | No | The type's configuration: email {support_address, sender_name}; web_form {allowed_origins}; help_chat {greeting, suggestions (at most 4), instructions, widget_origins}; zalo {oa_id, app_id (both to add one), staff_user_ids, groups (group id to organization), site_verification (the code Zalo gives the app's URL prefix with the HTML file method; the meta tag or file name may be given; empty clears it)}. Setting up Zalo: Zalo takes the webhook only on a verified address, so give the person the channel's verification_prefix_url to verify in the Zalo app (URL prefix, HTML file method), set the code Zalo shows as site_verification with colliedesk_channels_update, then give them webhook_url for the app's webhook settings. | |
| enabled | No | ||
| settings | No | The channel's rules over its type's defaults: join_policy {kind: always_reopen, within_days with days, never}, default_tags, default_priority, default_assignee_id, rate_limits {window_seconds, per_sender, new_conversations, scope}, commands (name to {action, phrases, tags, priority}), review, scopes, notices {received}. Never a secret. | |
| is_default | No | true makes the channel its type's default; the one that was loses it. | |
| help_center_id | No | Help chat and web form only: the help center it serves (from colliedesk_help_centers_list); null or left out serves the primary. A help chat answers from that help center's articles alone, and its conversations show its name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | Yes |