# Calendar

Connect a Cal.com calendar with your AI agent. This allows the agent to check available appointments and make bookings for your callers. Currently, the integration supports retrieving available appointments and direct booking. Additional features will be added gradually.

## Requirements

* A Cal.com account (free or paid)
* At least one configured event type in Cal.com
* An API key from your Cal.com account

## Create Cal.com API key

1. **Log in to Cal.com** at [app.cal.com](https://app.cal.com/)
2. **Navigate to Settings > Security > API Keys**
3. **Create a new API key** and copy it immediately — it will only be shown once
4. **Store the key securely** — you will need it in the next step

{% hint style="warning" %}
API keys are valid for 30 days by default. In the Cal.com settings, you can adjust the validity period or create a key with unlimited validity.
{% endhint %}

## Set up calendar integration in sipgate

1. **Open your AI agent** and navigate to the **Calendar**
2. **Click "Add"** to open the setup dialog
3. **Enter your API key** and click on **Continue**
4. **Select the appropriate mode, the API region** and any additional IDs if needed (see table)
5. **Click Save**

## Configuration fields

| Field               | Required                                        | Description                                                  |
| ------------------- | ----------------------------------------------- | ------------------------------------------------------------ |
| **API token**       | Yes                                             | Your Cal.com API key (starts with `cal_` or `cal_live_`)     |
| **Mode**            | Yes                                             | Determines which calendar is accessed (see below)            |
| **API region**      | Yes                                             | US or EU — depending on where your Cal.com account is hosted |
| **Organization ID** | Only in "Organization" mode                     | The ID of your Cal.com organization                          |
| **Team ID**         | Only in "Team" mode, optional in "Organization" | The ID of your Cal.com team                                  |

## Select mode

| Mode             | Description                                                                     |
| ---------------- | ------------------------------------------------------------------------------- |
| **Personal**     | Access to your personal Cal.com calendar                                        |
| **Team**         | Access to a team calendar — requires a team ID                                  |
| **Organization** | Access at organization level — requires an organization ID, team ID is optional |

{% hint style="info" %}
You can find the team ID and organization ID in the URL when you open the respective team or organization in Cal.com.
{% endhint %}

## API region

| Region          | URL           | Use                                                    |
| --------------- | ------------- | ------------------------------------------------------ |
| **US (Global)** | `api.cal.com` | Default for Cal.com accounts                           |
| **EU**          | `api.cal.eu`  | For Cal.com accounts hosted in the EU (GDPR-compliant) |

{% hint style="info" %}
If you are unsure which region is correct, check the URL in your browser when you are logged in to Cal.com. If you use `cal.eu`, choose the EU region.
{% endhint %}

## Edit configuration

After setup, you can adjust the **Mode**, the **API region** and the **API token** separately at any time using the edit buttons.

## Good to know

* Your API key is automatically stored encrypted
* The AI agent checks availability in your Cal.com calendar for every call
* Changes to the configuration take effect immediately
* If you delete the integration, the agent can no longer check or book appointments
* Without an active playbook, appointment booking is not available.


---

# Agent Instructions: 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:

```
GET https://help.sipgate.de/ai-agents/en/connections-and-integrations/kalender.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
