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
- Schedule Triggers
- Webhook Triggers
- Event Triggers
Run agents on a regular schedule using cron expressions.Use CasesCommon Cron Patterns
- Daily reports and summaries
- Periodic data synchronization
- Scheduled monitoring and alerts
- Regular backups and maintenance
| Pattern | Description |
|---|---|
0 9 * * * | Every day at 9:00 AM |
0 */6 * * * | Every 6 hours |
0 9 * * 1 | Every Monday at 9:00 AM |
0 0 1 * * | First day of every month |
*/15 * * * * | Every 15 minutes |
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
Event Detection
The trigger provider detects an event:
- Schedule: Cron time matches
- Webhook: HTTP request received
- Event: External service sends notification
Template Variables
Access event data in your prompts using{{variable}} syntax:
Webhook Data
Monitoring Triggers
View Trigger Events
Debugging Failed Triggers
Common issues and solutions:Trigger Not Firing
Trigger Not Firing
Check:
- Trigger is active (
is_active: true) - Cron expression is valid
- Timezone is correct
- Webhook URL is correct
- Event integration is authenticated
Agent Execution Fails
Agent Execution Fails
Check:
- Agent has required tools enabled
- Prompt template is valid
- Template variables match event data
- Agent has necessary permissions
Template Variables Not Working
Template Variables Not Working
Ensure:
- Variable names match event data keys
- Variables use correct syntax:
{{variable}} - Event data is properly formatted
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:| Tier | Schedule Triggers | Webhook Triggers | Event Triggers |
|---|---|---|---|
| Free | 3 | 5 | 3 |
| Pro | 10 | 25 | 10 |
| Team | 50 | 100 | 50 |
| Enterprise | Unlimited | Unlimited | Unlimited |
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