Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Text Classifier

ai.text_classifier · version 1.1 · AI

Sorts items into categories with a chat model.

Ports

PortKindLabelRequiredMax connections
input 0main
input 1ai_languageModelyes1

The number of ports depends on the parameters; the table shows the default set.

Credentials

This node uses no credentials.

Parameters

NameTypeDefaultRequiredShown whenDescription
inputTextstringyesText to Classify.
categoriesfixed_collection
categories.categoriescollectionCategory.
categories.categories.categorystringName.
categories.categories.descriptionstring
optionscollection
options.allowMultipleClassesMatchbooleanfalseAllow Multiple Categories.
options.fallbackoptions"discard"When Nothing Matches. One of discard, other.
options.systemPromptTemplatestring"Decide which of the categories below the user's text belongs to. Judge only by the text and the category descriptions."System Prompt.
options.enableAutoFixingbooleantrueRetry Invalid Answers.

Import

Exported workflows that use these node types import to this node. Unverified ranges import with a parameter warning until parity fixtures confirm them; see Migrating.

Source typeVersion rangeStatusFixtures
@n8n/n8n-nodes-langchain.textClassifier1unverified