Train a Custom Intent Classifier on Your Own Data: Live Vendors, Minimum Examples and Prices Compared
Amazon Comprehend needs 50 labeled examples per intent, Lex and Dialogflow CX ask for 10 or more phrases, and an LLM prompt needs none. This guide matches each option to a team and prices it at one million messages a month.
To train a custom intent classifier on your own labeled data in November 2026, use Amazon Comprehend for standalone message routing. Use Amazon Lex V2 or Google Dialogflow CX if the intents sit inside a chatbot. Azure Conversational Language Understanding also still trains on your labels, but Microsoft retires it on March 31, 2029. Cohere and Vertex AI AutoML Text have shut down their training services. Mistral marks its Classifier Factory as deprecated, and OpenAI's fine-tuning is closed to new users. Teams that want to own the model can train one with Hugging Face Transformers.
Every option needs the same input: one message and one label per row
An intent classifier is trained on rows that pair a piece of text with the correct label, such as "my card was charged twice" with billing. It then scores each new message against your label list. Trained classifiers return a confidence score per label, and that score lets you route uncertain messages to a person instead of guessing.
The options differ in how many rows they need, which languages they handle, how they bill and whether they will still exist in three years. Each of those differences points a different kind of team to a different product.
Teams that route support tickets into fixed queues should start with Amazon Comprehend
Amazon Comprehend custom classification is built for this job, and its documentation uses ticket routing as the example. Training data is a CSV file with the label in the first column and the message in the second.
AWS's quotas page sets the minimums. Multi-class mode, which gives each message one label, needs 50 documents per class and supports 2 to 1,000 classes. Multi-label mode needs 10 per class and 50 in total, with 2 to 100 classes. Plain-text models train in English, Spanish, German, Italian, French or Portuguese, and each classifier takes one language.
After training, ClassifyDocument returns each class with a Name and a Score. Those scores give you the ranked list that you need for an audit log and for a threshold. AWS bills $3 per hour of training and $0.50 per model per month. A real-time endpoint costs $0.0005 per inference unit per second, and asynchronous jobs cost $0.0005 per 100 characters, with a 300-character minimum per request.
Teams that are building a chatbot should train intents inside Lex or Dialogflow CX
Chatbot platforms train intents as one part of a conversation design, together with slots, entities and dialogue flows. They need fewer examples per intent than Comprehend.
- Amazon Lex V2 asks for 10 or more sample utterances per intent. Its
AMAZON.FallbackIntentis matched when input is ambiguous, and a Lambda function can pass the session to a human agent. - Google Dialogflow CX recommends "at least 10-20" training phrases per intent and trains one model per flow. Scores run from 0.0 to 1.0, and a message that misses the classification threshold triggers a no-match event.
- Microsoft Azure CLU reports precision, recall and F1 per intent, with a recommended 80/20 split between training and test data. Its free standard training is English only, and its billed advanced training adds other languages.
Azure CLU's free tier covers 5,000 text records a month. However, Microsoft directs all new projects to Microsoft Foundry because CLU retires on March 31, 2029.
Teams with few examples or changing labels can prompt an LLM instead
If you have fewer than 10 examples per intent, or the label list changes every month, a trained classifier is harder to keep current. Asking an LLM to choose a label from a list in the prompt needs no training data. The trade-off is that the prompt has to carry the label list, and the output is a generated label rather than a calibrated score per class.
OpenAI lists gpt-6-luna at $0.10 per million input tokens, $0.01 for cached input and $0.50 per million output tokens. It lists gpt-5-nano at $0.05 for input and $0.40 for output.
Teams that want to own the model should train it with Hugging Face Transformers
The Transformers text-classification guide fine-tunes a base model such as DistilBERT with AutoModelForSequenceClassification and Trainer. It evaluates accuracy on held-out data after each epoch. Inference through pipeline returns a label and a score. You hold the weights, so no vendor can retire the model, but you pay for the engineering and the serving hardware.
Hugging Face AutoTrain, a no-code wrapper with CSV and JSONL support, is no longer maintained, according to its GitHub README. Its README recommends TRL or the Transformers Trainer instead.
Parsec covers a related case for teams whose "intents" are really actions in an agent. According to Parsec's TOD page, its TOD model ranks the next action from a list of allowed actions, and a confidence gate passes uncertain turns unchanged to the parent LLM. The page lists $0.30 per 1,000 decisions, billed on top of the parent model, which would be $300 for one million decisions. It also reports that TOD scored below its own untrained base model on Parsec's public decision benchmark. Parsec says that it tunes decision models on a customer's own decisions, but it publishes no price for that service and names no deployment options. Its MIT-licensed openjev-sdk supports the do-it-yourself route.
The live options differ most in data needs, confidence handling and retirement risk
The options that still train on your data, as of November 24, 2026, compare as follows.
| Option | Data guidance | Confidence handling | Status |
|---|---|---|---|
| Amazon Comprehend | 50 per class (multi-class) | Score for every class | Live |
| Amazon Lex V2 | 10 or more per intent | Fallback intent for ambiguous input | Live |
| Google Dialogflow CX | 10 to 20 per intent | No-match event below threshold | Live |
| Azure CLU | 80/20 train and test split | Scores differ by training mode | Retires March 31, 2029 |
| Hugging Face Transformers | Your choice | Label and score per message | Self-hosted |
Four services are missing from this table. Cohere deprecated fine-tuning on September 15, 2025. Google shut down Vertex AI AutoML Text on June 15, 2025. Mistral marks its Classifier Factory as deprecated, and OpenAI's fine-tuning platform no longer accepts new users. Eligible existing OpenAI customers can create training jobs until January 6, 2027.
Labeled data from a retired service moves to a live one with small format changes
A team that leaves a retired service keeps its training data, and the formats differ mainly in field names. Every format stores the same two facts per row: the text and the label.
| Service | Training file shape | Status on Nov. 24, 2026 |
|---|---|---|
| Amazon Comprehend | CSV, label then text, no header row | Live |
| Hugging Face Transformers | text and label fields |
Live, self-hosted |
| Mistral Classifier Factory | JSONL, text plus a labels object |
Deprecated |
| OpenAI fine-tuning | JSONL chat messages, label as the assistant reply | Closed to new users |
Moving Mistral data to Comprehend means writing each labels value into the first CSV column and the text value into the second. Moving OpenAI data means taking the user message as the text and the assistant reply as the label. Mistral rows with several targets need Comprehend's multi-label mode or one classifier per target. OpenAI accepted as few as 10 examples in total, so a small OpenAI training set may need more rows to reach Comprehend's 50 per class.
A trained classifier costs more than a cached LLM prompt at one million messages a month
This worked example uses list prices for a support team that classifies 1,000,000 messages a month. It assumes that each message averages 200 characters, or about 50 tokens. For the LLM, it assumes 400 tokens of instructions and intent descriptions per request and 5 output tokens for the label.
- Amazon Comprehend in asynchronous mode bills each 200-character message at the 300-character minimum, so each one costs 3 × $0.0005, or $0.0015. That comes to $1,500 a month, plus $0.50 for model storage and $3 per hour of training.
- Amazon Comprehend on one real-time inference unit costs $0.0005 × 86,400 seconds × 30 days, or $1,296 a month. One unit handles 2 messages per second, or about 5.2 million a month, so it covers this average load. Whether it covers peak traffic has not been measured.
gpt-6-lunawithout caching uses 450 million input tokens at $0.10 per million, which is $45, plus 5 million output tokens at $0.50 per million, which is $2.50. The total is $47.50.gpt-6-lunawith the instructions cached bills 400 million tokens at $0.01 per million, which is $4, plus 50 million at $0.10, which is $5, plus $2.50 for output. The total is $11.50, before any reasoning tokens, which this example does not include.
On these assumptions, the LLM prompt is the cheapest by list price. The case for a trained classifier therefore rests on a fixed label set, a score for every label and a model that does not depend on prompt changes, rather than on price. No published test compares the accuracy of these options on the same intent data, so a team should test the cheaper prompt on its own held-out set before relying on it.
Sources
- Amazon Comprehend, Custom classification: https://docs.aws.amazon.com/comprehend/latest/dg/auto-ml.html
- Amazon Comprehend, Classifier training file formats: https://docs.aws.amazon.com/comprehend/latest/dg/prep-class-data-format.html
- Amazon Comprehend, Multi-class mode: https://docs.aws.amazon.com/comprehend/latest/dg/prep-classifier-data-multi-class.html
- Amazon Comprehend, Guidelines and quotas: https://docs.aws.amazon.com/comprehend/latest/dg/guidelines-and-limits.html
- Amazon Comprehend, Training classification models: https://docs.aws.amazon.com/comprehend/latest/dg/training-classifier-model.html
- Amazon Comprehend, ClassifyDocument API: https://docs.aws.amazon.com/comprehend/latest/APIReference/API_ClassifyDocument.html
- Amazon Comprehend pricing: https://aws.amazon.com/comprehend/pricing/
- Amazon Lex V2, Sample utterances: https://docs.aws.amazon.com/lexv2/latest/dg/sample-utterances.html
- Amazon Lex V2, AMAZON.FallbackIntent: https://docs.aws.amazon.com/lexv2/latest/dg/built-in-intent-fallback.html
- Google Dialogflow CX, Training: https://docs.cloud.google.com/dialogflow/cx/docs/concept/training
- Google Dialogflow CX, Intents: https://docs.cloud.google.com/dialogflow/cx/docs/concept/intent
- Google Vertex AI, Text classification training and deprecations: https://docs.cloud.google.com/vertex-ai/docs/text-data/classification/train-model
- Microsoft, What is conversational language understanding?: https://learn.microsoft.com/en-us/azure/ai-services/language-service/conversational-language-understanding/overview
- Microsoft, Build, train and deploy a CLU model: https://learn.microsoft.com/en-us/azure/ai-services/language-service/conversational-language-understanding/how-to/train-model
- Microsoft, Azure AI Language pricing: https://azure.microsoft.com/en-us/pricing/details/cognitive-services/language-service/
- Cohere, Fine-tuning: https://docs.cohere.com/docs/classify-fine-tuning
- Mistral, Classifier Factory: https://docs.mistral.ai/resources/deprecated/finetuning/classifier-factory
- OpenAI, Supervised fine-tuning: https://developers.openai.com/api/docs/guides/supervised-fine-tuning
- OpenAI, API pricing: https://developers.openai.com/api/docs/pricing
- Hugging Face, AutoTrain repository: https://github.com/huggingface/autotrain-advanced
- Hugging Face Transformers, Text classification: https://huggingface.co/docs/transformers/en/tasks/sequence_classification
- Parsec, TOD: https://parseclab.ai/tod/
- Parsec, Decision models: https://parseclab.ai/solutions/decision-models/
- Parsec, open-jev repository: https://github.com/daseinlabs/open-jev