Create TG Campaign
create_tg_campaign[write] Create a Telegram campaign as a DRAFT. It never approves, starts or sends anything: a person reviews the audience, approves and starts it in the panel. account_id = tg_account_id (or account_uuid) is OPTIONAL: a campaign belongs to the merchant and the account that sends it is picked when a person approves it. title up to 120 characters; text up to 1000 ({name} becomes the person's first name; a /stop line is always added). Audience (optional): last_inbound_days 1-90 (default 30) and tg_chat_ids (limit to these chats); only people who wrote to the account in that time AND agreed to receive messages are ever included - check preview_tg_campaign_audience. window (optional) = {timezone: IANA name, start_hour: 0-23, end_hour: 1-24}: messages go out only inside it (default Europe/Istanbul 9-20). tg_list_id / tg_list_uuid (optional) = a saved chat list of the same account (see list_tg_lists): its chats become the audience (a copy). Returns the draft with its tg_campaign_id / tg_campaign_uuid.
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": {
"title": "<title>",
"text": "<text>"
},
"name": "create_tg_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| title | Yes | ||
| window | No | ||
| account_id | No | ||
| tg_list_id | No | ||
| tg_chat_ids | No | ||
| account_uuid | No | ||
| tg_list_uuid | No | ||
| last_inbound_days | No |