Anthropic (Structured) icon

Anthropic (Structured)

Anthropic Claude with Anthropic-side structured outputs. Set a JSON Schema and the model is guaranteed to return schema-conformant JSON.

Anthropic (Structured)

AI-generated

Summary

Provides an Anthropic Claude chat model for use as an n8n AI Language Model. Optionally configures Anthropic constrained decoding with a JSON Schema; without a schema, it uses normal chat behavior.

Inputs

  • Model — Choose a Claude model; defaults to Claude Sonnet 4.5. The UI notes that constrained decoding is supported on Claude 4.5 and later.
  • JSON Schema — Provide a JSON Schema to request schema-conformant JSON through Anthropic constrained decoding. Leave empty for normal chat behavior. Invalid JSON raises an operation error.
  • Options — Configure maximum response tokens (default 4096), temperature (default 0.7, range 0–1), top P (default 1, range 0–1), and top K (default 0, which disables it).

Output shape

An AI Language Model connection, not a regular item list.

The model sends chat messages to Anthropic's Messages API and maps text and tool-use content into n8n chat model results. Streaming is implemented by generating the full response first, then yielding its text and finish information.

Links

Discussion