# Triggers

> Choose what starts a workflow and narrow it with the trigger's options.

Source: https://docs.komplian.com/flows/triggers

Where: Flows → your workflow → Triggers
Who: Owners, admins and managers edit workflows.
Plan: Growth+

A trigger is the event that starts a workflow. Every workflow has exactly one trigger, and each time it fires, one run starts.

## Add a trigger

### 1. Open the workflow
Open the workflow in the builder.

### 2. Pick the trigger
Drag a step from **Triggers**, **Ecommerce** or **Operations** onto the canvas. On a phone, tap **Choose a trigger**.

### 3. Set its options
Click the trigger and fill its options. Options marked optional narrow when it fires. Leave them empty to fire every time.

The **Ecommerce** group appears only when a store is connected. Each trigger in **Operations** appears only when its package is active.

## Contacts and conversations

| Trigger | Starts when | Options |
| --- | --- | --- |
| **New Lead** | A lead is created. | **Source (optional)**, such as **Chat (AI)**, WhatsApp, **Form**, **Manual** or **Import**, and **Channel (optional)**. |
| **Status Changed** | A lead changes stage. | **From Status (optional)** and **To Status (optional)**: New, Contacted, Qualified, Proposal, Negotiation, Won, Lost. |
| **Message Received** | A customer's message arrives. | **Channel (optional)** and **Contains Keyword (optional)**, for example "help, order, return". |
| **Instagram Comment** | Someone comments on one of your Instagram posts. Needs the **Read Post Comments** switch. | **Keywords** (any or all), the **Posts** it applies to, and whether replies to other comments count. See [Auto DM](https://docs.komplian.com/channels/instagram#auto-dm-reply-privately-to-whoever-comments). |
| **Conversation Started** | A new conversation opens. | None. |
| **Conversation Assigned** | A conversation is assigned to a team member. | None. |
| **Tag Added** | A tag is added to a contact. | None. |
| **Note Added** | A note is written on a record. | None. |
| **Form Submitted** | A [form](https://docs.komplian.com/crm/forms) receives a response. | **Form ID (optional filter)**. Leave it empty to match all forms. |

## Time and outside events

| Trigger | Starts when | Options |
| --- | --- | --- |
| **Scheduled** | At the times a schedule expression sets. | The expression and the **Timezone**. Example: `0 9 * * 1` runs every Monday at 9:00. |
| **Recurring** | Again and again at a fixed interval. | **Run every** a number of minutes, hours or days. |
| **Manual** | Only when someone starts it by hand. | None. |
| **Webhook** | Another tool sends data to the flow's address. | The **Webhook URL**. Your external form or tool sends a POST request to it. |

## Store

Shown when a store is connected.

| Trigger | Starts when | Options |
| --- | --- | --- |
| **Order Completed** | An order comes in from your store. | **Minimum Order Amount (optional)**. |
| **Cart Abandoned** | A checkout stays unfinished. | **Abandoned After (minutes)**: how long the cart must wait before the trigger fires. 60 by default. |
| **Shipment Status Changed** | A parcel tracked with AfterShip changes status. | None. |

## Operations

Each trigger is shown when its package is active.

| Trigger | Starts when | Package |
| --- | --- | --- |
| **Quote Sent** | A quote is sent to the customer. | Sales |
| **Order Completed** | A sales order is fully delivered. Shown here only when no store is connected. | Sales |
| **Purchase Order Sent** | A purchase order is sent to the supplier. | Purchases |
| **Stock Below Reorder Point** | An item's stock falls to its reorder point. | Inventory |
| **Batch Expiring** | A batch is about to expire. | Inventory |

## Quote requests

| Trigger | Starts when |
| --- | --- |
| **Quote Requested** | A customer asks for a quote by email or in a conversation. |

The other quote triggers in the list follow the later stages of a quote request, such as **Quote Sent to Customer**, **Quote Approved** or **Quote Lost**.

## Variables each trigger provides

What the trigger knows becomes [variables](https://docs.komplian.com/flows/actions#variables) for later steps. A contact trigger fills `contact.*` and `lead.*`. A store trigger also fills `order.*`. An Inventory trigger fills `item.*` or `lot.*`.

## Related

- [How flows work](https://docs.komplian.com/flows/overview): Build, test and publish a workflow.
- [Actions](https://docs.komplian.com/flows/actions): What the workflow does after the trigger.
- [Conditions and waits](https://docs.komplian.com/flows/conditions): Narrow a trigger further with rules.
