MCP Control
Коммуникации · Изменение

Социальные сети · Чаты · Сайт · Ответ

social_workspace_chat_site_reply
Контактные карточки и телефон

Попробуйте три запроса

Подготовить
  1. Вы указываетеСайт
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Социальные сети / Чаты / Сайт / Ответ». Для изменения нужны сайт, диалог. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
siteId
Сайт
conversationId
Диалог
text
Текст
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Социальные сети / Чаты / Сайт / Ответ» с параметром siteId = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
Фрагмент учебных параметров
siteId
DEMO-101
conversationId
DEMO-101
text
Учебный текст
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Социальные сети / Чаты / Сайт / Ответ» по исходному ответу. Покажи companyId, результат. Объясни, чем подтвердить эффект для выбранного объекта.
Как проследить одну попытку
  1. ЗапросСохранить исходный ключ
  2. ОтветПроверить статус
  3. ПроверкаСверить эффект операции
Как работает действие

Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.

Описание разработчика

Send a reviewed text, card, form, status or HTML/CSS reply to a customer conversation of this company Site. Buttons may use only enabled published same-site Flow aliases. No external channel is contacted.

Параметры запроса
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
siteId
Native siteId value; use the value and type returned by the corresponding service. обязательно по схеме · string
conversationId
Native conversationId value; use the value and type returned by the corresponding service. обязательно по схеме · string
text
Native text value; use the value and type returned by the corresponding service. необязательно · string · до символов 3000
interactive
Native interactive value; use the value and type returned by the corresponding service. необязательно · object
Что вернёт команда
companyId
Native companyId value; use the value and type returned by the corresponding service. обязательно по схеме · string
result
Native result value; use the value and type returned by the corresponding service. обязательно по схеме · object
Поля и технические схемы
Входные поля и поля ответа social_workspace_chat_site_reply
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Stable request ID for these exact arguments. Keep it if the response is uncertain."
    },
    "siteId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native siteId value; use the value and type returned by the corresponding service."
    },
    "conversationId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native conversationId value; use the value and type returned by the corresponding service."
    },
    "text": {
      "description": "Native text value; use the value and type returned by the corresponding service.",
      "type": "string",
      "minLength": 1,
      "maxLength": 3000
    },
    "interactive": {
      "description": "Native interactive value; use the value and type returned by the corresponding service.",
      "type": "object",
      "properties": {
        "version": {
          "default": 1,
          "description": "Interactive version; use the declared type, limits and current saved card definition.",
          "type": "number",
          "const": 1
        },
        "kind": {
          "default": "card",
          "description": "Interactive kind; use the declared type, limits and current saved card definition.",
          "type": "string",
          "enum": [
            "card",
            "form",
            "status",
            "html"
          ]
        },
        "title": {
          "type": "string",
          "minLength": 1,
          "maxLength": 180,
          "description": "Interactive title; use the declared type, limits and current saved card definition."
        },
        "body": {
          "default": "",
          "description": "Interactive body; use the declared type, limits and current saved card definition.",
          "type": "string",
          "maxLength": 3000
        },
        "fields": {
          "default": [],
          "description": "Interactive fields; use the declared type, limits and current saved card definition.",
          "maxItems": 12,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/$defs/_mcp0"
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "description": "Interactive label; use the declared type, limits and current saved card definition."
              },
              "type": {
                "default": "text",
                "description": "Interactive type; use the declared type, limits and current saved card definition.",
                "type": "string",
                "enum": [
                  "text",
                  "textarea",
                  "number",
                  "select",
                  "checkbox",
                  "date"
                ]
              },
              "required": {
                "default": false,
                "description": "Interactive required; use the declared type, limits and current saved card definition.",
                "type": "boolean"
              },
              "options": {
                "description": "Interactive options; use the declared type, limits and current saved card definition.",
                "maxItems": 30,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "value": {
                      "type": "string",
                      "maxLength": 160,
                      "description": "Interactive value; use the declared type, limits and current saved card definition."
                    },
                    "label": {
                      "type": "string",
                      "maxLength": 160,
                      "description": "Interactive label; use the declared type, limits and current saved card definition."
                    }
                  },
                  "required": [
                    "value",
                    "label"
                  ],
                  "additionalProperties": false,
                  "description": "Interactive options; use the declared type, limits and current saved card definition."
                }
              },
              "maxLength": {
                "default": 500,
                "description": "Interactive maxLength; use the declared type, limits and current saved card definition.",
                "type": "integer",
                "minimum": 1,
                "maximum": 1500
              },
              "minimum": {
                "description": "Interactive minimum; use the declared type, limits and current saved card definition.",
                "type": "number"
              },
              "maximum": {
                "description": "Interactive maximum; use the declared type, limits and current saved card definition.",
                "type": "number"
              },
              "value": {
                "description": "Interactive value; use the declared type, limits and current saved card definition.",
                "anyOf": [
                  {
                    "$ref": "#/$defs/_mcp1"
                  },
                  {
                    "type": "number",
                    "description": "Interactive value; use the declared type, limits and current saved card definition."
                  },
                  {
                    "type": "boolean",
                    "description": "Interactive value; use the declared type, limits and current saved card definition."
                  },
                  {
                    "type": "null",
                    "description": "Interactive value; use the declared type, limits and current saved card definition."
                  }
                ]
              }
            },
            "required": [
              "id",
              "label",
              "type",
              "required",
              "maxLength"
            ],
            "additionalProperties": false,
            "description": "Interactive fields; use the declared type, limits and current saved card definition."
          }
        },
        "metrics": {
          "default": [],
          "description": "Interactive metrics; use the declared type, limits and current saved card definition.",
          "maxItems": 12,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "label": {
                "type": "string",
                "maxLength": 120,
                "description": "Interactive label; use the declared type, limits and current saved card definition."
              },
              "valueKey": {
                "$ref": "#/$defs/_mcp0"
              },
              "suffix": {
                "default": "",
                "description": "Interactive suffix; use the declared type, limits and current saved card definition.",
                "type": "string",
                "maxLength": 30
              }
            },
            "required": [
              "label",
              "valueKey",
              "suffix"
            ],
            "additionalProperties": false,
            "description": "Interactive metrics; use the declared type, limits and current saved card definition."
          }
        },
        "progress": {
          "description": "Interactive progress; use the declared type, limits and current saved card definition.",
          "type": "object",
          "properties": {
            "label": {
              "default": "",
              "description": "Interactive label; use the declared type, limits and current saved card definition.",
              "type": "string",
              "maxLength": 120
            },
            "valueKey": {
              "$ref": "#/$defs/_mcp0"
            },
            "maximum": {
              "default": 100,
              "description": "Interactive maximum; use the declared type, limits and current saved card definition.",
              "type": "number",
              "exclusiveMinimum": 0,
              "maximum": 1000000000000
            }
          },
          "required": [
            "label",
            "valueKey",
            "maximum"
          ],
          "additionalProperties": false
        },
        "actions": {
          "default": [],
          "description": "Interactive actions; use the declared type, limits and current saved card definition.",
          "maxItems": 8,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/$defs/_mcp0"
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "description": "Interactive label; use the declared type, limits and current saved card definition."
              },
              "kind": {
                "default": "submit",
                "description": "Interactive kind; use the declared type, limits and current saved card definition.",
                "type": "string",
                "enum": [
                  "submit",
                  "flow"
                ]
              },
              "flow": {
                "description": "Interactive flow; use the declared type, limits and current saved card definition.",
                "type": "object",
                "properties": {
                  "siteId": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
                    "description": "Interactive siteId; use the declared type, limits and current saved card definition."
                  },
                  "alias": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9-]{1,63}$",
                    "description": "Interactive alias; use the declared type, limits and current saved card definition."
                  },
                  "input": {
                    "default": {},
                    "description": "Interactive input; use the declared type, limits and current saved card definition.",
                    "type": "object",
                    "propertyNames": {
                      "$ref": "#/$defs/_mcp0"
                    },
                    "additionalProperties": {
                      "$ref": "#/$defs/_mcp2"
                    }
                  }
                },
                "required": [
                  "siteId",
                  "alias",
                  "input"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "id",
              "label",
              "kind"
            ],
            "additionalProperties": false,
            "description": "Interactive actions; use the declared type, limits and current saved card definition."
          }
        },
        "values": {
          "default": {},
          "description": "Interactive values; use the declared type, limits and current saved card definition.",
          "type": "object",
          "propertyNames": {
            "$ref": "#/$defs/_mcp0"
          },
          "additionalProperties": {
            "$ref": "#/$defs/_mcp2"
          }
        },
        "html": {
          "description": "Interactive html; use the declared type, limits and current saved card definition.",
          "type": "string",
          "maxLength": 60000
        },
        "height": {
          "default": 360,
          "description": "Interactive height; use the declared type, limits and current saved card definition.",
          "type": "integer",
          "minimum": 160,
          "maximum": 800
        }
      },
      "required": [
        "version",
        "kind",
        "title",
        "body",
        "fields",
        "metrics",
        "actions",
        "values",
        "height"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "requestId",
    "siteId",
    "conversationId"
  ],
  "additionalProperties": false,
  "$defs": {
    "_mcp0": {
      "type": "string",
      "pattern": "^[A-Za-z][A-Za-z0-9_]{0,47}$",
      "description": "Interactive id; use the declared type, limits and current saved card definition."
    },
    "_mcp1": {
      "type": "string",
      "maxLength": 1500,
      "description": "Interactive value; use the declared type, limits and current saved card definition."
    },
    "_mcp2": {
      "anyOf": [
        {
          "$ref": "#/$defs/_mcp1"
        },
        {
          "type": "number",
          "description": "Interactive value; use the declared type, limits and current saved card definition."
        },
        {
          "type": "boolean",
          "description": "Interactive value; use the declared type, limits and current saved card definition."
        },
        {
          "type": "null",
          "description": "Interactive value; use the declared type, limits and current saved card definition."
        }
      ],
      "description": "Interactive value; use the declared type, limits and current saved card definition."
    }
  }
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "companyId": {
      "type": "string",
      "description": "Native companyId value; use the value and type returned by the corresponding service."
    },
    "result": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "$ref": "#/$defs/__schema0"
      },
      "description": "Native result value; use the value and type returned by the corresponding service."
    }
  },
  "required": [
    "companyId",
    "result"
  ],
  "additionalProperties": false,
  "$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"
          }
        }
      ]
    }
  }
}