Temporal Workflows
Ticket Resolution Workflow
AI-powered ticket analysis with SLA tracking and automatic escalation.
Ticket Resolution Workflow
A 2-step Temporal workflow that analyzes support tickets using AI and tracks SLA compliance with automatic escalation.
Workflow Definition
Steps
AI Analysis
Activity: analyzeTicket
AI analyzes the ticket content to:
- Classify the issue type (bug, feature request, configuration, billing)
- Assess severity and impact
- Search memory for similar past tickets
- Suggest potential resolution paths
Wait for Resolution or SLA Breach Signal-based wait
The workflow waits for either:
- A
resolvesignal indicating the ticket has been resolved - The SLA timer to expire, triggering automatic escalation
SLA Timers
| Priority | Response SLA | Resolution SLA | Escalation |
|---|---|---|---|
| P1 (Critical) | 15 minutes | 4 hours | VP Support → CTO |
| P2 (High) | 1 hour | 24 hours | Support Manager |
| P3 (Medium) | 4 hours | 72 hours | RevOps Queue |
| P4 (Low) | 24 hours | 1 week | Standard Queue |
Signals
| Signal | Parameters | Purpose |
|---|---|---|
resolve | { resolution, resolvedBy } | Mark ticket as resolved |
Queries
| Query | Returns |
|---|---|
status | Current state, SLA countdown, analysis results |