Workflow Steps
1
Analyze ticket contents
Run three concurrent analyses:
- Determine ticket intent
- Check for spam
- Validate information sufficiency
2
Route based on analysis
Make intelligent routing decisions:
- Close spam tickets
- Escalate urgent issues
- Process specific requests (invoices, refunds)
- Generate responses for general queries
3
Take action
Execute the appropriate action based on routing decision
app/workflows/customer_care_workflow_nodes
.
Step 1: Concurrent Analysis
AnalyzeTicketNode
Since our three analysis operations are independent, we useConcurrentNode
to run them simultaneously:
DetermineTicketIntentNode
ThisAgentNode
uses AI to classify the ticket intent:
FilterSpamNode
Detects spam messages using AI:ValidateTicketNode
Verifies if the ticket contains actionable information:Step 2: Intelligent Routing
TicketRouterNode
The router examines analysis results and selects the next action:- CloseTicketRouter: Closes spam tickets automatically when confidence > 0.8
- EscalationRouter: Escalates urgent or sensitive issues to human agents
- InvoiceRouter: Routes billing-related requests to invoice processing