Workflows let you chain operations into a pipeline: prompts, scripts, data transformations, branching logic, loops, parallel execution. You build them visually on a canvas and run them as a single unit. If prompts are individual instruments, workflows are the orchestra.Documentation Index
Fetch the complete documentation index at: https://docs.promptjuggler.com/llms.txt
Use this file to discover all available pages before exploring further.
The workflow page
The layout mirrors the prompt page: editor on the left, run pane on the right. At the top: name, slug, history, and evaluations – same as prompts. Below that, the revision bar with version selection, publish, undo/redo, autosave, and save. Below the revision bar: the canvas, filling the rest of the screen. This is where you build.The canvas
The canvas is a drag-and-drop node editor. Add nodes from the + button at the bottom right, then wire them together by dragging connections between their handles. Data flows left to right. Each node has input handles on the left and output handles on the right. Connect an output to an input and data moves between them when the workflow runs. Everything is a string. Structured data travels as JSON strings. You don’t need to define schemas between nodes – the transformation nodes (String, Array, JSON Query) help you reshape data along the way. It’s deliberately simple: if you can read a JSON blob, you can understand what’s flowing through your workflow.
Skipping and merging
When a control flow node doesn’t activate an output, the entire downstream branch is marked as skipped. Skipped nodes produce no output and consume no resources. When multiple edges wire into the same input handle, the values merge. If two active branches both feed into a summary prompt, their outputs arrive as a JSON array. If one of those branches was skipped (say, by an If or Switch upstream), it’s simply ignored – only the active branch’s output arrives. A single active value stays as-is, no wrapping. No nulls to handle, no special cases.Node types
Every node does one thing well. Wire them together and the possibilities multiply.| Category | Nodes | What they do |
|---|---|---|
| Data | Input, Output, Value | Get data in, get data out, define constants |
| Execution | Prompt, Workflow | Run a prompt or nest another workflow |
| Knowledge | KB Search | Query a knowledge base |
| Code | Script | Run custom code in a secure sandbox |
| Transform | String, Array, JSON Query | Reshape, extract, and combine data |
| Parallel | Fanout | Process items in parallel |
| Control | If, Switch | Conditional branching |
| Iteration | Loop | Repeat operations |
| Validation | Assertion | Validate conditions during evaluation |
