{"id":"dat-cs-refund-queue-dedupe","audience":"customer-support","category":"data","technique":"context","title":"Clean a refund queue with duplicate entries","free":false,"task":"You're handing the open refund queue to finance. Several agents logged the same orders, one customer withdrew, and you already refunded order #4540 this morning (not in the log yet). Write one numbered line per remaining open order (there are 4), as #order - $amount, in order-number order, then one unnumbered last line: Total: a + b + c + d = $X. Plain text, under 50 words.","materialLabel":"Refund log (attached to your prompt automatically)","material":"REFUND REQUESTS LOG - shared sheet, Nov 3-7\n\n- #4471, $35, wrong size (Ana)\n- #4502 - $120 - arrived broken (Ben)\n- order 4471, 35.00, customer says still waiting (Ben)\n- #4519, $60, never delivered (Cara)\n- 4502 / $120 / photo of damage attached (Cara)\n- #4533, $18, changed mind (Ana) -- UPDATE: customer withdrew request, keeping item\n- #4540, $75, double charged (Ben)\n- #4519, $60.00, 2nd follow-up (Ana)\n- #4555, $42, wrong color (Cara)\n\nTeam notes:\n- Finance batch runs Friday at 2 pm.\n- Please stop putting refunds in the old Trello board.\n- Ben is training two new agents next week.\n- Finance processes the queue in one batch.\n- Shared with the team in the usual folder.","rules":[{"type":"numberedItems","count":4},{"type":"plainText"},{"type":"maxWords","max":50}],"mistakes":[{"title":"Not saying to merge duplicates","why":"The AI lists every log row, so three orders show up twice.","fix":"Add: \"Merge duplicates: one line per order number.\"","checks":["r0","numberedItems"]},{"title":"Not telling the AI what you did","why":"It can't know you refunded #4540 this morning.","fix":"Add: \"Leave out #4540, I refunded it this morning, and #4533, which was withdrawn.\"","checks":["r1"]},{"title":"Leaving the shape open","why":"The AI copies names, reasons and team notes.","fix":"Add: \"Only #order - $amount, then Total: a + b + c + d = $X.\"","checks":["r2"]},{"title":"Trusting the AI to count words","why":"AI is bad at counting. Ask for a total word limit and it often lands over it.","fix":"Cap each line: \"each line under 5 words.\"","checks":["maxWords"]},{"title":"Forgetting where it goes","why":"AI loves markdown tables and bold, which show up as clutter in a finance ticket.","fix":"Add: \"Plain text, no bold, headings or tables.\"","checks":["plainText"]}],"promptHints":[{"label":"Asks to merge duplicates","patterns":["dedup|duplicate|merge|once"]},{"label":"Mentions the morning refund","patterns":["4540","already refunded","this morning"]},{"label":"Drops the withdrawn one","patterns":["withdr","4533"]},{"label":"Asks to show the math","patterns":["show (the |your )?(math|work)","x \\$|\\bx\\b.{0,10}=","calculation","step"]},{"label":"Asks for plain text","patterns":["plain","no bold","no markdown","no formatting","no (headings|tables)"]}],"hint":"The log has repeats, and it doesn't know what you did this morning. Tell the AI both and show it the exact line shape.","rubricLabels":["Each order appears once: #4471 - $35, #4502 - $120, #4519 - $60, #4555 - $42 (no duplicates)","#4533 (withdrawn) and #4540 (already refunded this morning) are left out","The last line gives Total: 35 + 120 + 60 + 42 = $257, with no agent names, reasons or intro"]}