{"id":"cs-ticket-themes-top-three-counts","audience":"customer-support","category":"support-work","technique":"verification","track":"support","level":"intermediate","title":"Count ticket tags into the top three themes","free":false,"task":"Count the tickets by theme using the tag mapping, and output exactly 3 numbered lines like \"1. Login: 5 tickets\", for the three themes with the most tickets, highest first. Break ties alphabetically. Ignore tickets tagged \"spam\". Then a last line \"Total counted: N\". Plain text, nothing else.","materialLabel":"Your material (attached to your prompt automatically)","material":"TAG MAPPING: login, sso, Login/SSO -> Login. export, csv export, Export -> Exports. invoice, billing, Billing -> Billing. report, Report -> Reports. api -> Integrations.\n\nTICKET TAGS (week of Nov 2; one tag per ticket)\nlogin, sso, Billing, export, Login/SSO, report, invoice, csv export, login, spam, api, billing, report, sso, Export, spam, report, invoice, Report, api, Billing, export\n\nNote: the dashboard shows 22 tickets this week. Two are spam.\nContext: the support team reviews the top themes every Monday with the CS director, and the tags are typed freely by agents, so the same theme often appears under several spellings. The mapping above was agreed last quarter and is the only one in use. This week's volume is about average, and no single theme is tied to an outage.","rules":[{"type":"plainText"},{"type":"numberedItems","count":3},{"type":"maxWords","max":45}],"mistakes":[{"title":"Counting spam","why":"The AI counts the 22 on the dashboard.","fix":"Say: \"Ignore tickets tagged spam.\"","checks":["r2"]},{"title":"Not merging tags","why":"The AI treats login and sso as separate themes.","fix":"Say: \"Merge tags using the mapping.\"","checks":["r1"]},{"title":"Wrong tie order","why":"The AI puts Login first.","fix":"Say: \"Break ties alphabetically.\"","checks":["r1"]},{"title":"Getting markdown back","why":"AI adds bold and headings by default, which show up as stray symbols where this is pasted.","fix":"Say \"plain text, no bold, no headings, no asterisks\".","checks":["plainText"]},{"title":"Leaving the item count open","why":"The AI adds or drops items to feel complete.","fix":"Say \"exactly N numbered lines, nothing else\".","checks":["numberedItems"]},{"title":"Trusting the AI to count words","why":"The AI runs long and cannot count its own words.","fix":"Cap each part (\"each line under 12 words\") and add \"under N words in total\".","checks":["maxWords"]},{"title":"Leaving a requirement unstated","why":"The AI follows its own defaults unless the prompt spells this out.","fix":"State it plainly in your prompt: the output has exactly 3 numbered lines in the format 'N. Theme: X tickets' followed by a last line starting 'Total counted:'.","checks":["r0"]}],"promptHints":[{"label":"Line format","patterns":["n\\. theme","tickets","1\\."]},{"label":"Uses the mapping","patterns":["mapping","merge"]},{"label":"Tie rule","patterns":["tie","alphabetical"]},{"label":"Ignore spam","patterns":["spam"]},{"label":"Asks for plain text","patterns":["plain","no bold","no markdown","no formatting","no headings"]},{"label":"Sets the exact item count","patterns":["exactly \\d+","\\d+\\s*(numbered|lines|items|steps)","numbered"]},{"label":"Sets a word cap","patterns":["\\d+\\s*words","under \\d+","word"]}],"hint":"Counting needs a mapping, a tie-break rule and an exclusion rule. State all three.","mission":"Find the three themes with the most tickets.","musts":["Ignore spam tags","Ties alphabetical","Total counted line"],"rubricLabels":["The output has exactly 3 numbered lines in the format \"N. Theme: X tickets\" followed by a last line starting \"Total counted:\"","The top three are 1. Billing: 5 tickets, 2. Login: 5 tickets and 3. Exports: 4 tickets, with the Billing and Login tie ordered alphabetically","Reports (also 4, losing the alphabetical tie to Exports) and Integrations (2) are not listed, spam is ignored, and the last line is \"Total counted: 20\""]}