Prompt steps call AI models to generate text, analyze data, or answer questions. They’re the core building block of AI workflows.
Use natural language to instruct the AI. Be specific about what you want:
Weak:
Better:
Reference Flow inputs and previous step outputs with {{variable}} syntax:
Variable names come from the inputs field when triggering the Flow or from the outputVariable field of previous steps.
Different models have different strengths. Use the routed model format (e.g., claude-sonnet-4-6, gpt-5.4-mini, gemini-3-1-flash-lite) so your Flows stay current as models are updated. Choose based on task complexity, speed requirements, and cost.
Fine-tune model behavior:
Controls randomness (0-2):
Limits response length. Set conservatively to control costs.
Optional instructions that set the AI’s behavior for the entire conversation. Use for role definition or global rules.
Open the model’s advanced settings for finer control over how the model selects tokens. Each parameter shows Use model default until you turn it on, so you only override what you set deliberately.
Not every provider supports every parameter. The editor shows only the parameters the selected model’s provider accepts — for example, Anthropic models expose Top P and Top K but not the penalties or seed. Leave a parameter on Use model default to use the provider’s own recommended value.
Some models can spend extra effort working through a problem before they answer — OpenAI’s GPT-5 and o-series, Anthropic’s Claude 4 models, Google’s Gemini 2.5 and 3, and reasoning models from xAI, Together AI, and Groq. When you select a reasoning-capable model, the editor shows a reasoning control. Non-reasoning models hide it entirely.
Turn reasoning on to let the model think before responding. Depending on the provider, you can also tune how much effort it spends:
Higher effort and larger budgets improve results on hard tasks (complex reasoning, multi-step math, code) at the cost of more tokens and slower responses. For simple extraction or classification, leave reasoning off.
Test prompts in the Playground before adding to Flows. This lets you iterate quickly without running the entire Flow each time.
Each prompt step has an outputVariable in its configuration. Reference that variable in later steps:
If the prompt returns JSON (responseFormat: json), access specific properties with dot notation:
The variable name comes from the step’s outputVariable field, not the step name.
Prompt steps can fail if:
Each prompt-step card has an error-handling control that sets what happens when the step fails:
A fallback chain runs each fallback in order until one succeeds. Each fallback is one of three types:
You also choose what triggers the chain. The step errors runs fallbacks when the step fails outright. The reply is empty runs them when a model finishes successfully but returns no visible text. You can enable both triggers at once.