LLM
AI & KnowledgeLLM Node
Overview
Supports the following operations: Gemini 2.0 Pro (Enterprise), OPENAI_API_KEY, ANTHROPIC_API_KEY.
Configuration
| Property | Type | Default | Description |
|---|---|---|---|
model | string | — | AI model to use (e.g., gpt-4o, claude-3-5-sonnet) |
apiKeySecret | string | — | API key or secret for authentication |
systemPrompt | string | — | System-level instructions for the AI |
userPrompt | string | — | User prompt or query to send to the AI |
temperature | string | — | Sampling temperature (0 = deterministic, 1 = creative) |
maxTokens | string | — | Maximum number of tokens to generate |
responseSchema | string | — | JSON schema for structured output |
Output Variables
Reference these variables in downstream nodes using the {{node.field}} syntax.
{{llm.text}}anyOutput field: text
{{llm.raw_response}}anyOutput field: raw_response
{{llm.tokens_used}}anyOutput field: tokens_used
Examples
Basic Usage
Example configuration:
{
"model": "value",
"apiKeySecret": "value",
"systemPrompt": "value",
"userPrompt": "value",
"temperature": "value",
"maxTokens": "value",
"responseSchema": "value"
}Tips & Best Practices
- •Ensure all required fields are configured.
- •Check the output variables to see available data.
- •Test with different temperature or model settings to optimize results.
Try LLM in Your Workflow
Create a free account and start building AI-powered workflows with the LLM node.
Open Workflow Editor