# Events

It is also possible to program Events so that a given playlist is played when a certain criteria is met.&#x20;

Access the Events modal dialog by clicking on the "Events" buttons:

![](/files/-M_VjNoOGGq-B9ONiHnT)

Add new events by clicking on the New Event button:

![](/files/-M_VjmHMpBEC9ypE13DG)

When you create a new event you will get a lot of controls to define when the event should trigger:

![](/files/-M_VkxFv683DgehPjoFL)

You can choose from which time the event is allowed to trigger:

![](/files/-M_VlD4pt9h3aR8-1qyR)

If you also want that the event stops triggering after a certain date you can check the "Expires" checkbox and select a time in the future:

![](/files/-M_VlR3CUhhZhOLq9jyH)

You can also select how often you want the content to be played, Once a day, every hour, or a subset of hours:

![](/files/-M_W0j5bFSVEEruYCbRN)

It is also possible to choose which days of the week the content should be played:

![](/files/-M_W0vvD2wyE84IExHoU)

{% hint style="info" %}
By default no day is selected, but this implies that it will be trigger the event all days.
{% endhint %}

#### Immediate

There is a setting called "Immediate" that is used to specify if when the event triggers it should immediately play the content or if it should wait until the current playlist plays to the end:

![](/files/-M_W1QklivpOHh2UKRnG)

#### Choosing content

You must also choose which content you want to play when the event is triggered, you can chose a given media file or a complete playlist.&#x20;

#### Activate the event

Finally, in order for the event to start working you need to click on the "active" checkbox:

![](/files/-M_W28kea9aJOqA7SHWo)


---

# 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.castmill.com/content/calendars/events.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.
