Classifies text into predefined categories using AI. Useful for tagging and routing inputs.

Fields

NameTypeControlDefaultDescriptionOptionsValidation
TextText--The text you want to classify.--
CategoriesKey-Value-The keys should be the categories you want to classify the text in, for example ‘valid’ and ‘invalid’, and the values the criteria for each category.--
Additional contextTextTextarea-Any additional information that might help the AI in making the classification decision.--

End states

Below are the possible end states of the block call.

NameFieldTypeDescription
-categoriesdynamic-
Error-errorIf the function raises an Exception.

The dynamic end state means that the exact values of this end state change based on how you define the block.