telegram_agent_route
Route incoming Telegram chat messages to the appropriate Odoo agent, returning the correct toolset for handling the request.
Instructions
Classify the conversation direction for an enrolled chat and return the active TOOLSET to switch to (based on the scenario's skills), plus the data_scope/forbid guardrails and a memory_search_hint. Call this on each incoming message before acting.
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": {
"chat_id": "<chat_id>",
"text": "<text>"
},
"name": "telegram_agent_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The incoming message text | |
| chat_id | Yes |