---
id: ssh2-recipe-find-free-time
name: "recipe-find-free-time"
url: https://skills.yangsir.net/skill/ssh2-recipe-find-free-time
author: googleworkspace
domain: ai-productivity-automation
tags: ["google-calendar", "availability-checker", "meeting-scheduling", "time-management", "productivity-tools"]
install_count: 15100
rating: 4.50 (152 reviews)
github: https://github.com/googleworkspace/cli
---

# recipe-find-free-time

> 查询多个用户的Google日历忙闲状态，以找到所有参与者都可用的共同空闲时间。

**Stats**: 15,100 installs · 4.5/5 (152 reviews)

## Before / After 对比

### 快速查找多方空闲时间，高效安排会议。

## Readme

# Find Free Time Across Calendars

> **PREREQUISITE:** Load the following skills to execute this recipe: `gws-calendar`

Query Google Calendar free/busy status for multiple users to find a meeting slot.

## Steps

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"}]}'`
2. Review the output to find overlapping free slots
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'`



---
*Source: https://skills.yangsir.net/skill/ssh2-recipe-find-free-time*
*Markdown mirror: https://skills.yangsir.net/api/skill/ssh2-recipe-find-free-time/markdown*