Create Channel
lyzr_create_channelCreate a channel to route inbound messages from platforms like Telegram or Slack to Lyzr agents. Specify platform, default agent, and routes to handle conversations.
Instructions
Create a channel configuration that routes an inbound messaging platform (e.g. telegram, slack) to Lyzr agents.
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": {
"platform": "<platform>",
"default_agent_id": "<default_agent_id>",
"config": "<config>"
},
"name": "lyzr_create_channel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | Yes | Platform-specific config dict (fields validated by the platform's adapter) | |
| platform | Yes | Platform key matching a registered adapter, e.g. telegram, slack | |
| agent_routes | No | Agents accessible through this bot. If omitted, a single 'default' route is auto-created from default_agent_id | |
| default_agent_id | Yes | Agent used when the user has not explicitly switched |