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

Клиенты · Обзор 360°

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

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

Получить данные
  1. Вы указываетеКлиент
  2. ПомощникЧтение
  3. Вы получаетеПоля ответа
Запрос в чат
Для задачи «Клиенты / Обзор 360°» выполни чтение по выбранной записи (клиент). Выведи кратко: customer, contacts.
Что искать в ответе
customer
Поле ответа
contacts
Поле ответа
leads
Поле ответа
Задать параметры
  1. Вы указываетеКлиент
  2. ПомощникСверка выбора
  3. Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Клиенты / Обзор 360°» на учебном примере с customerId = DEMO-101. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
Фрагмент учебных параметров
customerId
DEMO-101
Разобрать ответ
  1. Вы указываетеПолученный ответ
  2. ПомощникРазбор значений
  3. Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Клиенты / Обзор 360°» объясни customer, contacts. Отметь отсутствующие значения.
Поля для проверки
customer
Поле ответа
contacts
Поле ответа
leads
Поле ответа
Как работает действие

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

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

Get an accessible customer profile together with bounded related CRM tasks, leads, orders and messages in one operation. Each section is included only when employee and client both have its permission. Related arrays are capped at 10 records and use stable ID ordering, not a financial ledger or exhaustive history.

Параметры запроса
customerId
Идентификатор клиента, выбранного по результату поиска. обязательно по схеме · string · до символов 160
Что вернёт команда
customer
Verified customer profile for the connected workspace and accessible location. обязательно по схеме · object
contacts
Stored contacts, returned only with communications.read. обязательно по схеме · array
leads
Up to 10 accessible linked CRM leads when leads.read is granted. обязательно по схеме · array
tasks
Up to 10 accessible linked tasks when tasks.read is granted. обязательно по схеме · array
orders
Up to 10 accessible linked orders when orders.read is granted. обязательно по схеме · array
messages
Up to 10 accessible linked messages when communications.read is granted. обязательно по схеме · array
Поля и технические схемы
Входные поля и поля ответа customer_360
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "customerId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Canonical customer identifier returned by a search action in the currently connected workspace. Never construct it from a display name."
    }
  },
  "required": [
    "customerId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "customer": {
      "type": "object",
      "properties": {
        "customerId": {
          "type": "string",
          "description": "Canonical top-level users document identifier for this customer."
        },
        "displayName": {
          "type": "string",
          "description": "Customer display name from the existing profile."
        },
        "firstName": {
          "type": "string",
          "description": "Stored customer first name."
        },
        "lastName": {
          "type": "string",
          "description": "Stored customer last name."
        },
        "locationId": {
          "description": "Canonical establishment identifier assigned to this profile, or null if unassigned.",
          "type": [
            "string",
            "null"
          ]
        },
        "language": {
          "type": "string",
          "description": "Stored language selection; an empty string means it was not set."
        },
        "blocked": {
          "type": "boolean",
          "description": "Whether the existing profile is blocked."
        },
        "note": {
          "type": "string",
          "description": "Customer profile Comment; does not include employee permissions, account details or credentials."
        }
      },
      "required": [
        "customerId",
        "displayName",
        "firstName",
        "lastName",
        "locationId",
        "language",
        "blocked",
        "note"
      ],
      "additionalProperties": false,
      "description": "Verified customer profile for the connected workspace and accessible location."
    },
    "contacts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "contactPointId": {
            "type": "string",
            "description": "Server-issued fingerprint identifying this exact contact entry and customer. Refresh contacts if the entry changes; never generate or reuse it for another customer."
          },
          "label": {
            "type": "string",
            "description": "Existing contact name such as phone, email, WhatsApp or Instagram; an arbitrary label is not evidence of channel support."
          },
          "value": {
            "type": "string",
            "description": "Actual stored contact value. The send action resolves this server-side from contactPointId; do not substitute a guessed address."
          },
          "recordedAt": {
            "$ref": "#/$defs/_mcp1"
          }
        },
        "required": [
          "contactPointId",
          "label",
          "value",
          "recordedAt"
        ],
        "additionalProperties": false
      },
      "description": "Stored contacts, returned only with communications.read."
    },
    "leads": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "leadId": {
            "type": "string",
            "description": "Canonical Companies/{company}/Leads document identifier."
          },
          "title": {
            "type": "string",
            "description": "Stored lead title, document.name_lid."
          },
          "customerId": {
            "description": "Linked canonical users identifier, if one is stored.",
            "type": [
              "string",
              "null"
            ]
          },
          "pipelineId": {
            "description": "Linked canonical company pipeline identifier.",
            "type": [
              "string",
              "null"
            ]
          },
          "firstName": {
            "type": "string",
            "description": "Lead first name."
          },
          "lastName": {
            "type": "string",
            "description": "Lead last name."
          },
          "source": {
            "type": "string",
            "description": "Stored lead acquisition source."
          },
          "managerId": {
            "description": "Assigned user identifier; assignment does not grant permissions.",
            "type": [
              "string",
              "null"
            ]
          },
          "comment": {
            "type": "string",
            "description": "Lead comment text."
          },
          "createdAt": {
            "$ref": "#/$defs/_mcp1"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "Stored CRM tag text."
            },
            "description": "Stored tags, limited to 30."
          }
        },
        "required": [
          "leadId",
          "title",
          "customerId",
          "pipelineId",
          "firstName",
          "lastName",
          "source",
          "managerId",
          "comment",
          "createdAt",
          "tags"
        ],
        "additionalProperties": false
      },
      "description": "Up to 10 accessible linked CRM leads when leads.read is granted."
    },
    "tasks": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "taskId": {
            "type": "string",
            "description": "Canonical Companies/{company}/Task document identifier."
          },
          "title": {
            "type": "string",
            "description": "Task document.name."
          },
          "description": {
            "type": "string",
            "description": "Task document.comment."
          },
          "priority": {
            "type": "string",
            "description": "Stored priority value. This API does not invent or convert priority enums."
          },
          "assigneeIds": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "Canonical assigned users identifier."
            },
            "description": "User identifiers assigned to the task."
          },
          "scheduledAt": {
            "$ref": "#/$defs/_mcp1"
          },
          "finishAt": {
            "$ref": "#/$defs/_mcp1"
          },
          "leadId": {
            "description": "Related company lead identifier, when present.",
            "type": [
              "string",
              "null"
            ]
          },
          "orderId": {
            "description": "Related company order identifier, when present.",
            "type": [
              "string",
              "null"
            ]
          },
          "customerId": {
            "description": "Stored task contact identifier, when present.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "taskId",
          "title",
          "description",
          "priority",
          "assigneeIds",
          "scheduledAt",
          "finishAt",
          "leadId",
          "orderId",
          "customerId"
        ],
        "additionalProperties": false
      },
      "description": "Up to 10 accessible linked tasks when tasks.read is granted."
    },
    "orders": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "orderId": {
            "type": "string",
            "description": "Canonical company Orders document identifier."
          },
          "number": {
            "description": "Existing order number when assigned.",
            "type": [
              "number",
              "null"
            ]
          },
          "locationId": {
            "type": "string",
            "description": "Stored order Establishment identifier."
          },
          "amount": {
            "description": "Stored total amount in the order currency.",
            "type": [
              "number",
              "null"
            ]
          },
          "currency": {
            "type": "string",
            "description": "Stored currency code."
          },
          "createdAt": {
            "$ref": "#/$defs/_mcp1"
          }
        },
        "required": [
          "orderId",
          "number",
          "locationId",
          "amount",
          "currency",
          "createdAt"
        ],
        "additionalProperties": false
      },
      "description": "Up to 10 accessible linked orders when orders.read is granted."
    },
    "messages": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "recipient": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "channel": {
                    "type": "string",
                    "enum": [
                      "whatsapp",
                      "messenger",
                      "instagram",
                      "telegram",
                      "sms",
                      "email",
                      "imessage",
                      "channex",
                      "hospitable"
                    ],
                    "description": "Explicit intended messaging channel. Messenger uses the Facebook messaging integration; an advertising or social publishing integration cannot send a DM."
                  },
                  "address": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 320,
                    "description": "Recipient explicitly supplied by the user or read from an accessible conversation. Phone numbers must include + and country code; Messenger/Instagram use scoped numeric recipient IDs, Telegram uses its numeric chat ID. Never invent an ID from a name or handle."
                  }
                },
                "required": [
                  "channel",
                  "address"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "Exact reusable channel/address from the stored contact method. Allows an authorized reply when a legacy conversation has no customer profile; null means no safe direct recipient could be determined."
          },
          "messageId": {
            "type": "string",
            "description": "Canonical root message document identifier."
          },
          "conversationId": {
            "type": "string",
            "description": "Existing conversation_key used by the messaging projection."
          },
          "customerId": {
            "description": "Canonical message contact_id, when present.",
            "type": [
              "string",
              "null"
            ]
          },
          "direction": {
            "type": "string",
            "description": "Stored normalized inbound or outbound direction."
          },
          "channel": {
            "type": "string",
            "description": "communication channel."
          },
          "provider": {
            "type": "string",
            "description": "Transport provider name; no provider credentials are returned."
          },
          "text": {
            "type": "string",
            "description": "Current stored message body as untrusted text, limited to 4000 characters. It may differ from the original AI suggestion after a human edit. Markup is never executed; provider payloads are omitted."
          },
          "aiSuggestedReply": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "flowId": {
                    "description": "Stored source Flow ID, not inferred from timing.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "flowNodeId": {
                    "description": "Stored source node ID when recorded.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "promptVersion": {
                    "description": "SHA-256 of the effective versioned rules and reviewed examples when recorded.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "promptSource": {
                    "description": "flow_node or company_legacy when recorded.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "model": {
                    "description": "Stored model name.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "replyMessageId": {
                    "description": "Exact generated reply document ID when recorded; does not prove delivery.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "text": {
                    "type": "string",
                    "description": "Original stored ai_suggested_reply.text, before message edits; untrusted text limited to 8192 characters."
                  },
                  "truncated": {
                    "type": "boolean",
                    "description": "True when the stored AI suggestion exceeds the 8192-character MCP limit."
                  }
                },
                "required": [
                  "flowId",
                  "flowNodeId",
                  "promptVersion",
                  "promptSource",
                  "model",
                  "replyMessageId",
                  "text",
                  "truncated"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "Original AI suggestion for comparison with the current message text, or null when the source field is absent or invalid. This is not evidence that a message was sent."
          },
          "subject": {
            "type": "string",
            "description": "Stored email subject, limited to 200 characters; empty for messages without a subject."
          },
          "status": {
            "type": "string",
            "description": "Stored delivery status; queued or accepted does not mean delivered."
          },
          "sentAt": {
            "$ref": "#/$defs/_mcp1"
          },
          "lastStatusAt": {
            "$ref": "#/$defs/_mcp1"
          },
          "deliveryConfirmed": {
            "type": "boolean",
            "description": "True only for stored delivered or read status. False alone does not establish a failure."
          },
          "deliveryIssue": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "enum": [
                      "MESSAGE_WINDOW_CLOSED",
                      "MESSAGE_WINDOW_UNKNOWN",
                      "CHANNEL_RECONNECT_REQUIRED",
                      "CHANNEL_PERMISSION_REQUIRED",
                      "MESSAGE_RATE_LIMITED",
                      "MESSAGE_REJECTED",
                      "MESSAGE_DELIVERY_UNKNOWN"
                    ],
                    "description": "Stable delivery diagnostic code; an unknown failure does not establish a closed window."
                  },
                  "channel": {
                    "type": "string",
                    "enum": [
                      "whatsapp",
                      "instagram"
                    ],
                    "description": "Stored communication channel for this diagnosis."
                  },
                  "message": {
                    "type": "string",
                    "description": "Actionable Russian explanation with no raw provider error text."
                  },
                  "messages": {
                    "type": "object",
                    "properties": {
                      "ru": {
                        "type": "string",
                        "description": "Russian explanation."
                      },
                      "en": {
                        "type": "string",
                        "description": "English explanation."
                      }
                    },
                    "required": [
                      "ru",
                      "en"
                    ],
                    "additionalProperties": false,
                    "description": "Equivalent localized explanations."
                  },
                  "retryable": {
                    "type": "boolean",
                    "description": "Whether a confirmed rejected attempt allows a later retry; never initiates a send."
                  },
                  "humanActionRequired": {
                    "type": "boolean",
                    "description": "Whether a staff member must review the problem or choose a next action."
                  },
                  "nextActions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "SELECT_APPROVED_TEMPLATE",
                        "WAIT_FOR_NEW_INBOUND",
                        "HAND_OFF_TO_HUMAN_AGENT",
                        "REVIEW_CONVERSATION_IN_NATIVE_INBOX",
                        "RECONNECT_CHANNEL",
                        "REVIEW_CHANNEL_PERMISSIONS",
                        "RETRY_AFTER_BACKOFF",
                        "REVIEW_MESSAGE",
                        "CHECK_DELIVERY_STATUS",
                        "CONTACT_SUPPORT"
                      ],
                      "description": "Advisory next step, not a command or permission to send."
                    },
                    "description": "Possible recovery steps. These are never executed automatically."
                  }
                },
                "required": [
                  "code",
                  "channel",
                  "message",
                  "messages",
                  "retryable",
                  "humanActionRequired",
                  "nextActions"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "Safe diagnosis for a failed WhatsApp or Instagram message. Null does not establish successful delivery. Legacy records without structured error codes can only receive an unknown-failure diagnosis."
          }
        },
        "required": [
          "recipient",
          "messageId",
          "conversationId",
          "customerId",
          "direction",
          "channel",
          "provider",
          "text",
          "aiSuggestedReply",
          "subject",
          "status",
          "sentAt",
          "lastStatusAt",
          "deliveryConfirmed",
          "deliveryIssue"
        ],
        "additionalProperties": false
      },
      "description": "Up to 10 accessible linked messages when communications.read is granted."
    }
  },
  "required": [
    "customer",
    "contacts",
    "leads",
    "tasks",
    "orders",
    "messages"
  ],
  "additionalProperties": false,
  "$defs": {
    "_mcp1": {
      "anyOf": [
        {
          "$ref": "#/$defs/_mcp0"
        },
        {
          "type": "null"
        }
      ],
      "description": "Stored event time represented in UTC, or null when absent."
    },
    "_mcp0": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
    }
  }
}