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

Социальные сети · Чаты · Интерактивные · Действие

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

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

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

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

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

Respond to a stored internal card as the authenticated user, or recover its original Flow result using the unchanged requestId. Executes only a stored published binding; never accepts an arbitrary endpoint.

Параметры запроса
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
chatId
Native chatId value; use the value and type returned by the corresponding service. обязательно по схеме · string
messageId
Native messageId value; use the value and type returned by the corresponding service. обязательно по схеме · string
actionId
Interactive id; use the declared type, limits and current saved card definition. обязательно по схеме · string
values
Значения для записи. Состав и вложенность указаны в схеме. обязательно по схеме · object · по умолчанию {}
expectedRevision
Версия, прочитанная перед изменением. обязательно по схеме · integer · максимум 9007199254740991
recover
Native recover value; use the value and type returned by the corresponding service. обязательно по схеме · boolean · по умолчанию false
Что вернёт команда
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_interactive_action
Вход · 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": "Interactive requestId; use the declared type, limits and current saved card definition."
    },
    "chatId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native chatId value; use the value and type returned by the corresponding service."
    },
    "messageId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native messageId value; use the value and type returned by the corresponding service."
    },
    "actionId": {
      "$ref": "#/$defs/_mcp0"
    },
    "values": {
      "default": {},
      "description": "Interactive values; use the declared type, limits and current saved card definition.",
      "type": "object",
      "propertyNames": {
        "$ref": "#/$defs/_mcp0"
      },
      "additionalProperties": {
        "anyOf": [
          {
            "type": "string",
            "maxLength": 1500,
            "description": "Interactive value; use the declared type, limits and current saved card definition."
          },
          {
            "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."
      }
    },
    "expectedRevision": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Interactive expectedRevision; use the declared type, limits and current saved card definition."
    },
    "recover": {
      "default": false,
      "description": "Native recover value; use the value and type returned by the corresponding service.",
      "type": "boolean",
      "const": false
    }
  },
  "required": [
    "requestId",
    "chatId",
    "messageId",
    "actionId",
    "values",
    "expectedRevision",
    "recover"
  ],
  "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."
    }
  }
}
Выход · 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"
          }
        }
      ]
    }
  }
}