Library › Customer Support & Success AI › Customer support teams
Flag five tickets as churn, legal or none, with legal taking priority
- For Customer support teams
- You practice Setting limits and rules
- Time about 5 minutes
- Level Advanced
About this exercise
Flag each ticket and return one JSON code block with an array of five objects, one per line. Keys: id, flag (exactly "churn", "legal" or "none"), quote (a verbatim phrase of 6 words or fewer). If both churn and legal apply, use "legal". A legal flag is only for routing to the legal team; do not judge the claim. Nothing outside the block. At most 7 lines of code.
Common mistakes when you ask AI for this
- Flagging T5 as churn. T5 mentions cancelling and an attorney. Try: Say: "Legal wins over churn when both apply."
- Paraphrased quotes. The AI rewrites the phrases. Try: Say: "Quotes word for word, 6 words or fewer."
- Extra text. The AI adds an explanation. Try: Say: "One JSON code block, keys id, flag, quote."
- Skipping the code block shape. The AI splits output into several code blocks or none. Try: Say "exactly one code block and nothing else".
- Letting the code sprawl. The AI adds extra lines and comments. Try: Say "at most N lines of code".
What a strong prompt includes
- Asks for one code block
- Caps the code length
- Names the keys and values
- States the priority
Related exercises
- Accept the buyer's counteroffer on three stated conditions (Sales AI · Sales and customer success)
- Accrue goods received but not invoiced at PO price (Finance AI · Accountants)
- Acknowledge an executive escalation within the hour (Customer Support & Success AI · Executives)
- Add dark mode by overriding your existing CSS variables (Coding AI · Software developers)
- Add input checks to your number guessing game (Coding AI · High school students)