MCP Control
Автоматизации · Изменение

Flow · Запросы · Настройка

flows_request_setup
Карточки процесса, соединённые нитями

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

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

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

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

Create an existing native Chat credential/oauth card for a detected Flow requirement. Secret input is exclusively in the private secure UI. OAuth starts through native provider adapters; Chat contains only a private setup link, and AI receives status and IDs. Binds the request to this Flow revision, node, provider, company and session. No production activation.

Параметры запроса
flowId
Native disabled Flow. обязательно по схеме · string
nodeId
Native node requiring secure setup. обязательно по схеме · string
expectedRevision
Версия, прочитанная перед изменением. обязательно по схеме · string
chatId
Existing native chatai conversation. Use social_assistant_open to target the user Social widget. обязательно по схеме · string
sessionId
Flow operation session; all replies retain this value. обязательно по схеме · string
replyToMessageId
Original user message in the same Chat session. необязательно · string
kind
Detected secure requirement kind. обязательно по схеме · string · варианты credential, oauth
field
Exact native field reported by Flow validation. обязательно по схеме · string · варианты key, username, password, input.tokenRef, input.accessTokenRef, input.botTokenRef, input.keyRef, input.secret, input.client_secret, input.supabase_key, input.supabase_anon_key, input.integrationId
integrationId
Existing authorized integration ID, gpt for OpenAI, or the reserved flow selector for a generic private requirement whose provider and integrationId are both empty. обязательно по схеме · string
provider
Discovered provider. Use flow with integrationId flow only for a generic unbound credential requirement. The encrypted value is bound to the exact Flow/node/field and HTTPS destination. OAuth requires an existing native adapter. обязательно по схеме · string
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
flowId
Native Flow. обязательно по схеме · string
nodeId
Native node. обязательно по схеме · string
chatId
Existing Chat. обязательно по схеме · string
messageId
Native credential/oauth message. обязательно по схеме · string
sessionId
Flow operation session. обязательно по схеме · string
status
Secure setup state. ready means saved and bound, not production activation. обязательно по схеме · string · варианты pending, ready, expired
referenceId
Credential/integration ID only when ready; no secret or OAuth URL. обязательно по схеме · string · до символов 160
productionActivated
Secure setup never activates the Flow. обязательно по схеме · boolean
Поля и технические схемы
Входные поля и поля ответа flows_request_setup
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "flowId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native disabled Flow."
    },
    "nodeId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native node requiring secure setup."
    },
    "expectedRevision": {
      "type": "string",
      "pattern": "^fsv1:-?\\d{1,12}:\\d{1,9}$",
      "description": "Current Flow revision."
    },
    "chatId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Existing native chatai conversation. Use social_assistant_open to target the user Social widget."
    },
    "sessionId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Flow operation session; all replies retain this value."
    },
    "replyToMessageId": {
      "description": "Original user message in the same Chat session.",
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
    },
    "kind": {
      "type": "string",
      "enum": [
        "credential",
        "oauth"
      ],
      "description": "Detected secure requirement kind."
    },
    "field": {
      "type": "string",
      "enum": [
        "key",
        "username",
        "password",
        "input.tokenRef",
        "input.accessTokenRef",
        "input.botTokenRef",
        "input.keyRef",
        "input.secret",
        "input.client_secret",
        "input.supabase_key",
        "input.supabase_anon_key",
        "input.integrationId"
      ],
      "description": "Exact native field reported by Flow validation."
    },
    "integrationId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Existing authorized integration ID, gpt for OpenAI, or the reserved flow selector for a generic private requirement whose provider and integrationId are both empty."
    },
    "provider": {
      "type": "string",
      "pattern": "^[a-z][a-z0-9_]{0,79}$",
      "description": "Discovered provider. Use flow with integrationId flow only for a generic unbound credential requirement. The encrypted value is bound to the exact Flow/node/field and HTTPS destination. OAuth requires an existing native adapter."
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Stable request ID for this exact requirement."
    }
  },
  "required": [
    "flowId",
    "nodeId",
    "expectedRevision",
    "chatId",
    "sessionId",
    "kind",
    "field",
    "integrationId",
    "provider",
    "requestId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "flowId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native Flow."
    },
    "nodeId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native node."
    },
    "chatId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Existing Chat."
    },
    "messageId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native credential/oauth message."
    },
    "sessionId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Flow operation session."
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "ready",
        "expired"
      ],
      "description": "Secure setup state. ready means saved and bound, not production activation."
    },
    "referenceId": {
      "type": "string",
      "maxLength": 160,
      "description": "Credential/integration ID only when ready; no secret or OAuth URL."
    },
    "productionActivated": {
      "type": "boolean",
      "const": false,
      "description": "Secure setup never activates the Flow."
    }
  },
  "required": [
    "flowId",
    "nodeId",
    "chatId",
    "messageId",
    "sessionId",
    "status",
    "referenceId",
    "productionActivated"
  ],
  "additionalProperties": false
}