{"id":"cx-macro-merge-field-validity-table","audience":"customer-support","category":"support-work","technique":"verification","track":"support","level":"intermediate","title":"Find invalid merge fields in five macros","free":false,"task":"The only valid merge fields are {{first_name}}, {{order_id}} and {{agent_name}}, exactly as written (lowercase, no spaces). Output a table with the header \"Macro | Invalid fields\" and five rows M1 to M5, listing each invalid field exactly as it appears or \"none\", then a last line \"Fix: M#, M#\". Plain text, under 60 words.","materialLabel":"Your material (attached to your prompt automatically)","material":"MACROS\nM1: \"Hi {{firstname}}, your order {{order_id}} has shipped. {{agent_name}}\"\nM2: \"Hello {{first_name}}, thanks for waiting. {{agent_name}}\"\nM3: \"Hi {{first_name}}, we received order {{ order_id }} from {{company}}. {{agent_name}}\"\nM4: \"Hi {{first_name}}, your order {{order_id}} is on its way. {{agent_name}}\"\nM5: \"Hi {{First_name}}, sorry about order {{order_id}}. {{agent_name}}\"\n\nNOTE: The macro tool treats field names as case-sensitive and does not allow spaces inside the braces. A macro with an invalid field sends the raw text, for example 'Hi {{firstname}}', to the customer. These five macros are the ones used most this month; the library has about 140 in total, and the next audit covers the rest.","rules":[{"type":"plainText"},{"type":"maxWords","max":60}],"mistakes":[{"title":"Missing the spaced field","why":"The AI passes {{ order_id }} because it looks right.","fix":"Say: \"No spaces inside the braces.\"","checks":["r1"]},{"title":"Ignoring case","why":"The AI passes {{First_name}}.","fix":"Say: \"Field names are case-sensitive.\"","checks":["r1"]},{"title":"Missing the summary line","why":"The AI stops at the table.","fix":"Give the last-line format.","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":["macro \\| invalid fields"]},{"label":"Lists the valid fields","patterns":["first_name","order_id","agent_name"]},{"label":"States case and spacing rules","patterns":["case","spaces","lowercase"]},{"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, list the valid fields and say that case and spaces matter.","rubricLabels":["The first row is \"Macro | Invalid fields\" followed by rows M1 to M5","M1 lists {{firstname}}, M2 none, M3 lists {{ order_id }} and {{company}}, M4 none, M5 lists {{First_name}}","The last line is exactly \"Fix: M1, M3, M5\""]}