Skip to content

Triggers

Triggers allow agents to start workflows automatically based on external events.

Synatra supports three trigger types:

Trigger TypeDescriptionExample
ScheduleCron-based recurring executionEvery day at 9:00 AM
WebhookHTTP endpoint for external systemsStripe payment failed webhook
App EventEvents from connected appsGitHub issue created
  1. Navigate to Triggers in the Console
  2. Click New Trigger
  3. Select the trigger type
  4. Configure the trigger settings
  5. Assign an agent and initial prompt

Schedule triggers use cron expressions to run agents on a recurring schedule:

ExampleDescription
0 9 * * *Every day at 9:00 AM
0 */2 * * *Every 2 hours
0 9 * * 1Every Monday at 9 AM
0 0 1 * *First of each month

Webhook triggers provide an HTTP endpoint that external systems can call:

  • Each trigger gets a unique URL
  • Supports POST requests with JSON payload
  • Payload data is available in the agent’s prompt

App event triggers respond to events from connected resources:

  • GitHub: Issue created, PR opened, comment added
  • Stripe: Payment failed, subscription cancelled
  • Intercom: Conversation created, message received

Triggers can inject dynamic data into the agent’s initial prompt using template syntax:

A new issue was created: {{ payload.issue.title }}
Repository: {{ payload.repository.name }}
Author: {{ payload.issue.user.login }}

The template uses simple property access with {{ path.to.value }} syntax. Objects are automatically converted to JSON strings.

Triggers support two version modes:

  • Current: Always use the latest agent release. Changes to the agent are immediately reflected.
  • Fixed: Lock to a specific agent release version. Useful for production stability.