The flow
Starts it 1Model 6Logic 15Service 10
The steps in the order they run, from what starts it.
- 1OpenRouter Chat ModelLm Chat Open RouterModel
- 2WebhookWebhookStarts it
- 3OpenRouter Chat Model1Lm Chat Open RouterModel
- 4OpenRouter Chat Model2Lm Chat Open RouterModel
- 5AI AgentAgentModel
- 6Fetch Zendesk ticketHttp RequestService
- 7Check uncertaintyAgentModel
- 8Message classifierAgentModel
- 9Parse AI responseCodeLogic
- 10Check if human agent is assignedSwitchLogic
- 11Uncertainty routerSwitchLogic
- 12Message routerSwitchLogic
- 13If human assigned, don't replyNo OpLogic
- 14Fetch ticket conversationHttp RequestService
- 15If uncertain, don't replyNo OpLogic
- 16Reply ticket and put on pendingHttp RequestService
- 17Billing suspected - escalateHttp RequestService
- 18Delete ticketHttp RequestService
- 19Fraud suspected - escalateHttp RequestService
- 20Look for Mintlify topicIdCodeLogic
- 21Parse conversationCodeLogic
- 22New ticket?SwitchLogic
- 23Count AI repliesCodeLogic
- 24Create Mintlify Chat TopicHttp RequestService
- 25Mintlify generated response (existing)Http RequestService
- 26Check how many times the AI repliedSwitchLogic
- 27Add Mintlify topicId to ticket tagsHttp RequestService
- 28Parse mintlify responseCodeLogic
- 29Flip conversation to get the last messageCodeLogic
- 30If more that x replies, don't replyNo OpLogic
- 31Add Mintlify topicID to ticketCodeLogic
- 32Mintlify generated response (new)Http RequestService