Skip to content

LLM nodes ​

Chat-completion model adapters and prompt-template helpers.

15 nodes.

Fields that take {{ }} templates (prompts, URLs, bodies, values) read the steps connected straight into the node; Templates and expressions covers reading earlier steps with results.


ai_gateway_chat_model — AI Gateway Chat Model ​

Calls a corporate AI gateway using OpenAI-compatible, OpenAI, or Anthropic protocol.

Config fields

FieldTypeRequiredValues
apiProviderstringyesopenai_compatible | openai | anthropic
baseUrlstringyes—
modelstringyes—
secretRefobjectno—
temperaturenumberno—
maxTokensnumberno—
enableThinkingbooleanno—
thinkingTokensnumberno—
promptKeystringno—
promptTemplatestringno—
systemPromptKeystringno—

Outputs

FieldWhat it holds
answerThe model's answer as text. Read it with {{answer}}.
toolCallsTools the model asked to call, when it asked for any.
rawThe provider's raw response.

text holds the same value as answer and is kept for workflows that read it; use answer.

Example config

json
{
  "apiProvider": "openai_compatible",
  "baseUrl": "https://llm.company.example/v1",
  "model": "claude-haiku-4-5-20251001",
  "temperature": 0.2,
  "maxTokens": 1024,
  "enableThinking": false,
  "thinkingTokens": 1024,
  "promptKey": "prompt",
  "promptTemplate": "",
  "systemPromptKey": "system_prompt"
}

ai_transform — AI Transform ​

Transform data using natural language instructions. The LLM generates and applies a transformation based on your description.

Config fields

FieldTypeRequiredValues
instructionstringyes—
inputKeystringno—
outputFormatstringnotext | json | code

Outputs

FieldWhat it holds
answerThe model's answer as text. Read it with {{answer}}.
transformedThe transformed input (parsed JSON when the output format is json).
toolCallsTools the model asked to call, when it asked for any.
rawThe provider's raw response.

text holds the same value as answer and is kept for workflows that read it; use answer.

Example config

json
{
  "instruction": "Convert this data to a markdown table",
  "inputKey": "text",
  "outputFormat": "text"
}

anthropic_chat_model — Anthropic Chat Model ​

Calls Anthropic Claude models with an API key or ANTHROPIC_API_KEY.

Config fields

FieldTypeRequiredValues
baseUrlstringno—
modelstringyes—
secretRefobjectno—
temperaturenumberno—
maxTokensnumberno—
promptKeystringno—
promptTemplatestringno—
systemPromptKeystringno—

Outputs

FieldWhat it holds
answerThe model's answer as text. Read it with {{answer}}.
toolCallsTools the model asked to call, when it asked for any.
rawThe provider's raw response.

text holds the same value as answer and is kept for workflows that read it; use answer.

Example config

json
{
  "model": "claude-sonnet-5-5",
  "maxTokens": 1024,
  "promptKey": "prompt",
  "promptTemplate": "",
  "systemPromptKey": "system_prompt"
}

azure_openai_chat_model — Azure OpenAI Chat Model ​

Calls Azure OpenAI chat/completions using deployment + API version.

Config fields

FieldTypeRequiredValues
endpointstringyes—
deploymentstringyes—
apiVersionstringno—
secretRefobjectyes—
temperaturenumberno—
maxTokensnumberno—
promptKeystringno—
promptTemplatestringno—
systemPromptKeystringno—

Outputs

FieldWhat it holds
answerThe model's answer as text. Read it with {{answer}}.
toolCallsTools the model asked to call, when it asked for any.
rawThe provider's raw response.

text holds the same value as answer and is kept for workflows that read it; use answer.

Example config

json
{
  "endpoint": "https://my-azure-openai.openai.azure.com",
  "deployment": "gpt-4o-mini",
  "apiVersion": "2024-10-21",
  "temperature": 0.2,
  "maxTokens": 1024,
  "promptKey": "prompt",
  "promptTemplate": "",
  "systemPromptKey": "system_prompt"
}

basic_llm_chain — Basic LLM Chain ​

Simple prompt-to-response chain with configurable system and user prompt templates.

Config fields

FieldTypeRequiredValues
promptKeystringno—
promptTemplatestringno—
systemPromptKeystringno—
outputFormatstringnotext | json

Outputs

FieldWhat it holds
answerThe model's answer as text. Read it with {{answer}}.
toolCallsTools the model asked to call, when it asked for any.
rawThe provider's raw response.

text holds the same value as answer and is kept for workflows that read it; use answer.

Example config

json
{
  "promptKey": "prompt",
  "promptTemplate": "",
  "systemPromptKey": "system_prompt",
  "outputFormat": "text"
}

google_gemini_chat_model — Google Gemini Chat Model ​

Calls Google Gemini chat completions using an API key.

Config fields

FieldTypeRequiredValues
modelstringyes—
secretRefobjectno—
temperaturenumberno—
maxTokensnumberno—
promptKeystringno—
promptTemplatestringno—
systemPromptKeystringno—

Outputs

FieldWhat it holds
answerThe model's answer as text. Read it with {{answer}}.
toolCallsTools the model asked to call, when it asked for any.
rawThe provider's raw response.

text holds the same value as answer and is kept for workflows that read it; use answer.

Example config

json
{
  "model": "gemini-2.5-flash",
  "temperature": 0.2,
  "maxTokens": 1024,
  "promptKey": "prompt",
  "promptTemplate": "",
  "systemPromptKey": "system_prompt"
}

information_extractor — Information Extractor ​

Extracts structured information from text based on a configurable schema.

Config fields

FieldTypeRequiredValues
textKeystringno—
extractionSchemastringno—

Outputs

FieldWhat it holds
answerThe model's answer as text. Read it with {{answer}}.
extractedThe extracted data (parsed JSON when the model answered JSON).
toolCallsTools the model asked to call, when it asked for any.
rawThe provider's raw response.

text holds the same value as answer and is kept for workflows that read it; use answer.

Example config

json
{
  "textKey": "text",
  "extractionSchema": "{ \"name\": \"string\", \"email\": \"string\", \"company\": \"string\" }"
}

llm_call — LLM Call ​

Executes a model completion call.

Config fields

FieldTypeRequiredValues
providerobjectyes—
promptKeystringno—
promptTemplatestringno—
systemPromptKeystringno—
serverPromptobjectno—

Outputs

FieldWhat it holds
answerThe model's answer as text. Read it with {{answer}}.
toolCallsTools the model asked to call, when it asked for any.
rawThe provider's raw response.

text holds the same value as answer and is kept for workflows that read it; use answer.

Example config

json
{
  "provider": {
    "providerId": "echo",
    "model": "echo"
  },
  "promptKey": "prompt",
  "promptTemplate": "",
  "systemPromptKey": "system_prompt"
}

ollama_chat_model — Ollama Chat Model ​

Calls a local Ollama model through its OpenAI-compatible API.

Config fields

FieldTypeRequiredValues
baseUrlstringno—
modelstringyes—
temperaturenumberno—
maxTokensnumberno—
promptKeystringno—
promptTemplatestringno—
systemPromptKeystringno—

Outputs

FieldWhat it holds
answerThe model's answer as text. Read it with {{answer}}.
toolCallsTools the model asked to call, when it asked for any.
rawThe provider's raw response.

text holds the same value as answer and is kept for workflows that read it; use answer.

Example config

json
{
  "baseUrl": "http://localhost:11434/v1",
  "model": "llama3.1",
  "temperature": 0.2,
  "maxTokens": 1024,
  "promptKey": "prompt",
  "promptTemplate": "",
  "systemPromptKey": "system_prompt"
}

openai_chat_model — OpenAI Chat Model ​

Calls OpenAI chat models with an API key or OPENAI_API_KEY.

Config fields

FieldTypeRequiredValues
baseUrlstringno—
modelstringyes—
secretRefobjectno—
temperaturenumberno—
maxTokensnumberno—
promptKeystringno—
promptTemplatestringno—
systemPromptKeystringno—

Outputs

FieldWhat it holds
answerThe model's answer as text. Read it with {{answer}}.
toolCallsTools the model asked to call, when it asked for any.
rawThe provider's raw response.

text holds the same value as answer and is kept for workflows that read it; use answer.

Example config

json
{
  "model": "gpt-4o-mini",
  "temperature": 0.2,
  "maxTokens": 1024,
  "promptKey": "prompt",
  "promptTemplate": "",
  "systemPromptKey": "system_prompt"
}

openai_compatible_chat_model — OpenAI Compatible Chat Model ​

Calls any OpenAI-compatible chat API such as OpenRouter, Groq, vLLM, or LM Studio.

Config fields

FieldTypeRequiredValues
baseUrlstringyes—
modelstringyes—
secretRefobjectno—
temperaturenumberno—
maxTokensnumberno—
promptKeystringno—
promptTemplatestringno—
systemPromptKeystringno—

Outputs

FieldWhat it holds
answerThe model's answer as text. Read it with {{answer}}.
toolCallsTools the model asked to call, when it asked for any.
rawThe provider's raw response.

text holds the same value as answer and is kept for workflows that read it; use answer.

Example config

json
{
  "baseUrl": "http://localhost:1234/v1",
  "model": "local-model",
  "temperature": 0.2,
  "maxTokens": 1024,
  "promptKey": "prompt",
  "promptTemplate": "",
  "systemPromptKey": "system_prompt"
}

qa_chain — Q&A Chain ​

Answers questions using provided context documents. Returns answer with source citations.

Config fields

FieldTypeRequiredValues
contextKeystringno—
questionKeystringno—
maxContextLengthnumberno—

Outputs

FieldWhat it holds
answerThe model's answer as text. Read it with {{answer}}.
toolCallsTools the model asked to call, when it asked for any.
rawThe provider's raw response.

text holds the same value as answer and is kept for workflows that read it; use answer.

Example config

json
{
  "contextKey": "context",
  "questionKey": "question",
  "maxContextLength": 4000
}

sentiment_analysis — Sentiment Analysis ​

Analyzes sentiment of input text. Returns sentiment label, confidence score, and explanation.

Config fields

FieldTypeRequiredValues
textKeystringno—

Outputs

FieldWhat it holds
answerThe model's answer as text. Read it with {{answer}}.
sentimentThe sentiment (parsed JSON when the model answered JSON).
toolCallsTools the model asked to call, when it asked for any.
rawThe provider's raw response.

text holds the same value as answer and is kept for workflows that read it; use answer.

Example config

json
{
  "textKey": "text"
}

summarization_chain — Summarization Chain ​

Summarizes input text with configurable length and style.

Config fields

FieldTypeRequiredValues
textKeystringno—
maxLengthnumberno—
stylestringnobrief | detailed | bullet_points | executive

Outputs

FieldWhat it holds
answerThe model's answer as text. Read it with {{answer}}.
toolCallsTools the model asked to call, when it asked for any.
rawThe provider's raw response.

text holds the same value as answer and is kept for workflows that read it; use answer.

Example config

json
{
  "textKey": "text",
  "maxLength": 500,
  "style": "brief"
}

text_classifier — Text Classifier ​

Classifies input text into one of the configured categories.

Config fields

FieldTypeRequiredValues
textKeystringno—
categoriesstringno—
multiLabelbooleanno—

Outputs

FieldWhat it holds
answerThe model's answer as text. Read it with {{answer}}.
classificationThe classification (parsed JSON when the model answered JSON).
toolCallsTools the model asked to call, when it asked for any.
rawThe provider's raw response.

text holds the same value as answer and is kept for workflows that read it; use answer.

Example config

json
{
  "textKey": "text",
  "categories": "positive, negative, neutral",
  "multiLabel": false
}

This website (not the L2M product) counts page views with GoatCounter, without cookies.