# Automatically trigger actions

> Learn how to automatically trigger actions or sequences in PandaSuite without user involvement, utilizing the current screen and state display triggers.

https://docs.pandasuite.com/essentials/interactions/automatically-trigger-actions/

**Automatically trigger an action or a sequence of actions without any user involvement.**

Some actions don't require user input: playing an animation when a screen opens, initializing data on launch, showing a welcome message... For these cases, PandaSuite provides two dedicated triggers: **Current Screen Display** and **Current State Display**.

## Set up an automatic trigger

1. Go to your target screen or state and **do not select any object**.
2. Open the **Actions** panel and click **+**.
3. Choose the **Display current screen** or **Display current state** trigger.
4. [Define your action](https://docs.pandasuite.com/essentials/interactions/interactive-actions/).

> **Info**
>
> The **Display current screen** trigger fires when the first state of the
> screen is shown (the first one in the list by default). The **Display current
> state** trigger fires each time that state becomes active.

[Image: Action window of a screen with no object selected: the Display current screen trigger, then the list of actions, such as Change screen]

## Practical example: run an action only on the first visit

A common use case is detecting the very first time a user opens a screen — for example, to show a welcome message or an onboarding overlay that should never repeat.

1. Create a Boolean variable (e.g. `first_time`) in the [Datastore](https://docs.pandasuite.com/essentials/data/datastore/) with **no default value**.
2. Add a [Condition](https://docs.pandasuite.com/essentials/components/condition/) component that checks whether `first_time` is **Unknown or empty**.
3. On the screen, add a **Current Screen Display** trigger that evaluates this condition.
4. When the condition is true (first visit), display the onboarding content and set `first_time` to `true` using **Interact with a data source** > **Datastore** > **Create/Update Data (Local)** with the **Set** function.

From the second visit onwards, the variable is set, the condition is false, and the onboarding is skipped.

> **Tip**
>
> For a full step-by-step guide covering this pattern and progressive content
> unlocking, see [Unlock content progressively](https://docs.pandasuite.com/essentials/gamification/unlock-content-progressively/).

## Learn more

- [Interactive actions](https://docs.pandasuite.com/essentials/interactions/interactive-actions/)
- [Triggers](https://docs.pandasuite.com/essentials/interactions/triggers/)
- [Condition component](https://docs.pandasuite.com/essentials/components/condition/)
- [Datastore](https://docs.pandasuite.com/essentials/data/datastore/)
