urgent
, normal
, and low_priority
, the Classification block analyzes the input text and continues execution down the corresponding path (urgent
, normal
, or low_priority
).
Key difference from other blocks: the Classification block doesn’t have a final success
state that takes a return value. Instead, it creates separate execution paths for each category you define, and the workflow continues down the path that matches the classification result.
The @{result}
variable from the Classification block contains the name of the selected category.
@{result}
, which contains the name of the selected category.
Name | Type | Control | Default | Description | Options | Validation |
---|---|---|---|---|---|---|
Text | Text | - | - | The text you want to classify. | - | - |
Categories | Key-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. Category names should contain only letters of the English alphabet, digits, underscores and spaces. | - | - | |
Additional context | Text | Textarea | - | Any additional information that might help the AI in making the classification decision. | - | - |
Name | Field | Type | Description |
---|---|---|---|
- | categories | dynamic | - |
Error | - | error | If the function raises an Exception. |
dynamic
end state means that the exact values of this end state change based on how you define the block.
The output of a Classification block is a string that contains the classification of the input text. You can access the output of a Classification block using the @{result}
variable in the block that follows it in a blueprint.