Text nodes
Every node below also has a Model setting and returns model and
provider. They are left out of the tables.
Chat
Sends a message to a chat model and returns the reply.
| Input |
Type |
Default |
Notes |
message |
string |
|
Required. Port only. |
systemPrompt |
string |
empty |
Typed text or a reference to an AI prompt. Also a port. See Prompts and guardrails. |
operation_type |
string |
chat |
Picks the default model when Model is empty: chat, chat_with_image_vision, chat_with_complex_json, chat_with_structured_response or chat_with_tools. |
temperature |
number |
0.7 |
0.0 to 2.0. |
maxTokens |
integer |
1000 |
1 to 4000. |
plainTextResponse |
boolean |
false |
Off: the reply is treated as HTML and re-serialized. On: the reply stays plain text. Disallowed URLs are removed either way. Turn it on when the reply is data, such as JSON. |
history |
array |
[] |
Port only. Earlier messages, each with role and content. |
| Output |
Type |
Notes |
response |
string |
The reply. |
usage |
object |
Token counts and, with the metering submodule, a cost. See Usage and cost. |
tokens_used |
integer |
Deprecated in 2.2.0, removed in 3.0.0. Use usage.total. |
temperature |
number |
The value used. |
max_tokens |
integer |
The value used. |
Only user and assistant roles from history reach the model. Anything
else, system included, is dropped.
Simple Chat
The same as Chat with a plain text system prompt: no prompt library picker
and no plainTextResponse setting. Use it when the prompt lives in the
workflow and nowhere else. Its outputs are the same as Chat's, usage
included.
Summarize
| Input |
Type |
Notes |
text |
string |
Text to summarize. |
prompt |
string |
Optional instructions for style or focus. |
Output: summary (string).
Translate Text
| Input |
Type |
Default |
Notes |
text |
string |
|
Text to translate. |
target_language |
string |
en |
Language code, for example es, fr, de. |
source_language |
string |
empty |
Leave empty to auto-detect. |
Outputs: translated_text, source_language, target_language.
Text Classification
| Input |
Type |
Notes |
text |
string |
Text to classify. |
labels |
array |
Candidate labels. Zero-shot models need them; for other models they filter the result. |
| Output |
Type |
Notes |
classifications |
array |
Labels with their confidence. |
top_label |
string |
The label with the highest confidence. |
Decision
Asks one or more typed questions about some material (the "state") and
returns one typed answer per question, with probabilities where the question
type has them.
| Input |
Type |
Notes |
state |
string or structured data |
Required. Port only. The material to judge. |
questions |
object (JSON) |
Required. Questions keyed by an id you choose. Setting or port. |
image_file |
string |
Optional image judged together with the state. Needs a model with file support. Port only. |
image_url |
string |
Optional image URL, used when image_file is empty. |
Each question has a type, instructions and, depending on the type,
criteria:
| Type |
Answer |
criteria |
noul |
true or false |
Optional. Describes what true and false mean. |
choice |
one option key |
Options keyed by option key. |
score |
one level |
Level descriptions in order, lowest first. |
{
"on_topic": {
"type": "noul",
"instructions": "Is this text about cooking?",
"criteria": {"true": "It describes food or recipes", "false": "Anything else"}
},
"tone": {
"type": "choice",
"instructions": "What is the tone of the text?",
"criteria": {"formal": "Formal register", "casual": "Casual register"}
},
"clarity": {
"type": "score",
"instructions": "How easy is the text to follow?",
"criteria": ["Hard to follow", "Acceptable", "Clear"]
}
}
A questions object typed into a text port arrives as a JSON string; the node
decodes it.
| Output |
Type |
Notes |
answers |
object |
Keyed by question id. noul: {type, noul}. choice: {type, choice, probabilities, confidence}. score: {type, score, legend, probabilities, confidence}. |
usage |
object |
Token counts and, with the metering submodule, the cost. Hidden by default. See Usage and cost. |
Finds the answer to a question inside a passage and returns the text as it
appears there.
| Input |
Type |
Notes |
question |
string |
The question. |
context |
string |
The passage to search. |
| Output |
Type |
Notes |
answers |
array |
Candidate answers with scores and character offsets. |
answer |
string |
The highest-scoring answer. |
Content Moderation
| Input |
Type |
Notes |
text |
string |
Text to check. |
| Output |
Type |
Notes |
flagged |
boolean |
Whether the provider flagged the text. |
information |
object |
Provider-specific details, such as per-category scores. |
message |
string |
The provider's explanation, when it gives one. |
Embeddings
| Input |
Type |
Notes |
text |
string |
One text. |
texts |
array |
Several texts. |
| Output |
Type |
Notes |
embeddings |
array |
The vectors. |
dimensions |
integer |
Vector length. |
num_texts |
integer |
How many texts were embedded. |
Rerank
| Input |
Type |
Default |
Notes |
query |
string |
|
The query to rank against. |
documents |
array |
|
Document strings. |
top_n |
integer |
0 |
How many results to return. 0 returns all. |
Output: results (array), the documents ordered by relevance to the query.