Skip to contentSkip to page list

Docs

Workflows

Build LLM pipelines from prompts, Python code, HTTP calls and evaluators in a visual editor, run them on a dataset, and publish them as evaluators, agents or API endpoints.

On this page

What a workflow is

A workflow is a graph of nodes that LangWatch runs from an Entry point to an End node. Each node takes named inputs, produces named outputs, and an edge connects an output of one node to an input of the next. Workflows live under Build, Workflows in the LangWatch sidebar.

For example, the workflow below answers a support question with a prompt, checks the answer length in a Python node, and asks an LLM judge whether the answer addresses the question. The End node collects the answer, the length check and the verdict.

The workflow editor with an Entry point, an LLM Call, a Code node, an evaluator and an End node

The editor autosaves every change. You save a numbered version when you evaluate or publish, and you can restore any earlier version.

When to use a workflow

GoalHow
Run a prompt against a dataset and read the per-row resultsAttach the dataset to the Entry point and click Evaluate. See Building a workflow.
Score your agent with logic a single evaluator does not coverPublish the workflow as an evaluator and pick it in online evaluations or experiments. See Workflow as evaluator.
Test a multi-step pipeline with simulated conversationsRegister the workflow as a Workflow Agent in Agent Testing. See Workflow as agent.
Call the pipeline from your own codePublish the workflow and call the Workflows API with the entry inputs.

Building a workflow

Create a workflow, configure each node, run it and read the results.

Workflow as evaluator

Publish a workflow so it scores outputs like a built-in evaluator.

Workflow as agent

Use a workflow as the target of your agent tests.

Prompts in workflows

Use a prompt from the prompt library in an LLM node.

Documentation