Sync Workday PTO with Google Calendar by declining meetings on PTO days. Uses browser for Workday, API for Calendar. Use when user says "sync PTO", "decline meetings on PTO days", or "PTO calendar".
Fetch approved PTO from Workday, find meetings on those days, and decline them with an automatic message.
| Input | Type | Default | Purpose |
|---|---|---|---|
dry_run | bool | true | Preview without declining |
days_ahead | int | 90 | Days to check for PTO |
decline_message | string | "I'll be out of office on PTO..." | Message when declining |
skip_all_day | bool | false | Skip all-day events |
skip_organizer_self | bool | true | Skip meetings you organized |
persona_load("meetings") — Google Calendar toolsgoogle_calendar_status — verify API accessiblebrowser_navigate(url="https://wd5.myworkday.com/redhat/d/home.htmld")browser_wait_for(selector="body")browser_snapshot — check for auth (sign in, login)browser_click(text="Time Off")browser_wait_for(text="My Time Off")browser_click(text="My Time Off")browser_snapshot — parse for approved PTO dates (YYYY-MM-DD, MM/DD/YYYY, DD-Mon-YYYY)google_calendar_list_events(days=days_ahead, max_results=100)skill_run("sync_pto_calendar", '{"dry_run": false}')google_calendar_decline_meetings_on_date(date, message=decline_message, dry_run=false, skip_all_day, skip_organizer_self)memory_session_log("PTO Calendar Sync", "PTO dates: X, Meetings declined: Y")