langchain_textClassifier.json•1.62 kB
{
"nodeType": "@n8n/n8n-nodes-langchain.textClassifier",
"displayName": "Text Classifier",
"description": "Classify your text into distinct categories",
"version": 1,
"properties": [
{
"name": "inputText",
"displayName": "Text to Classify",
"type": "string",
"default": "",
"description": "Use an expression to reference data in previous nodes or enter static text",
"required": true,
"typeOptions": {
"rows": 2
}
},
{
"name": "categories",
"displayName": "Categories",
"type": "fixedCollection",
"default": {},
"description": "Category to add",
"placeholder": "Add Category",
"required": true,
"typeOptions": {
"multipleValues": true
}
},
{
"name": "options",
"displayName": "Options",
"type": "collection",
"default": {},
"description": "What to do with items that don’t match the categories exactly",
"placeholder": "Add Option",
"options": [
{
"name": "multiClass",
"displayName": "Allow Multiple Classes To Be True",
"type": "boolean",
"default": false
}
],
"typeOptions": {
"rows": 6
}
}
],
"credentialsConfig": [],
"io": {
"inputs": [
"Main",
"AiLanguageModel"
],
"outputs": [],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [
"Main",
"AiLanguageModel"
],
"produces": []
}
}