> For the complete documentation index, see [llms.txt](https://docs.codemash.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.codemash.io/other-topics/triggers.md).

# Triggers

Triggers are actions that are executed after a certain action was done. For example, inserting a record into a collection might trigger an action to send an email message.

Triggers can be used with **collections**, **users,** and **files**.

## Trigger actions

The trigger can invoke one of the following actions.

1. Send an email
2. Send a push notification
3. Execute a function

### Sending an email

You can send emails to specific email addresses or your project users. Token binding in your email templates works the same way as sending emails normally. More about email templates and token binding check the following links.

{% content-ref url="/pages/-M-H0J\_XcVRLxjvoh-DO" %}
[Email Templates](/dashboard/notifications/email/templates.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LwUEOAn4E1vurlaicoH" %}
[Tokens Binding](/other-topics/tokens-binding.md)
{% endcontent-ref %}

### Sending a push notification

Just like with emails, this works the same way - you can send mobile notifications to your project users. Token binding in your push notifications works the same way as sending notifications normally. More about notification templates and token binding check the following links.

{% content-ref url="/pages/-M0mcDKxtaFIeRgpof7O" %}
[Push Templates](/dashboard/notifications/push/push-templates.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LwUEOAn4E1vurlaicoH" %}
[Tokens Binding](/other-topics/tokens-binding.md)
{% endcontent-ref %}

### Executing a function

This type of trigger action will call one of your functions defined in **code** module.&#x20;
