Trigger Types Overview
Agents support four trigger types:- pull_request - Respond to pull request events (opened, updated, merged)
- scheduled - Run on a recurring schedule using cron expressions
- event - React to data stack events (schema changes, test failures, drift detection)
- manual - Execute on demand from the web interface or API
You can combine multiple triggers on a single agent. For example, run code reviews on every PR and perform weekly audits via schedule.
Reference
Pull Request Triggers
Activates the agent when pull request events occur.
Specific PR events that trigger the agent. If not specified, the agent runs on all PR events.Available events:
opened- When a new PR is createdsynchronize- When new commits are pushed to the PRreopened- When a closed PR is reopenedclosed- When a PR is closed or mergedlabeled- When labels are added to the PRunlabeled- When labels are removed from the PR
Most agents use
opened and synchronize to review new code and updates.Filter triggers based on which files changed in the PR.
Simplified path filter using a single glob pattern. Equivalent to setting
paths.include with one pattern.Only trigger when the PR targets these branches. Supports glob patterns.
Use this to run different checks for different deployment environments.
Additional filtering conditions that must be satisfied for the trigger to activate.
Scheduled Triggers
Runs the agent on a recurring schedule defined by a cron expression.
Cron expression defining when the agent runs. Uses standard 5-field cron syntax.Format:
minute hour day month weekdayCommon patterns:0 * * * *- Every hour at minute 0*/15 * * * *- Every 15 minutes0 9 * * *- Daily at 9 AM0 9 * * 1- Every Monday at 9 AM0 0 1 * *- First day of each month at midnight0 9 * * 1-5- Weekdays at 9 AM
Use crontab.guru to build and validate cron expressions.
IANA timezone name for schedule interpretation. Defaults to
UTC if not specified.Example: "America/New_York", "Europe/London", "Asia/Tokyo"When
true, skips execution on weekends (Saturday and Sunday). Defaults to false.Use this for daily reports or audits that should only run during business days.
Custom data passed to the agent, accessible in the prompt via template variables.Reference in prompt:
{{ trigger.context.check_type }}Event Triggers
Activates the agent when specific events occur in your data stack.
The specific event to listen for.Available events:
schema_change_detected- Source table schema modificationsdbt_test_failed- dbt test failuresdbt_run_failed- dbt model build failuresdata_drift_detected- Statistical anomalies in data distributionsdata_quality_failure- Custom data quality check failuresfreshness_check_failed- Source freshness check failures
Event types depend on your data stack integrations. Configure webhooks in Fivetran, Airbyte, dbt Cloud, or other tools to emit events to Buster.
The system or integration that emits the event.Common sources:
fivetran- Fivetran connector eventsairbyte- Airbyte sync eventsdbt_cloud- dbt Cloud job eventscustom- Custom events from your systems
Additional event filtering criteria. Available filters depend on the event type.
Manual Triggers
Allows running the agent on demand from the web interface or API.
Explanation of when and why to manually trigger this agent. Shows in the UI trigger menu.Example:
"Run this agent to perform an ad-hoc compliance audit"Define input parameters that users provide when manually triggering.
Examples
- PR Code Review
- Scheduled Daily Audit
- Schema Change Event
- Multiple Triggers
pr-review-trigger.yaml
Best Practices
Choosing Trigger Types
Use pull_request for validation and review
Use pull_request for validation and review
Pull request triggers are ideal for:
- Code review and quality checks
- Documentation validation
- Breaking change detection
- Test coverage verification
Use scheduled for periodic maintenance
Use scheduled for periodic maintenance
Scheduled triggers work well for:
- Daily/weekly audits and reports
- Batch documentation updates
- Performance monitoring
- Data drift detection
Use event for reactive automation
Use event for reactive automation
Event triggers are perfect for:
- Schema change adaptation
- Test failure responses
- Data quality alerts
- Automated remediation
Use manual for ad-hoc operations
Use manual for ad-hoc operations
Manual triggers suit:
- One-time investigations
- Expensive operations run only when needed
- Testing new agents
- Operations requiring parameter input
Path Filtering Strategies
Specific is better than broad. Use path filters to ensure agents only run when relevant files change.
Filter by model layer
Filter by model layer
Different model layers often need different checks:
Combine include and exclude patterns
Combine include and exclude patterns
Use exclude to skip files you don’t want to trigger on:
Group related file types
Group related file types
Scheduling Strategies
Avoid overlapping schedules for expensive agents. Stagger execution times to prevent resource conflicts.
Batch operations during off-hours
Batch operations during off-hours
Run resource-intensive agents when usage is low:
Weekday-only for business processes
Weekday-only for business processes
Skip weekends for reports and non-urgent checks:
Use context for time windows
Use context for time windows
Pass lookback periods via context for batch processing:
Combining Multiple Triggers
1
Use PR triggers for immediate feedback
Give developers instant feedback during code review:
2
Add scheduled triggers for comprehensive checks
Supplement with periodic deep analysis:
3
Include manual triggers for flexibility
Allow on-demand execution when needed: