Trigger

On this page 7

A trigger is the event, schedule or signal that starts a run of an automated workflow. It defines when automation begins and supplies the initial data payload, such as the new record, the received message or the current time, that the following conditions and actions work with.

In automation fundamentals, the trigger is the entry point of every workflow: without one, a workflow is only a definition that never executes. Choosing the right trigger type determines how quickly automation reacts, how much load it creates, and how reliably it handles every relevant event exactly once.

How a trigger starts an automated workflow

A trigger works by watching a source for a defined occurrence and creating a new workflow run when that occurrence happens. Each run receives a trigger payload, which typically includes an event identifier, a timestamp and the relevant data, for example the fields of a new form submission.

After the trigger fires, the workflow usually evaluates conditions that decide whether to continue, then executes one or more actions. The trigger itself should stay narrow and fast; filtering and business logic belong in the following steps, where they are visible and testable.

Building blockRoleExample
TriggerStarts the run and supplies dataNew invoice uploaded
ConditionDecides whether or which path continuesAmount above 10,000
ActionPerforms a stepRequest manager approval
Workflow stateTracks progress of the runWaiting for approval
Roles of the basic building blocks in a workflow

Types of triggers

Triggers fall into a few recognizable families that differ in how the automation learns about an event. Most automation platforms, integration tools and RPA products support several of them.

Trigger typeHow it detects eventsTypical latencyTypical use
Webhook (push)Source sends an HTTP requestSeconds or lessSaaS events, payment notices
PollingAutomation checks the source periodicallyOne interval, often 1 to 15 minutesSystems without push support
ScheduleClock or cron expressionFixed timesNightly reports, periodic syncs
Message or queueNew message on a queue or event busNear real timeDecoupled system integration
Database changeInsert, update or delete detectedNear real timeData synchronization
File or emailNew file or message arrivesSeconds to minutesDocument intake
ManualUser clicks a button or formImmediateOn-demand processes, testing
Common trigger types and their characteristics

Schedules are often written as cron expressions, a five-field notation for minute, hour, day of month, month and day of week. The expression “0 6 * * 1-5”, for example, means 06:00 on weekdays, evaluated in the time zone configured for the scheduler.

Webhook versus polling triggers

The most frequent design choice is between push-based webhooks and pull-based polling. Webhooks react faster and create less load, while polling is simpler to set up and recovers more easily from outages, because the automation can always ask again.

AspectWebhook triggerPolling trigger
Reaction speedNear real timeLimited by polling interval
Load on sourceOnly when events occurConstant, even with no events
SetupNeeds a reachable endpoint and registrationNeeds only read access
Missed eventsPossible if endpoint is downRecoverable with a cursor
SecurityRequires signature verificationUses normal authentication
OrderingEvents may arrive out of orderOrdered by query, if designed so
Comparison of webhook and polling triggers

Robust integrations often combine both: a webhook provides speed, and a periodic reconciliation poll catches any events that the webhook delivery missed.

Designing reliable triggers

Most delivery mechanisms guarantee at-least-once delivery, which means the same event may arrive twice. A reliable workflow therefore treats the trigger as a possibly repeated signal and makes its actions idempotent, so that processing a duplicate has no additional effect.

ConcernRecommended practiceReason
Duplicate deliveriesDeduplicate by event IDPrevents double actions
Webhook authenticityVerify signatures and timestampsBlocks forged or replayed requests
Slow processingAcknowledge fast, process asynchronouslyAvoids sender timeouts and retries
Event burstsQueue and rate-limit runsProtects downstream systems
Polling gapsStore a cursor or last timestampResumes without losing events
Schedules across regionsSet explicit time zonesAvoids daylight saving surprises
Trigger design decisions and their reasons

Every trigger should also be observable: logs should record each received event, its identifier and the resulting run, so that operators can answer whether a missing outcome was caused by the trigger or by a later step.

Common trigger mistakes

Trigger problems tend to be silent, because a workflow that never starts produces no error. The following mistakes are among the most frequent:

  • Infinite loops: an action updates the same record that fires the trigger, starting the workflow again and again.
  • Overly broad triggers: firing on every update instead of a specific field change floods the system with runs.
  • Expired credentials or webhook registrations: the trigger stops receiving events without visible failure.
  • Assuming order: processing events as if they arrive in sequence corrupts state when they do not.
  • Missing backfill: a trigger enabled today does not process records created before it existed.

The simple explanation

A trigger is the starting signal for an automated task. It answers the question of when the automation should begin.

Think of a motion sensor that switches on a hallway light. The movement is the trigger, and the light turning on is the action. In software, a trigger might be a new email, a submitted form or a set time each morning, and it sets off a chain of steps without anyone pressing a button.

How it is used in practice

An online shop wants every new order to reach its warehouse system and its accounting software within a minute. Its order platform can send webhooks, so the team registers a webhook trigger for the order-created event and verifies each request’s signature.

The workflow acknowledges each webhook immediately and places the event on a queue. It stores processed order IDs to skip duplicates, then creates the shipment and the invoice. A reconciliation poll every 30 minutes compares recent orders with processed ones and starts runs for any that were missed.

During a short outage of the workflow service, several webhooks fail, but the reconciliation poll recovers every missing order within the next cycle. No order is shipped twice, because the duplicate check blocks repeated deliveries.