Overview
Thread triggers monitor changes to thread admin statuses and automatically perform actions like sending notifications, executing webhooks, or triggering external integrations. This allows teams to:- Get instant notifications when threads are marked as urgent
- Automatically notify stakeholders when thread status changes
- Integrate with external systems (custom webhooks, etc.)
- Build automated escalation workflows
Components
1. Triggers
A thread trigger consists of two main parts:- Conditions: Criteria based on admin status changes that must be met for the trigger to activate
- Actions: Tasks that the trigger performs when the conditions are met (notifications, webhooks, etc.)
2. Condition Types
Conditions are specifically designed for thread admin status changes:3. Operators
Operators define the relationship between conditions and their values:4. Actions
Actions that can be performed when conditions are met:How Thread Triggers Work
- Status Change Detection: When a thread’s admin status is updated (via API or admin UI), the system detects the change.
- Condition Evaluation: All active thread triggers are evaluated against the status change.
- Action Execution: If a trigger’s conditions are met, its actions are executed sequentially.
- Logging: All trigger executions are logged with success/failure status and details for auditing.
Available Placeholders
When configuring action messages (webhooks), you can use placeholders that are automatically replaced:Example Use Cases
1. External Integration via Webhook
Scenario: Sync thread status changes to an external CRM system Conditions:- Admin Status Changed (any change)
- Execute Webhook
- URL:
https://your-crm.com/api/thread-status-update - Method:
POST - Body Template:
- URL:
Trigger Execution Order
Triggers are processed in order based on theirposition field (lower values execute first). If one trigger’s action
modifies the thread in a way that affects another trigger’s conditions, order matters.
Best Practices
- Use specific conditions: Narrow down conditions to avoid unintended executions
- Monitor execution logs: Check
/api/admin/thread-triggers/{id}/logsregularly - Avoid infinite loops: Be careful with triggers that might cause cascading status changes
Troubleshooting
Webhook Failing
- Verify webhook URL is accessible
- Check authentication/headers configuration
- Test webhook URL independently
- Review HTTP status codes in execution logs
