Skip to main content
AI/ML

LLM Inference

llm

Execute multi-provider LLM inference via saved Workspace or Project LLM Presets with system/user prompts, multimodal FileRef inputs, and bounded JSON Schema output.

Inputs1
Outputs1
Settings24
Field AccessState Key · {{Template}}
Examples2

About this Node

Executes a single-turn LLM completion using a saved Workspace or Project LLM Preset across Google Gemini, OpenAI, Azure OpenAI, Anthropic Claude, and xAI (Grok). Supports inline prompt templates (`{{key}}`) or upstream state-key prompts, multimodal `FileRef` attachments, and strict JSON Schema structured outputs.

Ports & Branches

Inputs (1)
inPort 0Inbound execution flow
Outputs (1)
outPort 1Outbound execution flow after model response

How this Node Reads Data

Input Access Field Example Description
Prompt State Key State Key input_key rendered_prompt When `prompt_source` is `state_key`, reads the prompt text from the workflow state key named by `input_key`.
Prompt Template {{Template}} prompt_template Summarize this ticket for {{customer_tier}}: {{ticket_body}} When `prompt_source` is `template`, interpolates `{{key}}` placeholders from the node's scoped state.
Multimodal Attachments FileRef file_input_keys ["invoice_pdf"] State keys holding `FileRef` objects (images, PDFs, audio, or text files from Dataset Read or HTTP Request) attached to the model request.

State Keys Written (Outputs)

Key Pattern Type Role Description
{output_key} string | object Primary Generated completion text (in `text` mode) or parsed JSON object (in `json` / `json_schema` mode).
{output_key}_metadata object Secondary Provider, model, finish reason, and token usage summary for this completion.

Tips & Best Practices

  • Configure provider credentials and model presets in Settings → LLM, then bind nodes to a saved preset (`llm_preset_id`) without pasting credentials into workflow settings.
  • For multi-turn tool use with Agent Skills, datasets, or sub-workflows, use the AI Agent (`maf_agent`) node.

Commonly Paired With