$npx -y skills add googleworkspace/cli --skill recipe-find-free-timeQuery Google Calendar free/busy status for multiple users to find a meeting slot.
| 1 | # Find Free Time Across Calendars |
| 2 | |
| 3 | > **PREREQUISITE:** Load the following skills to execute this recipe: `gws-calendar` |
| 4 | |
| 5 | Query Google Calendar free/busy status for multiple users to find a meeting slot. |
| 6 | |
| 7 | ## Steps |
| 8 | |
| 9 | 1. Query free/busy: `gws calendar freebusy query --json '{"timeMin": "2024-03-18T08:00:00Z", "timeMax": "2024-03-18T18:00:00Z", "items": [{"id": "user1@company.com"}, {"id": "user2@company.com"}]}'` |
| 10 | 2. Review the output to find overlapping free slots |
| 11 | 3. Create event in the free slot: `gws calendar +insert --summary 'Meeting' --attendee user1@company.com --attendee user2@company.com --start '2024-03-18T14:00:00' --end '2024-03-18T14:30:00'` |