AI Agents

LLM Nodes

LLM nodes let you send structured prompts to language models and capture the output for further processing.

Basic Prompt Node

The simplest way to use an LLM. Configure:

Example: Summarise Customer Feedback

System Prompt:

You are a customer success analyst. Summarise the feedback in 2 sentences.
Focus on the main issue and sentiment. Be neutral and factual.

User Message:

{{ $json.feedbackText }}

Structured Output (JSON Mode)

Force the model to return valid JSON by enabling JSON Mode:

System Prompt:

Extract information from the text. Return ONLY valid JSON with this schema:
{
  "name": string,
  "email": string | null,
  "intent": "purchase" | "support" | "inquiry" | "other",
  "urgency": "high" | "medium" | "low"
}

Then connect a Parse JSON node to extract fields safely.

Chat History (Multi-turn)

Connect a Memory node to maintain conversation history. The LLM node automatically injects prior messages into the prompt.

Model Parameters

ParameterEffect
temperatureRandomness (0 = deterministic, 1 = creative)
max_tokensMaximum response length
top_pNucleus sampling threshold
frequency_penaltyReduce repetition
presence_penaltyEncourage new topics

Cost Management

The LLM node tracks token usage per execution. Use the Analytics dashboard to: