{"id":"agent-mgr-team-pto-calendar-sync","audience":"managers","category":"agents","track":"agents","technique":"grounding","title":"Brief an assistant to put approved time off on the team calendar","free":false,"task":"You want an AI assistant to add your team's time off to the shared calendar from HR emails. Write its brief: add only approved requests as all-day events titled \"Out of office: [Name]\", send pending requests to you with ASK_HUMAN, use the dates exactly as approved, and never decline or move anyone's meetings. Output exactly 5 numbered plain-text lines: one per request in email order, then DONE.","materialLabel":"HR emails and actions (attached to your prompt automatically)","material":"HR notifications - PTO (team: Analytics)\n\n1. \"Approved: Lena Brooks, Nov 16-17 (2 days).\"\n2. \"Pending manager review: Marcus Yee, Nov 23-25 (3 days).\"\n3. \"Approved: Priya Raman, Nov 27 (1 day). Note: originally requested Nov 26-27, approved for Nov 27 only.\"\n4. \"Approved: Tomas Ferreira, Dec 21-24 (4 days).\"\n\nTomas on Slack: \"Can the bot also decline my meetings those days? Thanks!\"\n\nTeam calendar: \"Analytics Team\" (shared with 14 people)\n\nAvailable actions:\ncreate_event(calendar, title, start_date, end_date, all_day)\ndecline_meetings(person, start_date, end_date)\nmove_event(event, new_date)\nASK_HUMAN(question)\nDONE(summary)","rules":[{"type":"numberedItems","count":5},{"type":"plainText"}],"promptHints":[{"label":"Only approved requests","patterns":["approved","pending"]},{"label":"Sets the title","patterns":["out of office","title"]},{"label":"Uses approved dates","patterns":["exact","approved dates","as approved"]},{"label":"Forbids declining meetings","patterns":["decline","move"]},{"label":"Shows the action-log format","patterns":["action:","action log","numbered","\\b1\\.","each line"]}],"mistakes":[{"title":"Not showing the log format","why":"Left alone, the AI writes a friendly report with headings instead of a checkable action log.","fix":"Show it literally: \"Format every line like 1. ACTION: tool(args), then ASK_HUMAN: and DONE: lines. Plain text.\"","checks":["numberedItems","plainText"]},{"title":"Copying the wrong dates","why":"The AI uses Priya's original request instead of the approved day, or makes up its own title.","fix":"Add: \"Use the approved dates exactly. Title: Out of office: Name, all day.\"","checks":["r0"]},{"title":"Adding pending requests","why":"The AI puts everything on the calendar, so the team plans around time off that isn't approved.","fix":"Add: \"Only approved requests. Pending ones go to ASK_HUMAN.\"","checks":["r1"]},{"title":"Acting on people's meetings","why":"Someone asks, so the AI declines their meetings for them.","fix":"Add: \"Never decline or move meetings.\"","checks":["r2"]}],"hint":"Calendars spread mistakes to everyone who reads them. Tell the assistant which requests count, which dates win, and what it must leave alone.","rubricLabels":["Creates all-day events titled \"Out of office: [Name]\" for Lena (Nov 16-17), Priya (Nov 27 only, not Nov 26) and Tomas (Dec 21-24)","Marcus's pending request goes to ASK_HUMAN and gets no calendar event","There is no decline_meetings or move_event line, and the last line is a DONE line"]}