For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
User GuideDeveloper GuidesAPI Reference
User GuideDeveloper GuidesAPI Reference
  • Getting Started
    • What is Runtype?
    • Creating your account
    • Platform keys vs. BYOK
    • Understanding the Runtype UI
    • Quickstart: Social Media Post Generator
    • Quickstart: From Agent to Chat Widget
  • Dashboard
    • What is the Dashboard?
    • Daily executions
  • Playground
    • What is the Playground?
  • Products & Surfaces
    • What are Products?
    • What are Surfaces?
    • Creating a product
    • Setting up a chat surface
    • Setting up an API surface
    • Setting up an MCP surface
    • Setting up an A2A surface
    • Setting up a Slack surface
    • Setting up a webhook surface
    • MCP authentication
    • Authenticating with product API keys
    • Embedding the chat widget (script tag)
    • Embedding the chat widget (React)
    • Surface orchestration modes
    • Product views
    • Adding capabilities to a product
    • Connecting external agents
    • How A2A works
    • Connecting to MCP clients
    • Scoping API keys to capabilities
    • Auto-generated OpenAPI spec
    • Calling your API endpoints
    • Client tokens and domain restrictions
    • AI-powered theme generation
    • Widget theming and customization
    • Product versioning and status
  • Flows
    • What are Flows?
    • Creating and editing flows
    • Flow step types overview
    • Agent and flow templates
    • Using prompt steps
    • Using transform-data steps
    • Using conditional steps
    • Using fetch-url and api-call steps
    • Using record steps (upsert/retrieve)
    • Flow variables and templates
    • Flow versioning and publishing
    • Running flows in batch
    • Handling batch failures
    • Debugging flows
  • Agents
    • What are Agents?
    • Creating and configuring agents
    • Agent tools
  • Records
    • What are Records?
    • Creating and managing records
    • Using records in flows
    • Filtering and searching records
  • Tools
    • What are Tools?
    • Built-in tools
    • Creating custom tools
    • Creating external tools
    • Runtime tools
  • Evals
    • What are Evals?
    • Running an eval
    • Interpreting eval results
  • Schedules
    • What are Schedules?
    • Automating batch processing
  • Logs
    • What are Logs?
    • Working with logs
  • Integrations
    • Connecting AI model providers
    • Slack integration
    • Google Workspace integration
    • GitHub integration
    • Linear integration
    • Weaviate (vector search)
    • Firecrawl (web scraping)
    • Exa (web search)
    • Braintrust (tracing)
  • Settings
    • What's in Settings?
    • Available AI models
    • What are Organizations?
    • Managing AI models
    • Managing API keys
    • Managing secrets
    • Billing and plans
    • Usage data
    • Team members and permissions
    • Appearance and preferences
    • Integrations (PostHog, Weaviate, Daytona)
  • Troubleshooting & FAQ
    • FAQ
    • Rate limits and usage
    • Managing Runtype with Claude
    • Agent skills
    • Flow execution failures
    • Common errors and solutions
    • Authentication issues
Dashboard
LogoLogo
On this page
  • Add a prompt step
  • Writing prompts
  • Using template variables
  • Model selection
  • Parameters
  • Temperature
  • Max tokens
  • System prompt
  • Advanced sampling parameters
  • Reasoning (extended thinking)
  • Accessing output
  • Error handling
  • Best practices
  • Next steps
Flows

Using prompt steps

Was this page helpful?
Previous

Using transform-data steps

Next
Built with

Prompt steps call AI models to generate text, analyze data, or answer questions. They’re the core building block of AI workflows.

Add a prompt step

  1. In the Flow editor, click Add Step
  2. Select Prompt
  3. Configure:
    • Name: Descriptive label (e.g., “Generate summary”)
    • Model: Select an AI model
    • Prompt: Write your prompt text
  4. Click Save Step

Writing prompts

Use natural language to instruct the AI. Be specific about what you want:

Weak:

Summarize this.

Better:

Summarize the following customer email in 2-3 sentences.
Focus on the main request and any urgency indicators.
Email: {{email_text}}

Using template variables

Reference Flow inputs and previous step outputs with {{variable}} syntax:

You are a customer support Agent for {{company}}.
Customer message: {{customer_message}}
Customer tier: {{customer_data.tier}}
Previous interactions: {{customer_data.interaction_count}}
Provide a helpful, professional response.

Variable names come from the inputs field when triggering the Flow or from the outputVariable field of previous steps.

Model selection

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.

Parameters

Fine-tune model behavior:

Temperature

Controls randomness (0-2):

  • 0-0.3: Deterministic, consistent (good for classification, extraction)
  • 0.7: Balanced (default for most tasks)
  • 0.9-1.0: Creative, varied (good for content generation)
  • 1.0-2.0: Highly creative (use with caution, can produce less coherent output)

Max tokens

Limits response length. Set conservatively to control costs.

System prompt

Optional instructions that set the AI’s behavior for the entire conversation. Use for role definition or global rules.

Advanced sampling parameters

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.

ParameterRangeWhat it does
Top P (topP)0–1Nucleus sampling. Restricts the model to the most probable tokens whose combined probability reaches this value. Lower is more focused.
Top K (topK)1–500Restricts sampling to the K most likely tokens at each step.
Frequency penalty (frequencyPenalty)-2 to 2Positive values discourage repeating the same tokens.
Presence penalty (presencePenalty)-2 to 2Positive values encourage the model to introduce new topics.
Seed (seed)integerRequests reproducible output — the same prompt and seed return the same result, where the provider supports it.

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.

Reasoning (extended thinking)

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:

ProviderControlValues
OpenAI (GPT-5, o-series)Reasoning effortminimal, low, medium, high (xhigh on GPT-5.1-Codex-Max)
OpenAI (GPT-5)Reasoning summaryauto or detailed — auto is required to stream reasoning
Anthropic (Claude 4)Thinking budgetA token budget for extended thinking
Google (Gemini 2.5, 3)Thinking budgetA token budget for thinking

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.

Accessing output

Each prompt step has an outputVariable in its configuration. Reference that variable in later steps:

{{summary_result}}

If the prompt returns JSON (responseFormat: json), access specific properties with dot notation:

{{extract_data.customerName}}
{{extract_data.orderAmount}}

The variable name comes from the step’s outputVariable field, not the step name.

Error handling

Prompt steps can fail if:

  • API quota exceeded
  • Model rate limits hit
  • Invalid API keys
  • Prompt too long for model context

Each prompt-step card has an error-handling control that sets what happens when the step fails:

  • Continue on error skips the failed step and continues running the rest of the Flow.
  • Stop on error halts the Flow immediately.
  • Use fallbacks tries a chain of alternatives before giving up.

A fallback chain runs each fallback in order until one succeeds. Each fallback is one of three types:

  • Retry re-runs the same model.
  • Different model switches to a backup model, with an optional temperature and max tokens override.
  • Fixed message returns a pre-written reply without calling a model. Use this as the last fallback so the step always produces a reply.

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.

Best practices

  • Be specific: Clear instructions produce better results
  • Provide examples: Show the AI what you want with examples
  • Structure output: Ask for JSON or specific formats when needed
  • Keep context concise: Don’t include unnecessary information in prompts
  • Test variations: Use Evals to compare different prompts and models

Next steps

  • Flow variables and templates for advanced variable usage
  • Using transform-data steps to process AI outputs
  • Running an Eval to test prompt variations