> For the complete documentation index, see [llms.txt](https://distance.gitbook.io/distance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://distance.gitbook.io/distance/getting-started/integrations/setting-up-integration-with-google-calendar.md).

# Setting up integration with Google Calendar

### **Introduction**

The Google Calendar integration allows Distance to connect with your Google Calendar for appointment scheduling. Once connected, you can enable booking for your AI agents so they can share your booking link and help customers schedule appointments during conversations.

***

### **Connect your Google account**

In Distance, go to **Settings**, then **Integrations**.

<div data-with-frame="true"><figure><img src="/files/ybv91kLokxup1Af34PO9" alt=""><figcaption></figcaption></figure></div>

Under **Essential integrations**, locate **Google Calendar**, then click **Connect**.

<div data-with-frame="true"><figure><img src="/files/VEfLuOqsarWnvc4ChVl8" alt=""><figcaption></figcaption></figure></div>

On the **Connect Google Calendar to Distance** screen, click **Connect Google Calendar**.

<div data-with-frame="true"><figure><img src="/files/JbKMrsqySAph85cPbTg8" alt=""><figcaption></figcaption></figure></div>

If you're already signed in to Google, select the Google account you want to use. Otherwise, click **Use another account** and sign in.

On the **Sign in with Google** screen, click **Continue**.

<div data-with-frame="true"><figure><img src="/files/wDhmTyMRLrWffVQxCJp9" alt=""><figcaption></figcaption></figure></div>

On the **Distance wants access to your Google Account** screen, under **Select what Distance can access**, tick **View and edit events on all your calendars**, then click **Continue**.

<div data-with-frame="true"><figure><img src="/files/zmU0TVMv8oYaz3JMIYSn" alt=""><figcaption></figcaption></figure></div>

Once completed, you can return to the **Essential integrations** section to confirm that Google **Calendar** has successfully connected.

<div data-with-frame="true"><figure><img src="/files/puyM1Q2jJV0teBauXupy" alt=""><figcaption></figcaption></figure></div>

***

### **Set up Google Calendar for booking**

After connecting your Google account, go to **Knowledge Base** from the left sidebar, then open the **Scheduling and services** tab. Under **Booking**, select **Google Calendar**, then click **Connect Platform**.

<div data-with-frame="true"><figure><img src="/files/u3qPmzRlZYGpInqqbjUY" alt=""><figcaption></figcaption></figure></div>

A confirmation message appears indicating that the booking platform has been connected successfully.

<div data-with-frame="true"><figure><img src="/files/GssTDyq7peZtFGx8OpCi" alt=""><figcaption></figcaption></figure></div>

***

### **Configure the default attendee**

Under **Scheduling and Services**, in the **Default attendees** section, click **Add member** and select one or more team members who should receive booking invitations for appointments scheduled through **Google Calendar**.

<div data-with-frame="true"><figure><img src="/files/o9MYtpPLYUiOmmA0AUNG" alt=""><figcaption></figcaption></figure></div>

Once selected, click **Save attendees** to confirm your changes. The selected team members will be added as default attendees for appointments created through the booking integration.

***

### **Add your services**

In the **Scheduling and Services** tab, scroll down to the **Services** section.

<div data-with-frame="true"><figure><img src="/files/uqGiIm5UvOzhs6dHs9CV" alt=""><figcaption></figcaption></figure></div>

Click **Create** to open the **Create a service** screen.

<div data-with-frame="true"><figure><img src="/files/DJiRnE1RnhoGSucMGiE8" alt=""><figcaption></figcaption></figure></div>

Enter the following information:

* **Title** – The name of the service.
* **Description** – A brief description of the service.
* **Duration** – Select the appointment length. Available options are **30 minutes**, **1 hour**, or **2 hours**.

Click **Create** to save the service. Repeat these steps for any additional services you want customers to book.

***

### **Enable appointment scheduling for your AI agent**

Go to **Agents** from the left sidebar. Under **AI Chat** or **AI Voice**, click **Edit** next to the agent you want to configure, then go to the **Capabilities** tab.

<div data-with-frame="true"><figure><img src="/files/DTq0YB4I9G0CYytpSfE6" alt=""><figcaption></figcaption></figure></div>

In the **Knowledge** section, enable **Schedule appointments**, then select **via Integration**.

<div data-with-frame="true"><figure><img src="/files/6AnyxPBCYedCUXgDI4CY" alt=""><figcaption></figcaption></figure></div>

This allows the AI agent to use the connected **Google Calendar** integration when helping customers schedule appointments during conversations.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://distance.gitbook.io/distance/getting-started/integrations/setting-up-integration-with-google-calendar.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
