---
title: "Automatically trigger Netlify Functions on specific events"
description: "Ever wanted to trigger a Netlify Function when a deploy fails? Or when you activate split testing? Here’s how."
source: "https://www.netlify.com/blog/2021/12/19/automatically-trigger-netlify-functions-on-specific-events/"
last_updated: "2026-07-10T19:44:06.000Z"
---
> Throughout December we’ll be [highlighting a different Netlify feature each day](https://www.netlify.com/blog/2021/12/01/highlighting-a-different-netlify-feature-each-day-in-december/). It might just be the thing you need to unlock those creative juices, and [dust off that domain](https://www.netlify.com/blog/2021/12/01/dusty-domains-your-forgotten-domains-raise-money-for-charity/?utm_campaign=devex-ph&utm_source=netlify&utm_medium=blog&utm_content=adventure-cli-dev) you registered but never deployed! Keep an eye [on the blog](https://www.netlify.com/blog/2021/12/01/highlighting-a-different-netlify-feature-each-day-in-december/?utm_campaign=featdaily21&utm_source=netlify&utm_medium=blog&utm_content=adventure-cli-dev) and on [Twitter](https://twitter.com/netlify) for each feature!

Netlify Functions can be triggered via your UI with a user event like clicking a button, or visiting directly the endpoint `/.netlify/functions/<your function name>` in your browser, but we’ve also made available what we call **event-driven functions**.

“What is this?”, I hear you ask.

There are some events happening when you use Netlify that can automatically trigger a function.

For example, if you have a [Netlify Form](https://www.netlify.com/products/forms?utm_campaign=devex-cg&utm_source=netlify&utm_medium=blog&utm_content=event-drive-functions) on your site, you can trigger a function automatically when receiving a new submission, simply by naming your function file `submission-created.js`. That’s all!

The events currently working with this feature are:

-   deploy-building
-   deploy-failed
-   deploy-locked
-   deploy-succeeded
-   deploy-unlocked
-   identity-login
-   identity-signup
-   identity-validate
-   split-test-activated
-   split-test-deactivated
-   split-test-modified
-   submission-created

You could use them to notify co-workers when your app’s deploys are locked, or when a deploy fails, when a user signs up, and more!

If you’d like more information about Netlify Functions, [check out our docs](https://docs.netlify.com/functions/overview/).

### Share

-   [X (fka Twitter)](https://twitter.com/intent/tweet?text=Automatically trigger Netlify Functions on specific events&url=https://www.netlify.com/blog/2021/12/19/automatically-trigger-netlify-functions-on-specific-events//)
-   [LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.netlify.com%2Fblog%2F2021%2F12%2F19%2Fautomatically-trigger-netlify-functions-on-specific-events%2F%2F)
-   [Facebook](https://www.facebook.com/sharer.php?u=https://www.netlify.com/blog/2021/12/19/automatically-trigger-netlify-functions-on-specific-events//)
-   [Bluesky](https://bsky.app/intent/compose?text=Automatically trigger Netlify Functions on specific events+https://www.netlify.com/blog/2021/12/19/automatically-trigger-netlify-functions-on-specific-events//)

* * *

### Tags

-   [Tips](/blog/tags/tips/)
-   [Features](/blog/tags/features/)
-   [Redirects](/blog/tags/redirects/)

## Keep reading

![](/_astro/3f45eb6eda4ea8814be310e3df4a7883a5bd9ba0-1200x675_ZcBDUS.webp)

Guides & Tutorials May 15, 2026

[

### How to build a real-time AI chatbot in minutes with Netlify Agent Runners (no backend)

](/blog/how-to-build-a-real-time-ai-chatbot-in-minutes-with-netlify-agent-runners-no-backend)

-   ![Profile picture of Nahrin Jalal](/_astro/f0e7c8f227a03fe58340c99ef5439d5a896c0733-272x272_Z23kDpD.webp)
    
    Nahrin Jalal
    

![](/_astro/8fe9e8a23f944c9912003233d99a2df7fee637cf-1600x900_Z1gMhmf.webp)

Guides & Tutorials May 15, 2026

[

### Tracking AI search traffic: how to use Netlify Log Drains to maximize AEO

](/blog/tracking-ai-search-traffic)

-   ![Profile picture of Nahrin Jalal](/_astro/f0e7c8f227a03fe58340c99ef5439d5a896c0733-272x272_Z23kDpD.webp)
    
    Nahrin Jalal
    

## Recent posts

News & Announcements June 25, 2026

[

### Netlify Functions, designed for Agent Experience

](/blog/netlify-functions-designed-for-agent-experience)

-   ![Profile picture of Eduardo Bouças](/_astro/52958f21e8450baf6d8e60302341a984e220c0cd-512x512_13VDlu.webp)
    
    Eduardo Bouças
    

News & Announcements June 24, 2026

[

### How we measure Netlify’s Agent Experience

](/blog/how-we-measure-netlify-agent-experience)

-   ![Profile picture of Sean Roberts](/_astro/bbf2243f8171dbddd80ab2103622106cef84d125-512x512_Z1d2LKE.webp)
    
    Sean Roberts
    

Guides & Tutorials May 15, 2026

[

### How to build a real-time AI chatbot in minutes with Netlify Agent Runners (no backend)

](/blog/how-to-build-a-real-time-ai-chatbot-in-minutes-with-netlify-agent-runners-no-backend)

-   ![Profile picture of Nahrin Jalal](/_astro/f0e7c8f227a03fe58340c99ef5439d5a896c0733-272x272_Z23kDpD.webp)
    
    Nahrin Jalal
    

![](/_astro/3f255b372fa958df35802666ee33b4609b2d71bd-1200x1586_1VtE2D.webp)

### How do the best dev and marketing teams work together?

[Access the report](https://www.netlify.com/reports/2024-leadership-trend-report/access/)