site_customer_chatОткрыть переписку с посетителем
Показывает диалоги и сообщения сайта, поддерживает ответы менеджера и интерактивные карточки.
С изменениямиПримеры промптов
Запрос в чат
Найди выбранный диалог, открой последние сообщения и подготовь текст ответа клиенту для просмотра.
Что проверить в ответе
Показывает диалоги и сообщения сайта, поддерживает ответы менеджера и интерактивные карточки.
Запрос в чат
Для задачи «Открыть переписку с посетителем» сравни режимы contract и status инструмента site_customer_chat. Какой подойдёт в моём случае и какие данные нужно подготовить?
Что проверить в ответе
Сопоставить два режима и их аргументы.
Запрос в чат
При выполнении «Открыть переписку с посетителем» связь прервалась после отправки. Для site_customer_chat проверь исходный ключ операции и текущее состояние объекта перед решением о повторе.
Что проверить в ответе
Сопоставить результат с исходной операцией.

Как уточнить расплывчатый запрос
Настрой связь.
Назовите форму или диалог и уточните, требуется черновик, проверка или отправка.
Найди выбранный диалог, открой последние сообщения и подготовь текст ответа клиенту для просмотра.
Параметры запроса
siteId- Идентификатор сайта из списка доступных сайтов. строка · обязательно по схеме
operation- Выбранный режим инструмента. contract, status, configure, list, decide, messages, reply, interactive_update · обязательно по схеме
enabled- да / нет · необязательно
widget- да / нет · необязательно
expectedRevision- Актуальная ревизия объекта перед изменением. по вложенной схеме · необязательно
idempotencyKey- Ключ одной операции. При повторе с теми же данными сохраните ключ. строка · необязательно
after- строка · необязательно
limit- Сколько элементов запрашивать за один раз. целое число · необязательно · по умолчанию 20 · от 1 · до 40
requestId- Идентификатор исходного запроса. Сохраните для проверки результата. по вложенной схеме · необязательно
status- Состояние операции или объекта. approved, declined · необязательно
note- строка · необязательно · по умолчанию "" · макс. символов 500
conversationId- строка · необязательно
text- строка · необязательно · макс. символов 3000
interactive- объект · необязательно
messageId- строка · необязательно
Что вернёт инструмент
Состав объекта зависит от операции. Проверьте фактический ответ и полную схему.
Пример аргументов JSON
Учебные значения. Для вызова подставьте идентификаторы и ревизию из своего подключения.
{
"operation": "status",
"siteId": "site_demo"
}Полная схема MCP
Вход
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"siteId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
},
"operation": {
"type": "string",
"enum": [
"contract",
"status",
"configure",
"list",
"decide",
"messages",
"reply",
"interactive_update"
],
"description": "Use contract to read usage and status to get the current revision before configure."
},
"enabled": {
"type": "boolean"
},
"widget": {
"description": "Only customer_chat: show the native floating chat widget.",
"type": "boolean"
},
"expectedRevision": {
"anyOf": [
{
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
]
},
{
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
]
},
"idempotencyKey": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$"
},
"after": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
},
"limit": {
"default": 20,
"type": "integer",
"minimum": 1,
"maximum": 40
},
"requestId": {
"anyOf": [
{
"anyOf": [
{
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
},
{
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$"
}
]
},
{
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$"
}
]
},
"status": {
"type": "string",
"enum": [
"approved",
"declined"
]
},
"note": {
"default": "",
"type": "string",
"maxLength": 500
},
"conversationId": {
"type": "string",
"pattern": "^site_chat_[a-f0-9]{48}$"
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 3000
},
"interactive": {
"type": "object",
"properties": {
"version": {
"default": 1,
"type": "number",
"const": 1
},
"kind": {
"default": "card",
"type": "string",
"enum": [
"card",
"form",
"status",
"html"
]
},
"title": {
"type": "string",
"minLength": 1,
"maxLength": 180
},
"body": {
"default": "",
"type": "string",
"maxLength": 3000
},
"fields": {
"default": [],
"maxItems": 12,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9_]{0,47}$"
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"type": {
"default": "text",
"type": "string",
"enum": [
"text",
"textarea",
"number",
"select",
"checkbox",
"date"
]
},
"required": {
"default": false,
"type": "boolean"
},
"options": {
"maxItems": 30,
"type": "array",
"items": {
"type": "object",
"properties": {
"value": {
"type": "string",
"maxLength": 160
},
"label": {
"type": "string",
"maxLength": 160
}
},
"required": [
"value",
"label"
],
"additionalProperties": false
}
},
"maxLength": {
"default": 500,
"type": "integer",
"minimum": 1,
"maximum": 1500
},
"minimum": {
"type": "number"
},
"maximum": {
"type": "number"
},
"value": {
"anyOf": [
{
"type": "string",
"maxLength": 1500
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"label"
],
"additionalProperties": false
}
},
"metrics": {
"default": [],
"maxItems": 12,
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string",
"maxLength": 120
},
"valueKey": {
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9_]{0,47}$"
},
"suffix": {
"default": "",
"type": "string",
"maxLength": 30
}
},
"required": [
"label",
"valueKey"
],
"additionalProperties": false
}
},
"progress": {
"type": "object",
"properties": {
"label": {
"default": "",
"type": "string",
"maxLength": 120
},
"valueKey": {
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9_]{0,47}$"
},
"maximum": {
"default": 100,
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000000000000
}
},
"required": [
"valueKey"
],
"additionalProperties": false
},
"actions": {
"default": [],
"maxItems": 8,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9_]{0,47}$"
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"kind": {
"default": "submit",
"type": "string",
"enum": [
"submit",
"flow"
]
},
"flow": {
"type": "object",
"properties": {
"siteId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
},
"alias": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]{1,63}$"
},
"input": {
"default": {},
"type": "object",
"propertyNames": {
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9_]{0,47}$"
},
"additionalProperties": {
"anyOf": [
{
"type": "string",
"maxLength": 1500
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
}
]
}
}
},
"required": [
"siteId",
"alias"
],
"additionalProperties": false
}
},
"required": [
"id",
"label"
],
"additionalProperties": false
}
},
"values": {
"default": {},
"type": "object",
"propertyNames": {
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9_]{0,47}$"
},
"additionalProperties": {
"anyOf": [
{
"type": "string",
"maxLength": 1500
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
}
]
}
},
"html": {
"type": "string",
"maxLength": 60000
},
"height": {
"default": 360,
"type": "integer",
"minimum": 160,
"maximum": 800
}
},
"required": [
"title"
],
"additionalProperties": false
},
"messageId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
}
},
"required": [
"siteId",
"operation"
],
"additionalProperties": false
}Ответ
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
},
"$defs": {
"__schema0": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
}
]
}
}
}Открыть JSON карточки