upsert_business
Create a new business or update an existing one by owner and name, making retries safe. Provide ready-made AI context or labeled sections to configure its support behavior.
Instructions
Create a business, or update the existing one with the same name for the same owner. Idempotent by (owner, name) — safe to retry. Pass either ai_context directly, or sections to have the labelled context assembled the same way the panel builds it.
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": {
"name": "<name>",
"user_id": "<user_id>"
},
"name": "upsert_business"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| locale | No | ||
| paused | No | ||
| user_id | Yes | Owner user id. | |
| sections | No | Labelled context sections, assembled in order. Keys: business_type, reply_language, reply_tone, target_audience, services, pricing, policies, working_hours, handoff_rules, notes. | |
| username | No | Telegram bot username, without @. Defaults to the platform bot. | |
| ai_context | No | Ready-made context. Takes precedence over `sections`. | |
| ai_enabled | No | ||
| history_limit | No | ||
| support_contact | No | ||
| web_search_enabled | No | Leave false for support bots — open web search is the main source of confidently wrong answers. | |
| cross_chat_learning | No |