# Calendar

The calendar action block opens a calendar UI in the chat widget. Visitors can choose a date from the calendar view.

Some use cases of the calendar block are appointment booking, requesting a callback, and entering a date of birth.

Here is what you need to setup the calendar action block:

Setting up 'Calendar' action block

### Question <a href="#question" id="question"></a>

Before showing the calendar UI, you need to ask a question to let users know why they are seeing it in the first place.

For example, “Select your desired date of appointment”.

### Variable <a href="#variable" id="variable"></a>

Variables store the date selected by the user so that it can be referenced later.

You can choose an existing variable from the dropdown or create a new one.

[Learn more about variables here.](/wotsabot-help-articles/variables.md)

### Other configurations <a href="#other-configurations" id="other-configurations"></a>

Few more configuration options you can use:

#### Nature of date selection <a href="#nature-of-date-selection" id="nature-of-date-selection"></a>

You can choose to allow users to select from a single date selection or a date range selection. Currently, only single date selection is available for use.

#### Show past dates <a href="#show-past-dates" id="show-past-dates"></a>

Enabling this will allow visitors to choose past dates from today as well. Disabling it will only show the dates from today to the future.

#### Exclude days <a href="#exclude-days" id="exclude-days"></a>

You can choose to exclude certain days of the week, like Saturday and Sunday, from this dropdown. Doing so will always prevent those days from showing up in the calendar UI.

#### Exclude specific dates <a href="#exclude-specific-dates" id="exclude-specific-dates"></a>

You can click on the calendar icon and select the date you want to disable in the calendar UI. These could be to hide dates of public holidays in your region.

\ <br>


---

# 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.wotsabot.ai/wotsabot-help-articles/bot-builder/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.
