# Triggers

A trigger is what starts your workflow. Every workflow needs exactly one trigger — it is the "when this happens" part of your automation. Without a trigger, the workflow has no way of knowing when to run.

There are two main types of triggers: **document events** (something happens to a record) and **schedules** (a timer goes off).

## How it works

1. **Drag a trigger onto the canvas** — Open the left sidebar and find the trigger you want. Drag it onto the canvas.
2. **Configure it** — Click the trigger block and fill in the settings. For a document event, you will pick the record type (like "Sales Order") and the event (like "When created"). For a schedule, you will pick the frequency (like "Every day").
3. **Connect it to the next block** — Draw a line from the trigger to whatever should happen next (an action or a condition).

## Available trigger types

| Trigger        | What it does                                                  | Example                      |
| -------------- | ------------------------------------------------------------- | ---------------------------- |
| Document Event | Runs when a record is created, edited, approved, or cancelled | "When a new Lead is created" |
| Schedule       | Runs on a timer — every hour, day, week, or month             | "Every morning at 8 AM"      |

## Related pages

* [Document Events](/workflow-automation/workflow-builder/triggers/document-events.md)
* [Schedules](/workflow-automation/workflow-builder/triggers/schedules.md)
* [Building a Workflow](/workflow-automation/workflow-builder/building-a-workflow.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.proforgeerp.com/workflow-automation/workflow-builder/triggers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
