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
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
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: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