Skip to content

Runtime Guide

The runtime guide explains how a visual AI Workflow becomes a graph of nodes and edges that executes, waits, resumes, logs, and surfaces debugging information in Interactions.

TermDefinition
GraphThe runtime representation of a workflow version.
NodeA workflow stencil such as Start, AI Agent, Tool, Function, Wait, If/else, Transfer, or End.
EdgeA connection from one node output port to another node input port.
PortA named input or output on a node. Dynamic ports can represent exit conditions or branches.
Execution logRuntime evidence showing which nodes ran and where the flow paused or failed.
ActionDescription
Understand graph shapeRead how nodes and edges map to builder stencils.
Debug wait and resumeFollow an execution that pauses and later receives an event.
Interpret failuresIdentify whether a failure came from configuration, a tool, runtime code, or an external provider.
Connect UI and API behaviorUse Interactions, workflow versions, and developer APIs together.

A workflow version executes as nodes connected by edges.

{
"nodes": [
{
"id": "start",
"type": "flow-engine-start",
"label": "Start",
"config": {}
},
{ "id": "agent", "type": "ai-agent", "label": "AI Agent", "config": {} }
],
"edges": [
{
"id": "edge-1",
"source": { "nodeId": "start", "portId": "out" },
"target": { "nodeId": "agent", "portId": "in" }
}
]
}
Builder conceptRuntime concept
Start nodeInitial node that receives the first event.
AI Agent stencilLLM step that can respond, call tools, use variables, and choose exit paths.
Tool stencilRuntime call to a configured Tool.
Function stencilJavaScript execution step.
Wait stencilPause point that expects a later resume event.
If/else stencilCondition node with branch output ports.
Transfer stencilHandoff to a configured Contact or voice transfer target.
End stencilTerminal node for the execution.
  1. An entry point, test panel, or API request starts an execution with payload and context.
  2. The runtime loads the workflow graph and starts at the Start node.
  3. Each node receives context, updates state, and selects the next output port.
  4. Tool and Function nodes can call external systems or custom JavaScript.
  5. Wait nodes pause execution until a resume event arrives.
  6. End nodes finalize the flow; interaction APIs can then finalize the conversation record.
  7. Logs and transcript details appear in Interactions when the execution is tied to an interaction.
FailureWhat it usually meansWhere to look
Missing next nodeA port is not connected or a branch was not handled.Workflow Builder canvas.
Tool failureExternal API, credentials, template variables, timeout, or response parsing failed.Tool test modal and interaction tool-call details.
Function failureScript threw an error or returned an unexpected shape.Function stencil configuration and runtime logs.
Wait never resumesThe expected user or integration event did not arrive.Entry point, resume API call, interaction transcript.
Voice failureTelephony provider, phone number, or recording setup failed.Phone Numbers, Entry Points, voice interaction details.
  1. Open the interaction created by the entry point, test panel, or API flow.
  2. Confirm the workflow version and channel.
  3. Read the transcript from oldest to newest.
  4. Expand tool calls and metadata sections.
  5. Open the workflow version and compare the highlighted execution path with the current graph.
  6. If a published workflow must change, create a new draft, fix it, and publish a new version.

Do edits to a draft change in-progress executions? No. In-progress executions stay tied to the workflow version they started with.

Why does an AI Agent have multiple output ports? Exit conditions and branch-like behavior can create dynamic ports, allowing the agent to choose a path based on the conversation and configuration.