Sorting support tickets by hand is slow, and asking a model to sort them with a paragraph of instructions is unreliable: you get back labels you never defined, explanations instead of labels, and a different spelling every time. The fix is to show the model what you want. A few worked examples, each a ticket text paired with the single label it should get, teach the pattern far more reliably than describing it.
This guide builds a complete few-shot block for ticket classification: an instruction line that names your label set, a handful of complete input and output pairs, and a trailing empty slot for the next real ticket. The assembly is done with the free Few-Shot Example Formatter on Ovatly, which turns your pairs into a clean, consistently labelled block you can paste at the top of a prompt.
Contents
- Quick answer
- Why examples beat instructions for classification
- Decide your label set first
- How to build the block, step by step
- Worked example: four tickets, four labels
- Keeping the pattern clean
- Limitations and alternatives
- Common mistakes
- FAQs
- Conclusion
Quick answer
Define a small label set, write an instruction line that names it, and prepare two to five complete example pairs: the input is a ticket text, the output is exactly one label from the set. Open the Few-Shot Example Formatter, type the instruction line, fill in the pairs, choose the Input/Output label style, keep the trailing empty prompt, and copy the block. Paste it at the top of your prompt and put each new ticket in the empty slot. Pairs missing either side are skipped, so completeness is the one thing to check before copying.
Why examples beat instructions for classification
Classification is a pattern task. The model has to map a messy, human written ticket onto one of a fixed set of labels, and reply with nothing but the label. Instructions alone leave too much open: which label wins when a ticket mentions two problems, whether to add a sentence of reasoning, whether "Login issue" and "login" count as the same label.
Examples close those gaps by demonstration. When every example output is a single short label, the model infers that the answer format is a single short label. When the same kind of ticket always gets the same label, the model infers your tie-breaking rule without you stating it. That is why consistency matters: the model infers the pattern from repetition, and if one pair says Input: while the next says Question -, the pattern is muddier and results vary more.
Decide your label set first
Before writing any pairs, settle the labels. Keep the set small: four to six labels cover most small support queues, and every extra label is another boundary the model has to guess at. Write each label exactly as it will appear in the outputs, and use that spelling everywhere, in the instruction line and in every pair.
A workable starter set for a small software product is: billing, login, bug, feature request. Each label is one or two plain words, and the labels do not overlap in an obvious way. There is no "other" bucket; if your queue needs one, add it deliberately and give it an example, because an undefined catch-all is where inconsistent answers collect.
The instruction line then names the set out loud, for example: "Classify each support ticket as billing, login, bug or feature request. Reply with the label only." That line is optional in the formatter, but for classification it earns its place: it tells the model the full menu, including any label that happens to have only one example.
How to build the block, step by step
- Open the Few-Shot Example Formatter and type your instruction line. Keep it to one or two sentences and name every label.
- Fill in the first pair: a ticket text as the input, its label as the output. Add pairs with the button until each label appears at least once. Aim for two to five pairs; sloppy extras actively hurt.
- Choose the label style. Input/Output fits classification best. Q/A and User/Assistant suit question answering and chat style prompts.
- Decide on the trailing empty prompt. Keeping it leaves a labelled slot at the end of the block, ready for the real ticket. Remove it only if your template adds that slot itself.
- Copy the block and paste it at the top of your prompt. Put the new ticket after the final
Input:label and let the model complete theOutput:line.
Worked example: four tickets, four labels
The example pairs below are illustrations written for this guide, built with the formatter's rules: an instruction line naming the label set, complete pairs only, one label per output. Entered into the formatter with the Input/Output style and the trailing empty prompt kept, they produce this block:
Classify each support ticket as billing, login, bug or feature request. Reply with the label only.
Input: I was charged twice for my subscription this month and need one payment refunded.
Output: billing
Input: The app signs me out every time I close it, even though I ticked stay signed in.
Output: login
Input: Since the update, the export button spins forever and no file downloads.
Output: bug
Input: It would help our team if reports could be scheduled to arrive by email each Monday.
Output: feature request
Input:
Output:
Read the block the way the model will. Every output is one label from the set named in the instruction. The bug example does quiet extra work: the label teaches that broken behaviour outranks everything else in that text. If your queue would call that ticket something else, change the example, because the examples are the real specification.
Keeping the pattern clean
Two habits keep a classification block reliable. First, pick examples that are clear members of their label, not your hardest edge cases. Edge cases teach hesitation; clear cases teach the format, and the model generalises from there. If one boundary matters, say the line between bug and feature request, include one example on each side of it so the contrast is visible.
Second, re-check completeness before every copy. The formatter skips any pair missing its input or its output, and if no pair is complete it tells you instead of producing an empty block. That catches the common accident of drafting a fifth example, never finishing it, and pasting a block that quietly has four.
Limitations and alternatives
The formatter guarantees consistency, not quality. It cannot judge whether your examples are good, whether a ticket is labelled correctly, or whether your label set is right for your queue. Two to five good examples usually beat ten sloppy ones, and no formatting fixes a wrong label.
The labels in the finished block are literal text. If the chat tool you use has its own few-shot or examples feature, use that instead of pasting a block. And keep expectations honest: examples steer the pattern strongly, but a genuinely ambiguous ticket can still land on either side of a boundary, so keep a human eye on sensitive categories like billing disputes.
Common mistakes
- Letting the label set drift. "login", "Login issue" and "account access" in different pairs teach three labels, not one. Pick a spelling and use it everywhere.
- Skipping the instruction line. Without it, a label with only one example can be missed entirely, and the model may invent labels for tickets unlike any example.
- Including an unfinished pair. It will be skipped silently in the output, so the block you paste may not be the block you think you built.
- Writing explanations into outputs. One pair whose output is "billing, because the user was charged twice" teaches the model to explain. Outputs should be the label and nothing else.
- Padding to ten examples. Quantity is not the lever. Five sharp examples outperform ten mixed ones, every time.
FAQs
How many example tickets should I include? Two to five good examples usually beat ten sloppy ones. Pick tickets that clearly belong to their label, format every pair the same way, and stop once each label in your set is covered at least once.
What should the instruction line say? It should name the task and the exact labels the model may use, for example: Classify each support ticket as billing, login, bug or feature request. The labels in the instruction and the labels in the pairs must match word for word.
What happens if I leave a pair half finished? Pairs missing either the input or the output are skipped. If no pair is complete, the formatter says so instead of producing an empty block, so a half finished draft never reaches your prompt unnoticed.
Which label style should I use for ticket classification? Input/Output reads naturally for classification, because the ticket is the input and the label is the output. Q/A suits question and answer tasks, and User/Assistant suits chat style prompts. Whichever you choose, every pair uses the same style.
What is the trailing empty prompt for? It leaves a labelled slot at the end of the block where the real ticket goes, with the answer label ready so the model continues in the same format and replies with just the label.
Conclusion
A classification prompt works when the specification is shown, not described: one instruction line naming a small label set, two to five complete pairs with one label per output, and an empty slot waiting for the real ticket. The Few-Shot Example Formatter assembles that block with identical labels and spacing every time, so the pattern the model sees is the pattern you meant. For the reply side of support work, the companion guide on teaching AI your exact review reply style with four examples applies the same method to drafted responses. More guides on getting consistent results from AI tools are in the AI and Prompt Tools guides.