Test a Flow Builder flow
Runs the flow once in test mode and returns the execution log. Without definition the saved draft runs. An event or agent_bot start runs on a real conversation (see context); a kanban_item_updated start runs on the account’s latest card that has a conversation, in that conversation, as a new card ({{ kanban.change }} created); a message_sent start reads the latest public message an agent sent there. A schedule start needs no conversation: it runs as schedule, as if its slot were now, whatever event_name says. Test runs send nothing and change nothing: messages, actions and waits only record what they would do (outgoing GET HTTP requests do run, and “Buscar cards” (kanban_search) really searches, since it only reads), a run_flow block records outcome would_call and starts nothing, and test runs are not counted in the flow’s daily runs. Administrator access is required.
Autorizações
Parâmetros de caminho
Corpo
All fields are optional. Without definition the saved draft definition runs.
Flow graph edited in the Flow Builder canvas. nodes holds the blocks (exactly one trigger node is required to publish),
edges connects the output handle of one block to another block, and metadata carries the schema version.
A flow may hold up to 100 nodes. Each block type reads its own keys from data.
Run context. conversation_id picks the conversation to run on; without it the most recently updated conversation
of the account (restricted to the trigger's inboxes when set) is used, and a kanban_item_updated start uses the
latest card that has a conversation (kanban_item_id, kanban_change created, kanban_funnel_id, kanban_stage,
kanban_status; keys given here win). inbox_id and message_id default from that conversation. inputs (an
object) is what a run_flow block would hand over, read as {{ inputs.<key> }}. A schedule start needs no
conversation: its slot is now, in the account's time zone, and the keys given here win.
Resposta
Test execution log.
Event that started the run: the start's event (conversation_created, conversation_updated, message_created, message_sent, social_comment_received, kanban_item_updated, or the legacy conversation_opened and conversation_resolved), schedule for a run of a schedule start, or flow_called for a run another flow's run_flow block started.
"message_created"
Run status. waiting means the flow is paused waiting for a reply or a timer. An error run without steps was never started (a start dropped by one run per contact, a scheduled slot that did not run): its error_message says why and the detail's stopped_reason gives the code.
running, success, error, waiting "success"
Why the run stopped before its graph did, from run_data.stopped_reason. A run that was never started is an error run without steps: run_lock_busy (a start of a one-run-per-contact flow still blocked after about one minute), slot_missed (no scheduler tick ran within 2 minutes of the slot), run_in_progress (a scheduled run of the flow was still going) or enqueue_failed (the scheduled run could not be queued). Slots missed together are one run per reason, for the latest slot, with run_data.context.missed_slots (how many) and first_missed_slot. window_closed means a message was outside the reply window; expired, flow_paused, flow_unavailable or superseded say why a waiting run was closed.
"run_lock_busy"
Full run log, including context, execution_mode (production or test), definition_snapshot, stopped_reason, vars and steps. vars holds what blocks with a result_name kept, by name ({{ vars.<name>.<key> }}); a test run keeps the same keys with sample or empty values. Once the run is not waiting, a result body over 16 KB is stored short (its first 50 top keys, each value cut to a 200-character preview), with body_truncated set to true and body_bytes holding the full size. A waiting run keeps it whole, since it resumes with it. A body redacted by redact_response drops both fields.
Flow graph edited in the Flow Builder canvas. nodes holds the blocks (exactly one trigger node is required to publish),
edges connects the output handle of one block to another block, and metadata carries the schema version.
A flow may hold up to 100 nodes. Each block type reads its own keys from data.