Skip to main content
Updated Aug 4, 2026

Generate LLM Response

Use this action when you want a workflow step or agent action to send a prompt directly to an LLM and reuse the result in later steps.

Best for

  • Summaries, classifications, rewrites, and extraction tasks
  • Turning raw API data into natural language
  • Producing structured output that later steps can read reliably

Main fields

FieldWhat it does
Advanced modeSwitches between a simple prompt and a fully configured message-based request
PlatformChooses the LLM provider
ModelChooses the specific model to run (hidden when Platform is OpenRouter — use OpenRouter model instead)
OpenRouter modelThe model identifier to run on OpenRouter. Shown and required only when Platform is OpenRouter
API keyLets you override the default key when needed. Required when Platform is OpenRouter (bring your own key)
TextSimple prompt field for basic use cases
MessagesAdvanced prompt format with multiple roles and content types
Enable Structured OutputsLets you define a schema so the model returns predictable JSON. On its own this still returns plain text — you must also set Structured Output Schema
Structured Output SchemaA CEL expression that evaluates to a JSON-Schema string. Required for structured output; without it the toggle returns plain text
Structured Output Schema NameOptional name for the schema (defaults to output)
TemperatureControls how predictable or creative the output is
Maximum tokensLimits the size of the answer
PurposeOptional label for what this step is for, shown in logs (advanced mode only)

Model, Temperature, Maximum tokens, and the structured-output fields only appear when Advanced mode is turned on; in simple mode you only see Platform, API key, and Text. OpenRouter model appears whenever Platform is OpenRouter.

What later steps can use

The response is available at:

  • step(N).choices
  • step(N).choices[0].message.content

With structured outputs enabled, message.content is returned as a parsed JSON object, so later steps can read its keys directly in conditions, updates, and message templates.

Tips

  • Use the simple Text field when you only need one prompt.
  • Switch to Advanced mode when you need multiple messages, images, audio, or files.
  • Use structured output when later steps need stable keys like category, score, or summary — remember to enable the toggle and set Structured Output Schema (a CEL expression that returns a JSON-Schema string).
  • Debug the step before you build follow-up conditions on the result.
On this page