Skip to main content

Trigger Types

Webhook

HTTP endpoints that start workflows when called

Schedule

Time-based triggers using cron expressions

Event

React to system or custom events

Message

Process messages from queues or streams

Configuration

Each trigger type has its own configuration options. Here are examples for each type:

Schema Validation

Triggers support JSON Schema validation for input data. This ensures that workflows only process valid data and fail early if the input doesn’t match the expected format.

Advanced Features

Error Handling

Configure how trigger errors should be handled:

Rate Limiting

Control the rate of workflow executions:

Conditional Execution

Add conditions to control when triggers should start workflows:

API Reference

string
required
Type of trigger (webhook, schedule, event, message)
object
required
Trigger-specific configuration
object
JSON Schema for validating trigger input
object
Error handling configuration
object
Rate limiting configuration
string
Template expression for conditional execution

Best Practices

1

Schema Definition

  • Always define input schemas
  • Validate required fields
  • Set appropriate constraints
  • Document field purposes
2

Error Handling

  • Configure retry policies
  • Implement fallback mechanisms
  • Log trigger failures
  • Monitor trigger health
3

Security

  • Use HTTPS for webhooks
  • Implement authentication
  • Validate request origins
  • Sanitize input data
4

Performance

  • Set appropriate rate limits
  • Configure batch sizes
  • Use efficient schemas
  • Monitor trigger latency

References

Workflow Usage

Learn how to use triggers in workflows

Tasks API

Understand task configuration

Error Handling

Implement error handling strategies

Schema Reference

Complete trigger schema reference