Коммуникации · Чтение
Коммуникации · Результат операции «изображение»
communications_get_generated_image_result
Попробуйте три запроса
Получить данные
- Вы указываетеОбъект
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Коммуникации / Результат операции «изображение»» выполни чтение по выбранной записи (объект). Выведи кратко: состояние, результат.
- state
- Состояние
- result
- Результат
После обрыва
- Вы указываетеПервоначальный ключ
- ПомощникПоиск квитанции
- Вы получаетеСостояние операции
Запрос в чат
Найди результат «Коммуникации / Результат операции «изображение»» по ключу первоначальной попытки. Покажи состояние операции и раздели подтверждённые и пока неизвестные данные.
- 1
- Взять исходный ключ
- 2
- Проверить квитанцию
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Коммуникации / Результат операции «изображение»» объясни состояние, результат. Отметь отсутствующие значения.
- state
- Состояние
- result
- Результат
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании. Для поиска результата возьмите идентификатор из первоначальной попытки. Сохраните исходные аргументы.
Описание разработчика
Read the exact managed image result for a prior communications_generate_image request. No GPT request or upload is started.
Параметры запроса
- entityType
- Existing recipient customer, or the active company for a reusable image. Customer images require current customer media access. обязательно по схеме · string · варианты customer, company
- entityId
- Exact existing customer ID, or the authenticated company ID. Never a name or external address. обязательно по схеме · string · до символов 128
- prompt
- Image brief sent to the existing company GPT service. обязательно по схеме · string · до символов 4000
- imageModel
- Optional company-configured image model; omit for the native default. необязательно · string
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string · до символов 128
Что вернёт команда
- state
- Durable generation state; a pending request is never sent to GPT again. обязательно по схеме · string · варианты not_found, processing, completed
- result
- Completed managed image reference, or null while missing or processing. обязательно по схеме · object / null
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"entityType": {
"type": "string",
"enum": [
"customer",
"company"
],
"description": "Existing recipient customer, or the active company for a reusable image. Customer images require current customer media access."
},
"entityId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Exact existing customer ID, or the authenticated company ID. Never a name or external address."
},
"prompt": {
"type": "string",
"minLength": 1,
"maxLength": 4000,
"description": "Image brief sent to the existing company GPT service."
},
"imageModel": {
"description": "Optional company-configured image model; omit for the native default.",
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{0,79}$"
},
"requestId": {
"type": "string",
"minLength": 8,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_-]+$",
"description": "Stable original request ID. Use result lookup after uncertainty; never change it to repeat the provider call."
}
},
"required": [
"entityType",
"entityId",
"prompt",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"state": {
"type": "string",
"enum": [
"not_found",
"processing",
"completed"
],
"description": "Durable generation state; a pending request is never sent to GPT again."
},
"result": {
"anyOf": [
{
"type": "object",
"properties": {
"mediaId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Completed managed image. Pass attachments:[{mediaId}] to communications_send for an authorized recipient and integration."
},
"entityType": {
"type": "string",
"enum": [
"customer",
"company"
],
"description": "Existing recipient customer, or the active company for a reusable image. Customer images require current customer media access."
},
"entityId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Exact existing customer ID, or the authenticated company ID. Never a name or external address."
},
"mimeType": {
"type": "string",
"enum": [
"image/jpeg",
"image/png",
"image/webp"
],
"description": "Sanitized image MIME type."
},
"byteLength": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 2560000,
"description": "Verified managed image size, within the native message attachment limit."
},
"model": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Model reported by aiBridge."
},
"url": {
"type": "string",
"format": "uri",
"description": "Stable authenticated image link; requires the current account and media rights."
},
"cloudflareUrl": {
"type": "string",
"format": "uri",
"description": "Direct Cloudflare R2 GET link, valid for 15 minutes. Treat as a bearer link and share only with the intended recipient."
},
"cloudflareUrlExpiresAt": {
"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))$",
"description": "Expiry of cloudflareUrl; use communications_get_generated_image_result to obtain a fresh link."
}
},
"required": [
"mediaId",
"entityType",
"entityId",
"mimeType",
"byteLength",
"model",
"url",
"cloudflareUrl",
"cloudflareUrlExpiresAt"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Completed managed image reference, or null while missing or processing."
}
},
"required": [
"state",
"result"
],
"additionalProperties": false
}