Planner: Book appointment
planner_book_appointmentBook a client appointment in the caller's company calendar, e.g. 'запиши Олену на завтра 15:00 на манікюр'. start_at is LOCAL time YYYY-MM-DDTHH:MM in the company's zone. Check planner_free_slots for that day first; a time that clashes with another appointment or falls outside working hours is refused with the free windows listed. Creates a busy calendar event « — » owned by the caller; pass lead_id when the client is a CRM lead, and phone if the person gave one. Nothing is sent to the client. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.
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": {
"client_name": "<client_name>",
"service": "<service>",
"start_at": "<start_at>"
},
"name": "planner_book_appointment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| phone | No | ||
| lead_id | No | ||
| service | Yes | ||
| start_at | Yes | Local YYYY-MM-DDTHH:MM. | |
| client_name | Yes | ||
| duration_minutes | No |