Text Classification
Transform unstructured text into actionable categories. Define your classification schema, and ShapeShyft ensures every response matches your exact requirements.
How It Works
Define Your Schema
Specify exactly what classifications you need—categories, confidence scores, multiple labels, or nested structures.
Send Your Text
Call the ShapeShyft API with your text. We route it to your chosen LLM with optimized prompting.
Get Validated Output
Receive JSON that matches your schema exactly—guaranteed. No parsing errors, no unexpected formats.
Example: Customer Feedback Classification
Your JSON Schema
{
"type": "object",
"properties": {
"sentiment": {
"type": "string",
"enum": ["positive", "negative", "neutral"]
},
"confidence": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"topics": {
"type": "array",
"items": { "type": "string" }
},
"urgency": {
"type": "string",
"enum": ["low", "medium", "high", "critical"]
}
},
"required": ["sentiment", "confidence"]
}Guaranteed Output
{
"sentiment": "negative",
"confidence": 0.92,
"topics": ["billing", "service-quality"],
"urgency": "high"
}Every response is validated against your schema before being returned. Invalid outputs are automatically retried.
Applications
Sentiment Analysis
Analyze customer feedback, reviews, and social media mentions to understand public perception. Get consistent sentiment scores that integrate directly into your analytics pipeline.
Intent Recognition
Understand what users want from their messages. Route inquiries to the right department, trigger automated workflows, or provide instant responses based on detected intent.
Topic Detection
Automatically tag content with relevant topics and categories. Perfect for content management, search optimization, and organizing large document collections.
Content Moderation
Flag inappropriate content, detect spam, and identify policy violations. Get structured classifications that enable automated moderation workflows.
Start Classifying Text Today
Create your first text classification endpoint in minutes. No ML expertise required.