Text Classifier
ai.text_classifier · version 1.1 · AI
Sorts items into categories with a chat model.
Ports
| Port | Kind | Label | Required | Max connections |
|---|---|---|---|---|
| input 0 | main | |||
| input 1 | ai_languageModel | yes | 1 |
The number of ports depends on the parameters; the table shows the default set.
Credentials
This node uses no credentials.
Parameters
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
inputText | string | yes | Text to Classify. | ||
categories | fixed_collection | ||||
categories.categories | collection | Category. | |||
categories.categories.category | string | Name. | |||
categories.categories.description | string | ||||
options | collection | ||||
options.allowMultipleClassesMatch | boolean | false | Allow Multiple Categories. | ||
options.fallback | options | "discard" | When Nothing Matches. One of discard, other. | ||
options.systemPromptTemplate | string | "Decide which of the categories below the user's text belongs to. Judge only by the text and the category descriptions." | System Prompt. | ||
options.enableAutoFixing | boolean | true | Retry 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 type | Version range | Status | Fixtures |
|---|---|---|---|
@n8n/n8n-nodes-langchain.textClassifier | 1 | unverified |