# GHL Calendar

With the GHL Calendar action, you're able to have the AI write and read from a calendar as long as you have both set up!

<figure><img src="/files/hajNj2MrYHyOVn2yH88X" alt=""><figcaption></figcaption></figure>

In the "Account" setting, you can select the calendar that you'd like the AI to use. This will only display calendars that you've already connected to Capri, though!

The most important thing to remember when setting up the calendar action for your agent is that you will need two of these actions, one with the activity set to "Read" and one with the activity set to "Write"!

<figure><img src="/files/aBp3xBezq8ea92UrMAxr" alt=""><figcaption></figcaption></figure>

For the prompt, with the "Read" action, you will need to tell the AI when it should check the calendar, for example, when the contact mentions booking an appointment, or when the contact answers the last qualifying question (you'll need to include what that question is in the prompt), etc.

For the "Write" prompt, you will just need to let the AI know when to write to the calendar, such as when the contact has confirmed their time that they would like!

<figure><img src="/files/CtIDIM0uvcjl7BeoRt2y" alt=""><figcaption></figcaption></figure>


---

# 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.capriai.us/capri-portal/setting-up-actions/ghl-calendar.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.
