# Calendar Check

This action will check the current date and time availability against a given calendar.

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

### Settings

The action uses the following settings:

| Setting           | Description                                     | [Parsed](/actions-and-operations/dynamic-parsing.md) |
| ----------------- | ----------------------------------------------- | ---------------------------------------------------- |
| Filter By Groups  | The calendar selection filter by groups         | :no\_entry:                                          |
| Filter By Agents  | The calendar selection filter by agent          | :no\_entry:                                          |
| Selected Calendar | The selected calendar to be used by this action | :no\_entry:                                          |

### Remarks

The Groups and Agents fields are used only to quickly filter for a specific calendar and are not used at runtime. The only true runtime field is the selected calendar, that will be used to verify date availability.

Once the date is marked as available, the action will also check if any agent is online and return it as a variable for your flow to use. The Available date trigger will be triggered only by the date availability and not by agent check.

Date check is automatically adjusted to Account or Bot Time zone setting.

### Trigger

On Date Available. This action will trigger any child operations if the current date and time falls into an available date of the selected calendar.

### Variables

This action produces the following variables after being triggered:

| Variable                    | Description                                                                    |
| --------------------------- | ------------------------------------------------------------------------------ |
| available\_operators\_count | The number of operators that are currently online in the date of the calendar. |

### Availability

Channel specific availability follows the table below:

| Channel          | Availability     |
| ---------------- | ---------------- |
| Facebook         | Fully Available. |
| WhatsApp         | Fully Available. |
| Telegram         | Fully Available. |
| Web              | Fully Available. |
| Alexa            | Fully Available. |
| Google Assistant | Fully Available. |
| Slack            | Fully Available. |
| API              | Fully 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://docs.xenioo.com/actions-and-operations/flow/calendar-check.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.
