Routes & Transforms
Routes connect sources to destinations. Each route can include filter conditions and a Handlebars transform template.
Creating a Route
- Select a source and destination
- Optionally add filter conditions
- Optionally add a transform template
- The route starts active by default
Filter Conditions
Filters let you route only matching events. All conditions are AND-ed together. Use dot-notation for nested fields.
Example Filters
| Field | Operator | Value | Description |
|---|---|---|---|
type | equals | deploy | Only deploy events |
data.status | not_equals | draft | Skip drafts |
payload.email | contains | @company.com | Only company emails |
metadata.priority | exists | Has priority set |
Transform Templates
Use Handlebars templates to reshape the payload before delivery. The event payload is the template context.
Slack Block Kit Example
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*{{title}}*\nStatus: {{status}}\n{{truncate description 100}}"
}
}
]
} Available Helpers
| Helper | Usage | Description |
|---|---|---|
json | {{json data}} | JSON stringify |
eq | {{#eq status "active"}}...{{/eq}} | Conditional |
truncate | {{truncate text 80}} | Truncate with ellipsis |
formatDate | {{formatDate created_at}} | ISO date format |
Live Preview
The route builder includes a live preview panel. Enter a sample JSON payload
and see the transformed output in real-time as you edit your template.