Skip to main content

Gemini Structured Output

Force Gemini to return data in a specific JSON format. Define your output structure using a JSON Schema — the model guarantees its response matches it exactly.

The Gemini Structured Output node uses Google's Gemini models to return data that follows a schema you define, rather than free-form text. Describe the fields you expect and the node produces clean, structured JSON ready to use in your flow.

Gemini Structured Output
System MessageText
ContextText
Prompt*Text (multiline)
File UrlFile upload
Json Schema*JSON
ModelSelect
Fields marked * are required. Dots are connection handles.

Inputs

Each input can be typed in directly or connected to another node's output.

InputTypeRequiredDescription
System MessageTextOptionalOverride the default system instructions for the LLM (e.g. 'You are a concise assistant that responds only in bullet points.').
ContextTextOptionalDynamic data for the LLM to process (e.g. email body, document, user input).
PromptText (multiline)RequiredTask instruction for the LLM (e.g. 'Extract the name and date from the text').
File UrlFile uploadOptionalProvide files or images for the LLM to analyze.
Json SchemaJSONRequiredJSON Schema defining the exact structure of the output. The model will always return valid JSON matching this schema.

Settings

SettingTypeDefaultDescription
ModelSelectGemini 3.1 Pro Preview

Model options

OptionDefault
Gemini 2.5 Flash Preview
Gemini 2.5 Pro Preview
Gemini 3.1 Pro Preview
Gemini 3 Flash Preview

Output

Type: JSON (json)