Debug Flow
Common Bugs and How to Read Their Error Messages
Section titled “Common Bugs and How to Read Their Error Messages”Save Errors
Section titled “Save Errors”| Symptoms when saving | Meaning | Fix |
|---|---|---|
Flow contains a circular reference involving node 'X' | There is an edge creating a back-edge in the DAG. | Find the edge whose target can return to its source. Replace it with an end resolve_conversation + re-entry via keyword. |
Unknown node type 'foo' | Unknown node type. | Old builder version or a typo. Recreate the node from the palette. |
every option must have an outgoing edge | The question node has no connected edge. | Drag an edge from each per-option handle to the target. |
Runtime Errors
Section titled “Runtime Errors”| Runtime symptoms | Meaning | Fix |
|---|---|---|
| ”Sorry, I didn’t understand. Please choose one of the available options.” | find_next_node_id could not match the question reply. | The button has no outgoing edge with sourceHandle == option.id. Or the rule condition is checking the wrong variable (user_message instead of button_id). |
| The next node fires before the document arrives | Use wait (seconds) instead of waitForDelivery. Uploading a document takes 5–10 seconds. | Replace wait(2) with waitForDelivery(wait_for=delivered, timeout_seconds=30). |
| Keyword trigger does not fire | The contact has a paused run that is swallowing inbound messages. | End the previous flow with resolve_conversation. |
| The flow ends silently after the third message | The node has no outgoing edge — the engine treats it as the end of the flow. | Open the flow, click each node, and verify the outgoing edges. |
{{my_var}} displays literally as text | The variable does not exist at that point in the flow. | Check the spelling. Check that the upstream node actually writes that variable. |
| The flow stalls forever waiting for a webhook | correlationIdTemplate not substituted, or the external system did not POST to the correct URL. | Open the run drill-down. See inputs from step waitForWebhook — correlation_id must be a real value, not flow__. |
Debugging a Flow That Doesn’t Run
Section titled “Debugging a Flow That Doesn’t Run”The Run Drill-Down is your first stop. Every run records every executed step along with inputs, outputs, and duration in the BO panel (or the portal Activity tab for tenants with access).
- Send the trigger from the test number — keyword, first inbound, etc.
- Open the run. Verify status:
running— still executing.stalled— paused at the pause node.paused_at_node_typetells you where.completed— reached the end node successfully.failed— an error node. Check the columnerror.
- Trace through its steps. Each step has
inputs(the variables the node saw) andoutputs(what it wrote). - Compare expected vs actual at branch points. Output of node
conditionnode includes which rule matched (ordefaultif none). - If a run stalls forever — check the variable snapshot at the pause node.
waitForWebhookwithcorrelation_id = "flow__"means the template variable was not populated — add asetVariableupstream. - If the run completed but the user got the wrong message — check the variable value in
inputsstepsendMessage/sendMedia. Substitution may have written an empty string somewhere.