# Auto Action trigger

**URL:** <https://community.glideapps.com/t/auto-action-trigger/77525>\
**Category:** Community Resources\
**Tags:** ai, actions\
**Created:** [October 31, 2024, 6:55pm UTC](https://community.glideapps.com/t/auto-action-trigger/77525 "2024-10-31T18:55:35Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaximeBaker](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maximebaker/32/80877_2.png) [@MaximeBaker](https://community.glideapps.com/u/MaximeBaker)\
**Post date:** [October 31, 2024, 6:55pm UTC](https://community.glideapps.com/t/auto-action-trigger/77525/1 "2024-10-31T18:55:35Z")

</div>

I made a prompt that allow an action to be triggered on page load.

I attempted to create a prompt that allows the AI component to perform an action on load after a delay of 100 ms. While I couldn’t get it to work with the provided delay value, it still enables us to make the AI execute a custom action upon page load.

Here is the prompt :

```auto
1. In the **DATA** section, define only the `Delay` property with a milliseconds value.
2. On component load, automatically retrieve the `Delay` property. If the property is not set, use a default value of 100 milliseconds.
3. Use the retrieved `Delay` property to start a `setTimeout` function.
4. After the specified delay:  
   a. Dispatch the **Show Notification** action from the **action** section.
5. The **Show Notification** action must be defined in the **action** section.
6. There will be no visual elements, start, or stop button; the action will trigger automatically without any manual intervention.
7. Ensure that all code runs within the component's secure context to avoid violations of Content Security Policy (CSP) and prevent loading external scripts.

```

And this is what it looks like :

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/6/a6f562703b1f4f588aed0e092d11b36203d27293.png)  
or you could use a helper table :  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/3/632c5ff7d10abc86a635f21a5323caca006ad535.png)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/6/46a6a1d0e794c32a9d54518213013825319f4501.png) or

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/5/f5ae193b54d293865d43193451687c54cff8aad7.png)

Here’s a demo:  
 ![msedge_pVMGsMxG0c-ezgif.com-video-to-gif-converter](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/0/605ff05678a3f65b068ade8564bf521d29d4dc8b.gif)

Original Post :

> [@Trigger Download from Link?](https://community.glideapps.com/t/trigger-download-from-link/77479/6):
>
> I attempted to create a prompt that allows the AI component to perform an action on load after a delay of 100 ms. While I couldn’t get it to work with the provided delay value, it still enables us to make the AI execute a custom action upon page load. Here is the prompt : 1. In the \*\*DATA\*\* section, define only the `Delay` property with a milliseconds value. 2. On component load, automatically retrieve the `Delay` property. If the property is not set, use a default value of 100 milliseconds. 3…

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [November 1, 2024, 12:07am UTC](https://community.glideapps.com/t/auto-action-trigger/77525/2 "2024-11-01T00:07:09Z")

</div>

Really nice trick. Thanks for sharing!

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [November 24, 2024, 2:36am UTC](https://community.glideapps.com/t/auto-action-trigger/77525/3 "2024-11-24T02:36:37Z")

</div>

Very cool trick. Never thought to use “when this component loads” as a trigger. I can confirm this works to build a “user last logged in” when placed on the home screen of the app:  
https://www.loom.com/embed/a5823db3b8c944d685ea50f9a31190d7

---

<div class="post-metadata">

**Author:** ![MaximeBaker](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maximebaker/32/80877_2.png) [@MaximeBaker](https://community.glideapps.com/u/MaximeBaker)\
**Post date:** [November 24, 2024, 2:55am UTC](https://community.glideapps.com/t/auto-action-trigger/77525/4 "2024-11-24T02:55:20Z")

</div>

🤩 so nice !!

---

<div class="post-metadata">

**Author:** ![MaximeBaker](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maximebaker/32/80877_2.png) [@MaximeBaker](https://community.glideapps.com/u/MaximeBaker)\
**Post date:** [January 15, 2025, 4:42pm UTC](https://community.glideapps.com/t/auto-action-trigger/77525/5 "2025-01-15T16:42:29Z")

</div>

**Update!**  
Now easier than ever to use! 🥳

Get it from my Real-Time Workflow app here: [https://real-time-workflow.glide.page/](https://real-time-workflow.glide.page/)

Or from @John_Romano’s AI Components Library app (So easy to use. Thanks to his Chrome Extension):

> **[Glide Ai Component Library](https://aicomponenents.glide.page/dl/a400f7/s/9671c3/r/iox5XcskRYOgIRdhdj8J0g)**
>
> Ai Components

---

<div class="post-metadata">

**Author:** ![MaximeBaker](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maximebaker/32/80877_2.png) [@MaximeBaker](https://community.glideapps.com/u/MaximeBaker)\
**Post date:** [February 19, 2025, 10:16pm UTC](https://community.glideapps.com/t/auto-action-trigger/77525/6 "2025-02-19T22:16:32Z")

</div>

New link from AI Library:

> **[Glide Ai Component Library](https://aicomponents.glide.page/dl/a400f7/s/9671c3/r/iox5XcskRYOgIRdhdj8J0g)**
>
> Ai Components

---

<div class="post-metadata">

**Author:** ![MaximeBaker](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maximebaker/32/80877_2.png) [@MaximeBaker](https://community.glideapps.com/u/MaximeBaker)\
**Post date:** [April 1, 2025, 3:19pm UTC](https://community.glideapps.com/t/auto-action-trigger/77525/7 "2025-04-01T15:19:03Z")

</div>

New link from AI Library:

> **[Glide Ai Library](https://ailibrary.glide.page/dl/home/s/3e72f5/r/7isNFBldqAhKLqVnRmKD)**

---

<div class="post-metadata">

**Author:** ![MaximeBaker](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maximebaker/32/80877_2.png) [@MaximeBaker](https://community.glideapps.com/u/MaximeBaker)\
**Post date:** [April 1, 2025, 3:23pm UTC](https://community.glideapps.com/t/auto-action-trigger/77525/8 "2025-04-01T15:23:32Z")

</div>

# Share Links

> **[Untitled - Glide custom component](https://components.glide.info/share/commit::c2867084-1241-322c-b1ba-cbf6a6e90181)**
>
> Custom component created in Glide

---

<div class="post-metadata">

**Author:** ![Eitan](https://avatars.discourse-cdn.com/v4/letter/e/aca169/32.png) [@Eitan](https://community.glideapps.com/u/Eitan)\
**Post date:** [October 23, 2025, 12:37am UTC](https://community.glideapps.com/t/auto-action-trigger/77525/9 "2025-10-23T00:37:51Z")

</div>

this is great thank you!

---

<div class="post-metadata">

**Author:** ![MaximeBaker](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maximebaker/32/80877_2.png) [@MaximeBaker](https://community.glideapps.com/u/MaximeBaker)\
**Post date:** [October 23, 2025, 2:00pm UTC](https://community.glideapps.com/t/auto-action-trigger/77525/10 "2025-10-23T14:00:06Z")

</div>

It is a pleasure!
