{"id":"cx-ticket-assignment-first-eligible-agent","audience":"operations","category":"support-work","technique":"constraints","track":"support","level":"advanced","title":"Assign six tickets to agents with language, tier and capacity rules","free":false,"task":"Process the tickets in order T1 to T6. Assign each ticket to the first agent in the list who speaks its language, handles its tier and has fewer than 2 tickets so far; otherwise \"Unassigned\". Output a table with the header \"Ticket | Agent\" and six rows. Plain text, under 40 words.","materialLabel":"Your material (attached to your prompt automatically)","material":"AGENTS (in this order)\nAna: English, Spanish; tiers 1 and 2\nBen: English; tier 1\nCai: English, French; tiers 1, 2 and 3\nDee: Spanish; tier 1\n\nTICKETS (in this order)\nT1: Spanish, tier 1\nT2: English, tier 2\nT3: French, tier 1\nT4: Spanish, tier 1\nT5: English, tier 3\nT6: Spanish, tier 2\n\nNOTE\nCapacity is counted across the whole list: no agent can get a third ticket. The most senior agent is Cai, but seniority does not change the order above.","rules":[{"type":"plainText"},{"type":"maxWords","max":40}],"mistakes":[{"title":"Exceeding capacity","why":"The AI gives Ana a third ticket for T4 or T6.","fix":"Say: \"No agent gets more than 2 tickets.\"","checks":["r1","r2"]},{"title":"Choosing the senior agent","why":"The AI prefers Cai.","fix":"Say: \"Use the first eligible agent in list order.\"","checks":["r1","r2"]},{"title":"Forcing an assignment","why":"The AI assigns T6 to Dee.","fix":"Say: \"If no one qualifies, write Unassigned.\"","checks":["r2"]},{"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":"Trusting the AI to count words","why":"AI is bad at counting and usually runs long, so a vague \"keep it short\" lands well over the limit.","fix":"Cap each part instead of the total, for example \"each line under 15 words\".","checks":["maxWords","r0"]}],"promptHints":[{"label":"Gives the header","patterns":["ticket \\| agent"]},{"label":"States the first-eligible rule","patterns":["first agent","in order","first eligible"]},{"label":"States the capacity rule","patterns":["fewer than 2","2 tickets","capacity"]},{"label":"Asks for plain text","patterns":["plain","no bold","no markdown","no formatting","no headings"]},{"label":"Sets a length limit","patterns":["\\d+\\s*words","word (limit|count)","under \\d+"]}],"hint":"Give the header and spell out the first-eligible rule with the capacity limit.","rubricLabels":["The first row is \"Ticket | Agent\" followed by rows T1 to T6","T1 Ana, T2 Ana, T3 Cai","T4 Dee, T5 Cai, T6 Unassigned"]}