Add a channel to an agent
create_agent_connectionAdd a channel. WEBSITE_WIDGET needs website_url; new widgets get the app defaults (Modern design) plus your widget_config — then get_widget_embed_code. WEBSITE_BUTTON: just creates the channel (style it in get_widget_embed_code). PRESENTATION_WIDGET = publish the Slide Presenter (optional website_url). GOOGLE_MEET: prefer connect_google_meet. PHONE_CALL: prefer setup_phone_agent. Telegram → connect_telegram_bot; WhatsApp → connect_whatsapp_account. A second widget for the same URL updates the existing one. Free. Interactive cards in chat need design "modern"; in voice they need set_agent_voice screen_cards=true.
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": {
"id": "<id>",
"type": "<type>"
},
"name": "create_agent_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Agent id (UUID) — from list_agents | |
| name | No | ||
| type | Yes | ||
| website_url | No | Site where the widget/presentation is installed | |
| widget_config | No | Website widget settings (only what you pass changes; texts/theme are merged) | |
| phone_call_config | No | Voice Call texts only; number, voice and inbound are set with setup_phone_agent | |
| google_meet_config | No |