Chat
Send a single prompt to a configured Large Language Model and emit the model's reply.
The function reads from the prompt input connector and writes to the response
output connector. Output is plain text by default, but can be constrained to a JSON
object — optionally validated against a JSON Schema.
Pre-requisite: Install an AI provider application from Profile > {Organization} > Applications. Supported providers:
- OpenAI
- Anthropic
- Mistral
- Gemini
- Cohere
- Moonshot
- Scaleway AI
Parameters
Configured AI application that supplies the API credentials and provider type.
Model identifier passed to the provider (e.g. gpt-5.2, claude-sonnet-4-5,
mistral-large-latest, gemini-2.5-pro). The form suggests common
identifiers based on the selected provider — click a badge to fill in. When
omitted, the provider's default model is used.
System prompt prepended to every call. Use it to set the assistant's persona, constraints, or output style. Leave empty for a neutral assistant.
Shape the model must return:
Text— free-form text reply (default). Theresponseoutput isPlainText.JSON— any valid JSON object. Theresponseoutput isJson.JSON with Schema— JSON validated against a strict JSON Schema. Theresponseoutput isJson. Replies that fail to parse or validate cause the step to error.
Only shown when Response Format is JSON with Schema. JSON Schema describing
the exact shape the response must conform to. Two starter templates are
available: Empty schema (a blank object to start from) and
Document chunking (a ready-made schema for splitting a document into chunks
with metadata).
{
"name": "document_annotation",
"strict": true,
"schema": {
"type": "object",
"additionalProperties": false,
"required": ["title", "summary"],
"properties": {
"title": { "type": "string" },
"summary": { "type": "string" }
}
}
}
Input
The user message sent to the model. Accepted types: - PlainText — passed
through as-is. - Integer — converted to its string representation. -
JSON — serialized to a JSON string before being sent. - File — read
and decoded as text (useful to pipe a document straight into the model).
Output
The model's reply. - PlainText when Response Format is Text (or
unset). - Json when Response Format is JSON or JSON with Schema.