Skip to main content
The LLMNode class sends an instruction to a Claude model and captures the response. It supports template variables so you can inject dynamic data from workflow inputs or previous nodes.

Constructor

Parameters

Supported Models

Template Variables

Use {{variable}} syntax to inject dynamic values into the instruction:

Available Variable Sources

Selecting a Model

Temperature

Controls randomness. Range is 0.0 to 1.0:

Max Tokens

Limit how long the response can be:

Dependencies

Control execution order by declaring which nodes must finish before this one runs:
You can also use the fluent .depends_on() method:

Retry Configuration

Enable retries using enable_retry=True or the fluent .with_retry() method:

Conditional Execution

Run this node only when a condition is met using .with_condition():

YAML Configuration

Complete Example