Skip to main content

AI Text

Sends a prompt to an AI language model and returns the text response. Use this node for tasks like summarisation, classification, data extraction, translation, or any prompt-in / text-out operation.

Properties

PropertyRequiredDescription
ModelNoThe language model to use. Defaults to the model configured in your deployment settings
System PromptNoInstructions that shape how the model responds (its "role" or persona). Supports expressions
User MessageYesThe prompt to send to the model. Supports expressions

Model options

OptionModel ID
Default (configured)Uses the model set in OpenRouter.Model in your deployment config
Claude 3.5 Sonnetanthropic/claude-3.5-sonnet
Claude 3 Haikuanthropic/claude-3-haiku
GPT-4oopenai/gpt-4o
GPT-4o Miniopenai/gpt-4o-mini
Gemini 2.0 Flashgoogle/gemini-2.0-flash-001
Llama 3.3 70Bmeta-llama/llama-3.3-70b-instruct
DeepSeek V3deepseek/deepseek-v3

Models are served via OpenRouter. Your deployment's API key must have credits for the selected model.

Output

FieldTypeDescription
textStringThe model's response
modelStringThe model ID that was actually used

Access these in downstream nodes via expressions:

{{ $nodes['Summarise'].text }}
{{ $nodes['Summarise'].model }}

Replace Summarise with the actual name you gave the node.

Examples

Summarise an HTTP response

  • System Prompt: You are a concise technical writer. Respond with a single paragraph.
  • User Message: Summarise the following API response: {{ $nodes['Fetch Article'].responseBody }}

Classify a support ticket

  • User Message: Classify the following support message into one of: billing, technical, general. Respond with only the category name.\n\n{{ $nodes['Webhook'].body.message }}

Extract structured data

  • System Prompt: You extract data from text and respond only with valid JSON. No markdown.
  • User Message: Extract the company name, date, and total amount from this invoice text:\n\n{{ $nodes['Parse PDF'].text }}

Use a Transform node downstream to map the extracted fields into your data model.