Автоматизации · Изменение
Flow · Тестирование · Документы
flows_test_document
Попробуйте три запроса
Подготовить
- Вы указываетеСценарий
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Flow / Тестирование / Документы». Для изменения нужны сценарий, testPayload. Покажи объект и ожидаемый эффект до выполнения.
- flowId
- Сценарий
- testPayload
- Параметр
- nodeId
- Параметр
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Flow / Тестирование / Документы» с параметром flowId = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- flowId
- DEMO-101
- entryItemId
- DEMO-101
- nodeId
- DEMO-101
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Flow / Тестирование / Документы» по исходному ответу. Покажи сценарий, nodeId. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.
Описание разработчика
Run the existing effect-blocked test of a DISABLED Flow at an exact revision, then render ONLY the reached pdf document node using the canonical document backend. On errors use system_logs_search; read sabsus_get_master_prompt topic=automations for diagnosis. Creates a real expiring, revocable PDF; all other business/provider effects stay blocked. Never activates the Flow. Reuse requestId to recover the same artifact; clean up with documents_revoke_export.
Параметры запроса
- flowId
- Native company Flow ID. обязательно по схеме · string
- expectedRevision
- Версия, прочитанная перед изменением. обязательно по схеме · string
- entryItemId
- Exact enabled trigger/webhook node. Required for multiple enabled entries. необязательно · string
- testPayload
- Non-secret representative native trigger data, up to 32 KiB. Values must match actual entity schemas. обязательно по схеме · object
- testQuery
- Non-secret synthetic webhook query parameters. Values are strings or string arrays as in an HTTP query; separate from testPayload (body). Up to 32 KiB and 100 keys. Never sent to a provider. необязательно · object
- mockOutputs
- Optional non-secret synthetic responses keyed by enabled external action/crypto node ID, at most 100 entries and 32 KiB total. HTTP values are response bodies and pass through native output mappings; other values are the native handler output. Used only in this safe test, never saved into Flow or sent to a provider. Use different fixtures to exercise downstream branches. необязательно · object
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
- nodeId
- Enabled PDF node that the native dry-run must reach. обязательно по схеме · string
Что вернёт команда
- flowId
- Native Flow ID. обязательно по схеме · string
- nodeId
- Native PDF action node. обязательно по схеме · string
- revision
- Native Flow revision captured before rendering. обязательно по схеме · string
- environment
- Explicit document test or an already active native Flow invocation. обязательно по схеме · string · варианты test, production
- productionActivated
- This operation never changes Flow activation. обязательно по схеме · boolean
- document
- Canonical protected PDF artifact. Use documents_revoke_export to clean up. обязательно по схеме · object
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"flowId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Native company Flow ID."
},
"expectedRevision": {
"type": "string",
"pattern": "^fsv1:-?\\d{1,12}:\\d{1,9}$",
"description": "Exact Flow revision tested; never a production execution revision."
},
"entryItemId": {
"description": "Exact enabled trigger/webhook node. Required for multiple enabled entries.",
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$"
},
"testPayload": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
},
"description": "Non-secret representative native trigger data, up to 32 KiB. Values must match actual entity schemas."
},
"testQuery": {
"description": "Non-secret synthetic webhook query parameters. Values are strings or string arrays as in an HTTP query; separate from testPayload (body). Up to 32 KiB and 100 keys. Never sent to a provider.",
"type": "object",
"propertyNames": {
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9_.-]{0,99}$"
},
"additionalProperties": {
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"maxLength": 2000
}
}
]
}
},
"mockOutputs": {
"description": "Optional non-secret synthetic responses keyed by enabled external action/crypto node ID, at most 100 entries and 32 KiB total. HTTP values are response bodies and pass through native output mappings; other values are the native handler output. Used only in this safe test, never saved into Flow or sent to a provider. Use different fixtures to exercise downstream branches.",
"type": "object",
"propertyNames": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$"
},
"additionalProperties": {
"$ref": "#/$defs/__schema1"
}
},
"requestId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Stable ID for this revision and payload. Retry unchanged to recover the original test result."
},
"nodeId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Enabled PDF node that the native dry-run must reach."
}
},
"required": [
"flowId",
"expectedRevision",
"testPayload",
"requestId",
"nodeId"
],
"additionalProperties": false,
"$defs": {
"__schema0": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
}
]
},
"__schema1": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema1"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema1"
}
}
]
}
}
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"flowId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Native Flow ID."
},
"nodeId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Native PDF action node."
},
"revision": {
"type": "string",
"description": "Native Flow revision captured before rendering."
},
"environment": {
"type": "string",
"enum": [
"test",
"production"
],
"description": "Explicit document test or an already active native Flow invocation."
},
"productionActivated": {
"type": "boolean",
"const": false,
"description": "This operation never changes Flow activation."
},
"document": {
"type": "object",
"properties": {
"exportId": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "Server-issued PDF export identifier; never a Storage path."
},
"documentId": {
"type": "string",
"description": "Canonical native document identifier."
},
"orderId": {
"description": "Canonical order used to fill this document, when present.",
"type": "string"
},
"documentRevision": {
"type": "string",
"description": "Exact native document layout revision captured by this export."
},
"status": {
"type": "string",
"enum": [
"ready",
"rendering",
"failed",
"revoked",
"expired"
],
"description": "Current export lifecycle status. Only ready exports can be downloaded."
},
"mimeType": {
"type": "string",
"const": "application/pdf",
"description": "The exported file is a real PDF."
},
"byteLength": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Size of the finished PDF, or zero before rendering completes."
},
"sha256": {
"description": "PDF content hash for verification, or null before completion.",
"type": [
"string",
"null"
]
},
"filename": {
"type": "string",
"description": "Safe download filename."
},
"createdAt": {
"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": "UTC creation time."
},
"expiresAt": {
"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": "UTC expiry; downloads are denied after this time even before cleanup runs."
},
"downloadUrl": {
"anyOf": [
{
"type": "string",
"format": "uri"
},
{
"type": "null"
}
],
"description": "Authenticated GET endpoint for a ready PDF. Send the current workspace bearer token; no signing token or PDF bytes are returned in tool output."
}
},
"required": [
"exportId",
"documentId",
"documentRevision",
"status",
"mimeType",
"byteLength",
"sha256",
"filename",
"createdAt",
"expiresAt",
"downloadUrl"
],
"additionalProperties": false,
"description": "Canonical protected PDF artifact. Use documents_revoke_export to clean up."
}
},
"required": [
"flowId",
"nodeId",
"revision",
"environment",
"productionActivated",
"document"
],
"additionalProperties": false
}