Голос · Агенты · Установка значения · Календарь
voice_agent_set_calendar
Попробуйте три запроса
- Вы указываетеAgentid
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Подготовь «Голос / Агенты / Установка значения / Календарь». Для изменения нужны agentId, включение. Покажи объект и ожидаемый эффект до выполнения.
- agentId
- Параметр
- enabled
- Включение
- timezone
- Часовой пояс
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
На учебной записи подготовь «Голос / Агенты / Установка значения / Календарь» с параметром agentId = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- agentId
- DEMO-101
- enabled
- true
- timezone
- America/Tijuana
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Проверь результат «Голос / Агенты / Установка значения / Календарь» по исходному ответу. Покажи agentId, включение. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.
Описание разработчика
Enable or disable the existing Voice Center calendar tool and optionally change its business timezone through MCP. Synchronizes native settings and runtime actions at an exact agent revision, preserving other actions and voice settings. Generic calendars require task creation rights; Service calendars require Booking, Orders and CRM rights. Disabling without changing the binding requires voice rights only. Pass serviceBinding:null to switch to generic tasks. The runtime must still obtain the caller's date/time confirmation before writing a calendar appointment. Does not create an appointment, call anyone, alter a phone binding or modify an active call. Retry the identical request to recover its immutable receipt.
Параметры запроса
- agentId
- Existing Voice Center agent ID in the selected company. обязательно по схеме · string
- expectedRevision
- Версия, прочитанная перед изменением. обязательно по схеме · string
- enabled
- Whether the agent may create caller-confirmed calendar appointments. обязательно по схеме · boolean
- timezone
- IANA business timezone; omit to preserve the existing timezone. необязательно · string · до символов 100
- serviceBinding
- Configure Service booking instead of generic CRM tasks. Omit to preserve the current binding; null clears it and selects generic tasks. необязательно · object / null
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
- agentId
- Existing Voice Center agent ID in the selected company. обязательно по схеме · string
- enabled
- Whether the agent may create caller-confirmed calendar appointments. обязательно по схеме · boolean
- timezone
- IANA business timezone used to interpret calendar dates. обязательно по схеме · string · до символов 100
- changed
- Whether the saved calendar settings changed. обязательно по схеме · boolean
- appliedFromRevision
- Exact current agent revision returned by voice_agent_get_calendar. обязательно по схеме · string
- operation
- Calendar settings committed without starting a call or creating an appointment. обязательно по схеме · string
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"agentId": {
"type": "string",
"pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Existing Voice Center agent ID in the selected company."
},
"expectedRevision": {
"type": "string",
"pattern": "^fsv1:-?\\d{1,12}:\\d{1,9}$",
"description": "Exact current agent revision returned by voice_agent_get_calendar."
},
"enabled": {
"type": "boolean",
"description": "Whether the agent may create caller-confirmed calendar appointments."
},
"timezone": {
"description": "IANA business timezone; omit to preserve the existing timezone.",
"type": "string",
"minLength": 1,
"maxLength": 100
},
"serviceBinding": {
"description": "Configure Service booking instead of generic CRM tasks. Omit to preserve the current binding; null clears it and selects generic tasks.",
"anyOf": [
{
"type": "object",
"properties": {
"establishmentId": {
"type": "string",
"pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Existing company establishment."
},
"employeeId": {
"type": "string",
"pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Existing native Service employee."
},
"productId": {
"type": "string",
"pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Existing native service product."
},
"durationMinutes": {
"type": "integer",
"minimum": 5,
"maximum": 1440,
"description": "Confirmed service duration in minutes."
}
},
"required": [
"establishmentId",
"employeeId",
"productId",
"durationMinutes"
],
"additionalProperties": false,
"description": "Native Service calendar: selected establishment, staff member and service. Native availability, price and customer confirmation remain required."
},
{
"type": "null"
}
]
},
"requestId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Stable idempotency key; reuse only with identical original arguments."
}
},
"required": [
"agentId",
"expectedRevision",
"enabled",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"agentId": {
"type": "string",
"pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Existing Voice Center agent ID in the selected company."
},
"enabled": {
"type": "boolean",
"description": "Whether the agent may create caller-confirmed calendar appointments."
},
"timezone": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "IANA business timezone used to interpret calendar dates."
},
"changed": {
"type": "boolean",
"description": "Whether the saved calendar settings changed."
},
"appliedFromRevision": {
"type": "string",
"pattern": "^fsv1:-?\\d{1,12}:\\d{1,9}$",
"description": "Exact current agent revision returned by voice_agent_get_calendar."
},
"operation": {
"type": "string",
"const": "calendar_configured",
"description": "Calendar settings committed without starting a call or creating an appointment."
}
},
"required": [
"agentId",
"enabled",
"timezone",
"changed",
"appliedFromRevision",
"operation"
],
"additionalProperties": false
}