# Wix Automation triggered via code/API?

**URL:** <https://forum.wixstudio.com/t/wix-automation-triggered-via-code-api/7489>\
**Category:** Ask the community\
**Tags:** wix-forms, code, question\
**Created:** [March 12, 2021, 9:46pm UTC](https://forum.wixstudio.com/t/wix-automation-triggered-via-code-api/7489 "2021-03-12T21:46:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![edwardlee](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/edwardlee/32/27218_2.png) [@edwardlee](https://forum.wixstudio.com/u/edwardlee)\
**Post date:** [March 12, 2021, 9:46pm UTC](https://forum.wixstudio.com/t/wix-automation-triggered-via-code-api/7489/1 "2021-03-12T21:46:07Z")

</div>

We now have serval trigger types (like submitting a Wix Forms) that we can use for an automation, but those triggers have their own limitation.

I am trying to search if we can trigger an automation via code like

```javascript
$("automationId").triggerNow();

```

So that I use the beautiful email template I created in automation  
and send to my contact when he submit a form (not Wix Forms).

Is this possible to do so now?

---

<div class="post-metadata">

**Author:** ![nikobarli](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/nikobarli/32/15390_2.png) [@nikobarli](https://forum.wixstudio.com/u/nikobarli)\
**Post date:** [March 13, 2021, 5:02am UTC](https://forum.wixstudio.com/t/wix-automation-triggered-via-code-api/7489/2 "2021-03-13T05:02:46Z")

</div>

I may not understand your question correctly, but you may want to see triggered email feature here: [Velo: Getting Started with Triggered Emails | Help Center | Wix.com](https://support.wix.com/en/article/triggered-emails-getting-started)

---

<div class="post-metadata">

**Author:** ![joao-t-robalo](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/joao-t-robalo/32/8563_2.png) [@joao-t-robalo](https://forum.wixstudio.com/u/joao-t-robalo)\
**Post date:** [June 30, 2023, 5:40am UTC](https://forum.wixstudio.com/t/wix-automation-triggered-via-code-api/7489/3 "2023-06-30T05:40:13Z")

</div>

Do you know if this is supported? if yes, how? if not I find it very odd that this is not a thing

---

<div class="post-metadata">

**Author:** ![sethfisherh34642](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/sethfisherh34642/32/9482_2.png) [@sethfisherh34642](https://forum.wixstudio.com/u/sethfisherh34642)\
**Post date:** [June 30, 2023, 6:17am UTC](https://forum.wixstudio.com/t/wix-automation-triggered-via-code-api/7489/4 "2023-06-30T06:17:35Z")

</div>

You can trigger an automation via code in Wix. You can use the $(“automationId”).triggerNow(); code to trigger an automation with the specified automation ID.  
[https://www.marykayintouch.website/](https://www.marykayintouch.website/)

---

<div class="post-metadata">

**Author:** ![Certified\_Code](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/certified_code/32/80179_2.png) [@Certified\_Code](https://forum.wixstudio.com/u/Certified_Code)\
**Post date:** [July 1, 2023, 4:20am UTC](https://forum.wixstudio.com/t/wix-automation-triggered-via-code-api/7489/5 "2023-07-01T04:20:59Z")

</div>

Which docs said that?
