> For the complete documentation index, see [llms.txt](https://docs.xenioo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xenioo.com/actions-and-operations/flow/calendar-check.md).

# 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
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, and the optional `goal` query parameter:

```
GET https://docs.xenioo.com/actions-and-operations/flow/calendar-check.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
