Skip to content

AITextClassifier Node

The AITextClassifier node leverages an AI model (e.g. OpenAI) to classify user-provided text into predefined categories based on provided descriptions. It is used in workflows that require intelligent text interpretation or classification based on natural language inputs.


🧠 Purpose

This node enables dynamic classification of user input text by comparing it with a dictionary of categories and their descriptions. It is particularly useful for scenarios such as:

  • Email or document classification
  • Routing decisions based on text
  • Predictive tagging or labeling
  • Mapping free-form user inputs to predefined codes or values

⚙️ Node Configuration

SettingDescription
NameAITextClassifier
Node Typetask
Task TypeAITextClassifier
IconCustom AI icon (update UI if needed)
VisibilityControlNot explicitly defined — assumed always visible

🔢 Inputs

LabelInput TypeDescriptionRequiredVisible When
Classifications with DescriptionstextA JSON array of key-value pairs, where each key is a category and each value is its description.Always
User InputtextThe input text string to be classified. Supports placeholders (e.g., {myText}) replaced at runtime.Always

Example format for Classifications with Descriptions:

json
[
  { "key": "Sales", "value": "Topics related to selling products or services" },
  { "key": "Support", "value": "Requests for help or troubleshooting" },
  { "key": "Marketing", "value": "Content promoting the company or product" }
]

Tentech 2024