Skip to main content

LLM4B Workflow Builder Guide

Author, patch, compile, and validate LLM4B workflows using the semantic authoring spec, node catalog, wiring rules, and dry-run diagnostics.

Workflow Authoring

LLM4B Workflow Builder Guide

Use this skill when creating, modifying, validating, or explaining a workflow graph.

Authoring Workflow

  1. Inspect the active scope first: call list_workflows (or get_workflow for an existing workflow) and get_node_catalog to discover built-in nodes and workspace reusable components (component:<uuid>).
  2. Call get_node_schema for any node type whose exact ConfigFields (types, defaults, enum options) or Ports you need to verify before authoring.
  3. Read How Diagram Definitions Work for layout vs. executable graph JSON, traversal, branching, and validation modes.
  4. Read How Data Flows Between Nodes for __initial__ inputs, explicit vs. inferred Data Wires, FileRef handling, Parallel Fan-out, and Sub-Workflow isolation.
  5. Read Node Catalog and Wiring for canonical node types, port indices, and copy-ready WorkflowAuthoringSpec / WorkflowGraphPatch JSON examples.
  6. Read Expression and I/O Rules for accessing diagram fields from every node ({{key}} templates, JMESPath, state keys, Python context) and the complete node I/O matrix.
  7. Always run compile_workflow or apply_workflow_patch_dry_run before persisting changes when building complex graphs, fixing any Error diagnostics first.
  8. Persist changes using create_workflow, update_workflow, or apply_workflow_patch. Never emit raw canvas coordinates manually—the deterministic compiler computes clean topological layouts automatically.