Skip to main content
Triggers enable your agents to run automatically based on schedules, webhooks, or external events. Build powerful automation workflows without manual intervention.

Overview

Kortix supports three types of triggers:
  • Schedule: Run agents on a recurring schedule (cron-based)
  • Webhook: Trigger agents via HTTP requests
  • Event: React to external service events (via integrations)

Trigger Types

Run agents on a regular schedule using cron expressions.Use Cases
  • Daily reports and summaries
  • Periodic data synchronization
  • Scheduled monitoring and alerts
  • Regular backups and maintenance
Configuration
Common Cron Patterns

Creating Triggers

Via API

API Response

Managing Triggers

List Agent Triggers

Update Trigger

Activate/Deactivate Trigger

Delete Trigger

Workflow Examples

Daily Report Automation

Customer Onboarding Webhook

Support Email Automation

Trigger Execution

How Triggers Work

1

Event Detection

The trigger provider detects an event:
  • Schedule: Cron time matches
  • Webhook: HTTP request received
  • Event: External service sends notification
2

Prompt Generation

The trigger’s prompt template is populated with event data:
3

Agent Execution

A new agent run is started with the generated prompt.
4

Result Logging

Execution results are logged for monitoring and debugging.

Template Variables

Access event data in your prompts using {{variable}} syntax: Webhook Data
Prompt Template
Generated Prompt

Monitoring Triggers

View Trigger Events

Debugging Failed Triggers

Common issues and solutions:
Check:
  • Trigger is active (is_active: true)
  • Cron expression is valid
  • Timezone is correct
  • Webhook URL is correct
  • Event integration is authenticated
Verify:
Check:
  • Agent has required tools enabled
  • Prompt template is valid
  • Template variables match event data
  • Agent has necessary permissions
View Error:
Ensure:
  • Variable names match event data keys
  • Variables use correct syntax: {{variable}}
  • Event data is properly formatted
Test:

Best Practices

Schedule Optimization

  • Avoid overlapping schedules for the same agent
  • Consider timezone differences for distributed teams
  • Use appropriate intervals (avoid excessive frequency)
  • Add buffer time for long-running tasks

Webhook Security

  • Validate webhook payloads in your application
  • Use HTTPS for webhook endpoints
  • Consider adding authentication headers
  • Monitor for unusual webhook activity

Error Handling

  • Include error handling in agent prompts
  • Monitor trigger execution logs
  • Set up alerts for failed triggers
  • Test triggers thoroughly before production use

Prompt Design

  • Keep prompts clear and actionable
  • Include all necessary context
  • Use structured formats for consistency
  • Test with various input scenarios

Limits and Quotas

Trigger limits by subscription tier:

Next Steps

Creating Agents

Learn how to create agents

System Prompts

Write effective system prompts

API Reference

Full trigger API documentation

Composio Integration

Connect external services