> ## Documentation Index
> Fetch the complete documentation index at: https://docs-v1.latitude.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Triggers

> Enables automatic execution of prompts based on specific events or schedules

## Overview

The Triggers feature enables automatic execution of prompts based on specific events or schedules. This documentation explains how to configure triggers via Email or Schedule and describes each available setting.

Triggers allow you to:

* Automate prompt runs when specific conditions are met (e.g., receiving an email, or on a set schedule).
* Define who can trigger prompts and under what circumstances.
* Configure parameters and access control for secure, contextual automation.

To access the triggers you have to click in the top right corner of the prompt playground

<img src="https://mintcdn.com/latitudellms/Ssq9dzRdSVyjHEcj/assets/triggers/triggers-button.png?fit=max&auto=format&n=Ssq9dzRdSVyjHEcj&q=85&s=d8de8684584604ca38827678094491f6" alt="Triggers Button" width="563" height="328" data-path="assets/triggers/triggers-button.png" />

## Trigger Types

You can set up two main types of triggers

* Email
* Schedule

### Email

Allows running a prompt when an email is sent to a designated address.

<img src="https://mintcdn.com/latitudellms/Ssq9dzRdSVyjHEcj/assets/triggers/email-trigger.png?fit=max&auto=format&n=Ssq9dzRdSVyjHEcj&q=85&s=f55725b6d98abc29918c336bba831f28" alt="Email Trigger Configuration" width="555" height="725" data-path="assets/triggers/email-trigger.png" />

**Parameters**
You may define how the paramters from the prompt are filled with the email the users sent to the trigger email address.

<Note>
  In this image we have 3 parameters in this prompt.
</Note>

Users must provide these parameters when triggering the prompt by email.

**Email Settings**

* `Name` Give your email trigger a name (used to distinguish between triggers).
* `Prompt Email Address`: A unique email address is generated for your trigger
* `Reply with response`: Toggle to automatically reply to the sender with the prompt’s output.

## Schedule

<img src="https://mintcdn.com/latitudellms/Ssq9dzRdSVyjHEcj/assets/triggers/schedule-trigger.png?fit=max&auto=format&n=Ssq9dzRdSVyjHEcj&q=85&s=60d56dc659eecaec10b5f1ff09bf01ee" alt="Schedule Trigger Configuration" width="548" height="488" data-path="assets/triggers/schedule-trigger.png" />

Allows running a prompt on a fixed schedule, such as every hour, daily, or based on a cron expression.

<Note>You can combine a trigger with an MCP and built a automated workflow that runs a prompt on a schedule and sends the output to a specific channel.</Note>
