Classifier
Classifier Tool
The minded-classifier tool categorizes text using AI. It can be used in flows or directly in code.
Using in Flows
Use the tool in your flows by referencing minded-classifier:
- id: classifyUserIntent
type: tool
toolName: minded-classifier
prompt: |
Classify the user's message into one of these categories:
- Technical Issue: Problems with the system
- Billing: Payment or pricing questions
- Feature Request: Asking for new features
Content: "{{userMessage}}"Tool Parameters
Parameter
Type
Description
Required
content
string
Text content to classify
Yes
classes
array
Classes (strings, tuples, or objects)
No*
systemPrompt
string
Custom system prompt
No
includeReason
boolean
Include reasoning (default: true)
No
outputFormat
'json' | 'text'
Output format (default: 'json')
No
defaultClass
string
Fallback class
No
defaultReason
string
Fallback reason
No
*Classes can be provided in parameters or stored in agent memory.
Overriding Classifier Parameters in Flows
You can override classifier parameters directly in your flow YAML for deterministic classification:
Using as a Utility
Import the utilities
Direct classification
Create reusable classifiers
Conversation classification
Multi-label classification
Configuration
ClassifierConfig interface
ClassifierConfig interfaceLast updated