campaignstack_get_free_slots
Find the next available time slots in the user's Google Calendar. Fetches events for up to 14 days from fromDate, then returns the first N gaps that fit the requested duration. When businessHoursOnly is true (default), slots are restricted to the account's configured scheduling hours (schedulingStartHour/schedulingEndHour, default 9 AM–6 PM) in the Google account's timezone (auto-detected from the calendar on connect; falls back to UTC). Requires a Google account to be connected and linked to the workspace. If googleAccountId is omitted, uses the first connected Google account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of free slots to return (default: 3) | |
| fromDate | Yes | Start of the search window (ISO 8601 string, e.g. '2026-06-17T00:00:00Z'). Slots earlier than this date are excluded. | |
| workspaceId | No | Workspace ID (defaults to the bound workspace) | |
| durationMinutes | No | Duration of each slot in minutes (default: 30) | |
| googleAccountId | No | Google account ID to use. Defaults to the first connected Google account linked to the workspace. | |
| businessHoursOnly | No | If true (default), only return slots within business hours (9 AM–6 PM in the Google account's timezone, defaults to UTC if not set) |