Skip to content

Triggers & Schedules

Triggers determine when and how a workflow runs — manually, on a schedule, or in response to events.

Every workflow needs something to kick it off. That something is a trigger. The simplest trigger is you clicking a button. But as your workflows mature, you will want workflows that run themselves — every Monday morning, every time a deal closes, or every four hours without anyone lifting a finger.

What It Does

  • Starts runs — A trigger is the entry point for every workflow execution.
  • Controls timing — Schedule triggers let you automate recurring workflows.
  • Enables event-driven automation — Hook-based triggers react to things that happen in your workspace.

Trigger Types

TypeHow it worksExample
ManualYou click "Run" to start the workflowAd-hoc report generation, one-off data pulls
ScheduleRuns automatically on a recurring cron schedule"Every Monday at 8 AM," "First of every month"
HeartbeatA preset interval (1m / 5m / 10m / 30m / 1h) — cron sugar for a fixed cadenceInbox triage, news scans on a fast loop
Automated taskA recurring task built via Add Task → Build an automated task in Pulse, compiled to cron in your timezone"Every morning, summarize my calendar"

Scheduling is honest about the real world

Pencel catches up missed fires on startup, guards against overlapping runs, and can pause a recurring task after repeated failures. It also detects silent (overdue) scheduled jobs, not just failed ones, so a job that quietly stopped firing still surfaces. Sub-minute intervals are not supported.

Manual Triggers

Manual triggers are the default. You open a workflow and click Run. This is the best choice for:

  • Workflows you are still testing
  • Tasks that happen irregularly
  • Workflows where timing depends on external factors you cannot predict

TIP

Even scheduled workflows can be run manually at any time. The schedule does not prevent ad-hoc runs.

Schedule Triggers

Schedule triggers use cron expressions to define when a workflow runs. You set the schedule, pick a timezone, and Pencel handles the rest.

Trigger Properties

PropertyDescription
Typemanual or schedule
EnabledWhether the trigger is active
ScheduleCron expression (schedule triggers only)
TimezoneWhich timezone the schedule uses
Last RunWhen this trigger last fired
Next RunWhen this trigger will fire next

Common Cron Schedules

Cron expressions can look intimidating, but most schedules use one of these patterns:

Cron ExpressionWhat it means
0 8 * * 1Every Monday at 8:00 AM
0 9 * * *Every day at 9:00 AM
0 0 1 * *First of every month at midnight
0 */4 * * *Every 4 hours
0 8 * * 1-5Every weekday at 8:00 AM
30 17 * * 5Every Friday at 5:30 PM
0 8,12,17 * * *Three times a day (8 AM, noon, 5 PM)

INFO

Pencel shows a human-readable preview of your cron expression (e.g., "Every Monday at 8:00 AM") so you do not need to memorize the syntax.

Cron Expression Format

A cron expression has five fields:

┌───────────── minute (0 - 59)
│ ┌───────────── hour (0 - 23)
│ │ ┌───────────── day of month (1 - 31)
│ │ │ ┌───────────── month (1 - 12)
│ │ │ │ ┌───────────── day of week (0 - 7, where 0 and 7 are Sunday)
│ │ │ │ │
* * * * *
SymbolMeaning
*Every value
*/nEvery n-th value
nSpecific value
n,mMultiple specific values
n-mRange of values

Event-Driven Triggers: Hooks

Beyond manual and schedule triggers, Pencel supports hooks — event-driven triggers that fire when something happens in your workspace. Hooks are a more advanced feature, but they unlock powerful automation patterns.

Hook TypeWhat fires it
ManualTriggered by an explicit API or UI action
ScheduleFires on a cron schedule (similar to schedule triggers, but more flexible)
EventFires when a specific event occurs in the workspace (e.g., a run completes, an artifact is created)
ChatFires when a specific pattern appears in a chat session
Post-executionFires after a workflow run finishes (success or failure)

WARNING

Hooks run in the background. If a hook triggers a workflow that has approval steps, the run will pause and wait for you — just like a manual run would. Make sure you have notifications set up so you do not miss pending approvals.

Choosing the Right Trigger

ScenarioRecommended trigger
You are building and testing a new workflowManual
Recurring report (daily, weekly, monthly)Schedule
React to something that happened (deal closed, ticket opened)Event hook
Post-processing after another workflow finishesPost-execution hook
Ad-hoc, unpredictable timingManual

What's Next

  • Workflows — Create the workflow your trigger will start
  • Steps — Add structure to your workflow with step types
  • Guidelines — Set the rules your agent follows during triggered runs