timezone, hours, slot_minutes, calendar_id, send_invites.
SCOPE · number For an owned number assigned to an agent, send only return_url to start Google Calendar consent. Open the returned url for the calendar owner. A competing calendar is refused. Read the number’s status after consent to confirm connection.
Read the compact AI rules
Set the availability and invitation rules for a connected Google Calendar number, then read back the saved configuration.
Scope: Connected owned number ·
Hours: Complete seven-day map ·
Invitations: Boolean preference
The important part
- A supplied hours object replaces all seven days; overnight intervals are refused.
- Omitted fields retain their saved values.
- send_invites requests Google notifications; it does not confirm inbox delivery or notify the owner separately.
Read connection status
Complete the Google Calendar connection first and read its current status.needs_reconnect:true requires renewed consent; reconnect preserves business settings. A failed status check leaves connection state unknown rather than proving disconnection.
An explicit per-number IANA time zone wins; older saved settings can inherit the agent’s time zone. Use the intended calendar zone before interpreting local opening times.
Prepare a focused settings change
Use PATCH Google Calendar settings. Send one or more documented fields. This complete example shows a seven-day map and an explicit invitation choice:HH:MM form. Closing must be later on the same day. Valid slot lengths are 15, 30, 45 and 60 minutes. Omitting hours keeps the saved map; supplying it replaces the entire map.
Choose notification behaviour
send_invites is a JSON boolean. Existing connections without a stored value default to true. Omit the field to preserve its current value; strings such as "false", null and numbers are refused.
When enabled, Google is asked to email the caller an invitation, update or cancellation. Google controls delivery. The engine does not add the owner as an attendee or send a separate owner email. When false, no Google notification is requested.
Calendar notification and an in-call text are separate outcomes. A successful booking does not confirm that an SMS was accepted or an email reached an inbox.