> For the complete documentation index, see [llms.txt](https://help.supporthunt.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.supporthunt.com/action-blocks/calendar.md).

# Calendar

### When should you use this?&#x20;

* Collecting a date from the visitor
* Booking appointments&#x20;

### How do I set it up?&#x20;

{% embed url="<https://www.loom.com/share/439306e3b3534f4c97bfb28f5ff60511?sid=4ab59bb6-5225-4d4b-8f7b-fc6d9896ffe5>" %}
Setting up 'Calendar' action block
{% endembed %}

To set up the 'Calendar' action block, you can follow the following steps;&#x20;

* Add action block on canvas by clicking on '+' <br>
* Choose 'Calendar' <br>
* Configure following on right panel<br>
  * **Date Selection:** \
    \
    Configure the following under 'Date Selection' in the configuration message;<br>
    1. **Show Message:** \
       \
       You can set the message that you would like to send to the visitors along with calendar to book the appointment<br>
    2. **Define Variable:** \
       \
       Define variable in which the response of the visitors will be stored <br>
    3. **Date Selection:** \
       \
       Select nature of date selection from available options . You can enable 'Show Past Dates' to show the visitors past dates<br>
  * **Exclude Dates:** \
    \
    Select the 'Exclude Dates' tab and define any exclusion of dates that you don't want to be visible in the calendar UI. You can exclude dates by either; <br>
    * Selecting the days all together like Saturdays, Sundays etc.. This way all of these will not be selectable to the visitor. <br>
    * Selecting special dates like Christmas, Diwali, EID etc..&#x20;


---

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

```
GET https://help.supporthunt.com/action-blocks/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.
