Коммуникации · Чтение
Сообщения · Просмотр
message_get
Попробуйте три запроса
Получить данные
- Вы указываетеMessageid
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Сообщения / Просмотр» выполни чтение по выбранной записи (messageId). Выведи кратко: recipient, messageId.
- recipient
- Поле ответа
- messageId
- Поле ответа
- conversationId
- Диалог
Задать параметры
- Вы указываетеMessageid
- ПомощникСверка выбора
- Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Сообщения / Просмотр» на учебном примере с messageId = DEMO-101. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
- messageId
- DEMO-101
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Сообщения / Просмотр» объясни recipient, messageId. Отметь отсутствующие значения.
- recipient
- Поле ответа
- messageId
- Поле ответа
- conversationId
- Диалог
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании.
Описание разработчика
Read one message, its separately stored original AI suggestion when present, and its latest stored delivery outcome in the connected workspace. Compare aiSuggestedReply.text with text to review edits without changing either value. Use messageId from communications_send or messages_search to check delivery after queueing. For failed WhatsApp or Instagram messages, returns safe recovery guidance when the structured error code is available. Does not resend, reconnect or bypass provider messaging windows.
Параметры запроса
- messageId
- Canonical message identifier returned by a search action in the currently connected workspace. Never construct it from a display name. обязательно по схеме · string · до символов 160
Что вернёт команда
- recipient
- 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. обязательно по схеме · object / null
- messageId
- Canonical root message document identifier. обязательно по схеме · string
- conversationId
- Existing conversation_key used by the messaging projection. обязательно по схеме · string
- customerId
- Canonical message contact_id, when present. обязательно по схеме · string / null
- direction
- Stored normalized inbound or outbound direction. обязательно по схеме · string
- channel
- communication channel. обязательно по схеме · string
- provider
- Transport provider name; no provider credentials are returned. обязательно по схеме · string
- text
- 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. обязательно по схеме · string
- aiSuggestedReply
- 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. обязательно по схеме · object / null
- subject
- Stored email subject, limited to 200 characters; empty for messages without a subject. обязательно по схеме · string
- status
- Stored delivery status; queued or accepted does not mean delivered. обязательно по схеме · string
- sentAt
- Stored event time represented in UTC, or null when absent. обязательно по схеме · null
- lastStatusAt
- Stored event time represented in UTC, or null when absent. обязательно по схеме · null
- deliveryConfirmed
- True only for stored delivered or read status. False alone does not establish a failure. обязательно по схеме · boolean
- deliveryIssue
- 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. обязательно по схеме · object / null
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"messageId": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Canonical message identifier returned by a search action in the currently connected workspace. Never construct it from a display name."
}
},
"required": [
"messageId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"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,
"$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))$"
}
}
}