# Calendars

Source: https://aicallstudio.com/docs/integrations/calendars

Connect a calendar so an agent that books an appointment on a call also puts it in your calendar and invites the caller.

## Before you start

- A plan that includes the Calendar channel. On a plan without it the Calendar card is locked, and a connection you already made stays manageable.
- A Google Calendar or Outlook / Microsoft 365 account of your own, and a Client ID, a Client Secret and a Refresh Token from it. The drawer's setup guide says where to find them.

## 1. Open Integrations and choose Calendar

On Integrations, the Calendar card books meetings automatically when a call agrees one. It opens Configure Calendar. There is one calendar per workspace: saving a different provider replaces the old one.

Where: [Integrations](https://aicallstudio.com/dashboard/integrations)

## 2. Get your sign-in details

There is no Connect with Google button. You paste three values from your own account: Client ID, Client Secret and Refresh Token. The drawer shows the setup guide for the provider you pick, step by step, with a link to its documentation.

The Client Secret and the Refresh Token work like passwords. The refresh token is what lets a meeting be booked hours later, without anyone signing in again.

Where: [Integrations](https://aicallstudio.com/dashboard/integrations)

## 3. Fill in the drawer

Pick the Calendar Provider, then paste the Client ID, Client Secret and Refresh Token. All three are needed, or no meeting can be booked. Outlook also has an optional Tenant ID, only for a single-tenant app.

Calendar ID is optional: blank books into the account's default calendar. Time Zone is the zone meeting times are written in, as an IANA name, and starts as Asia/Kolkata. Press Save connection.

Where: [Integrations](https://aicallstudio.com/dashboard/integrations)

## 4. Test it

Press Test on the row. A pass shows as Verified and means the provider accepts your details. It does not book anything.

Where: [Integrations](https://aicallstudio.com/dashboard/integrations)

## 5. Let the agent book

In Call Settings, under Actions during a call, Book appointments lets the agent book an appointment. Off, it can only take a preferred time down in conversation. Appointment length (minutes) is how long a booking runs, from 10 to 240, and starts at 30.

An agent or team can set its own values for these. Messages and bookings also need the channel or calendar connected in Integrations.

Where: [Call Settings](https://aicallstudio.com/dashboard/settings/calls)

## 6. Know what happens when the agent books

The agent creates an event at the time the caller agrees, and invites the caller by email when the call has their address. The time is saved on the contact. Any Appointment Booked workflow then runs, and the confirmation the customer gets is that workflow's message.

Nothing else is read from your calendar, so the agent does not check whether you are free. With no calendar connected, no event is made and the agent confirms the date and time back to the caller in words.

Where: [Contacts](https://aicallstudio.com/dashboard/contacts), [Workflows](https://aicallstudio.com/dashboard/workflows)

## 7. Fix a booking that failed

When a booking is refused, the card on Integrations shows Not working, with what failed, so an expired login shows before the next caller is promised an appointment. The next booking that works clears it. Open the card and enter fresh details.

Where: [Integrations](https://aicallstudio.com/dashboard/integrations)

## Every field

- **Calendar Provider**: Google Calendar, or Outlook / Microsoft 365.
- **Client ID**: The OAuth client ID from your own Google or Azure account.
- **Client Secret**: Created next to the client ID. Treat it like a password.
- **Refresh Token**: Lets a meeting be booked later without anyone signing in. It needs the offline access permission on Outlook.
- **Tenant ID**: Outlook only. For a single-tenant Azure app. If blank: Blank works for most accounts.
- **Calendar ID**: Which calendar to book into. If blank: Blank is the account's default calendar.
- **Time Zone**: The zone meeting times are written in, as an IANA name such as Asia/Kolkata. If blank: Blank is Asia/Kolkata.
- **Book appointments**: Call Settings action. Off: the agent only takes a preferred time down.
- **Appointment length (minutes)**: How long a booked appointment runs. If blank: Starts at 30. From 10 to 240.

## Costs and what to watch

- A refresh token that is revoked or expires stops every booking until you enter a new one.
- The agent books the time the caller agrees. It does not look at your calendar for a clash.
- The invite goes to the caller only when the call has their email address.
