MCP Control
Обзор  ›  CRM
CRM · Чтение

Лиды · Просмотр · Этап · Flow · Отправка

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

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

Получить данные
  1. Вы указываетеОбъект
  2. ПомощникЧтение
  3. Вы получаетеПоля ответа
Запрос в чат
Для задачи «Лиды / Просмотр / Этап / Flow / Отправка» выполни чтение в текущей компании. Выведи кратко: состояние, лид.
Что искать в ответе
state
Состояние
leadId
Лид
flowId
Сценарий
Задать параметры
  1. Вы указываетеЗадача
  2. ПомощникСхема входа
  3. Вы получаетеУсловия чтения
Запрос в чат
Покажи, как получить «Лиды / Просмотр / Этап / Flow / Отправка» на учебном примере с action = crm_lead_create. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
Фрагмент учебных параметров
action
crm_lead_create
Разобрать ответ
  1. Вы указываетеПолученный ответ
  2. ПомощникРазбор значений
  3. Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Лиды / Просмотр / Этап / Flow / Отправка» объясни состояние, лид. Отметь отсутствующие значения.
Поля для проверки
state
Состояние
leadId
Лид
flowId
Сценарий
Как работает действие

Это чтение. Выберите запись или задайте фильтры в доступной компании.

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

Read the durable native Flow dispatch for an exact lead creation or stage operation. The lead and outbox were committed atomically. A running/uncertain dispatch is never automatically resent to external providers; inspect backend execution logs before manual recovery.

Параметры запроса
action
Вариант действия, разрешённый схемой. обязательно по схеме · string · варианты crm_lead_create, lead_set_stage, lead_restore
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
state
Durable dispatch status. Uncertain is not safe to resend automatically. обязательно по схеме · string · варианты not_queued, pending, running, completed, failed, uncertain
leadId
Lead affected by the exact operation, or null when no stage Flow was queued. обязательно по схеме · string / null
flowId
Bound native Flow ID, or null. обязательно по схеме · string / null
stageId
Committed native stage ID, or null. обязательно по схеме · string / null
runId
Deterministic native run correlation ID, or null before execution. обязательно по схеме · string / null
error
Safe error code for failed or uncertain delivery, or null. обязательно по схеме · string / null
Поля и технические схемы
Входные поля и поля ответа lead_get_stage_flow_dispatch
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "action": {
      "type": "string",
      "enum": [
        "crm_lead_create",
        "lead_set_stage",
        "lead_restore"
      ],
      "description": "Original lead Action that queued the stage Flow."
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Stable ID for these exact arguments. Reuse unchanged after an uncertain response."
    }
  },
  "required": [
    "action",
    "requestId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "state": {
      "type": "string",
      "enum": [
        "not_queued",
        "pending",
        "running",
        "completed",
        "failed",
        "uncertain"
      ],
      "description": "Durable dispatch status. Uncertain is not safe to resend automatically."
    },
    "leadId": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
          "description": "Canonical lead ID in the connected company."
        },
        {
          "type": "null"
        }
      ],
      "description": "Lead affected by the exact operation, or null when no stage Flow was queued."
    },
    "flowId": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$"
        },
        {
          "type": "null"
        }
      ],
      "description": "Bound native Flow ID, or null."
    },
    "stageId": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$"
        },
        {
          "type": "null"
        }
      ],
      "description": "Committed native stage ID, or null."
    },
    "runId": {
      "description": "Deterministic native run correlation ID, or null before execution.",
      "type": [
        "string",
        "null"
      ]
    },
    "error": {
      "description": "Safe error code for failed or uncertain delivery, or null.",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "state",
    "leadId",
    "flowId",
    "stageId",
    "runId",
    "error"
  ],
  "additionalProperties": false
}