Support Copilot
Sort, read and answer customer messages, then route each one to the right desk with a deadline.
The system
Training…Training the classifier on 320 past messages…
- Stage 1Machine learning
What do they want?
Naive Bayes, trained here on 320 past messages
- In
- The message
- Out
- One of 7 intents, and how sure it is
Working Training…
WhyRun the inbox, then open a message. - Stage 2Deep learning
How do they feel?
DistilBERT SST-2, a neural network (about 65 MB)
- In
- The message, without greeting or sign-off
- Out
- Upset, unhappy, neutral or positive
Model not loaded The mood is not read yet; the rules that need it wait.
Why— - Stage 3Automation
Who handles it, and by when?
6 rules you can edit; deadlines in working hours
- In
- intent (1), mood (2), order value, tier, wait
- Out
- A desk, a priority and a reply-by time
Not run yet Waiting for stage 1.
Why— - Stage 4Generative AI
What do we say?
MiniLM finds the policy passages; SmolLM2 writes from them
- In
- intent (1), mood (2), desk (3), the policy
- Out
- A draft reply, its sources and any flags
Not run yet Until the writer loads: a template opening and sources found by key words.
Why—
Inbox
40 unreadNewest first, as they arrived. Made-up customers and orders.
The message
Each message goes through four stages, and each stage hands its result to the next: the classifier's intent and the mood model's reading decide the route, and all three shape the draft.
Run the morning's inbox, then open any message to see what each stage decided and why.
Rules run from the top; the first one whose conditions all hold sends the message to a desk at a priority, and the priority sets the reply deadline. A rule that needs the mood waits until the mood model has read the message. Change anything and the inbox is routed again at once.
Rule 1
ifthenRule 2
ifthenRule 3
ifand₹thenRule 4
ifthenRule 5
ifhoursthenRule 6
ifthen- Otherwise
Priorities: Urgent 2 working hours, High 4 working hours, Normal 1 working day, Low 2 working days. Working hours are 09:00 to 18:00, Monday to Friday, so a weekend message's clock starts on Monday morning.
Volta Gear, its customers, orders, messages and policy are made up for this demo. Everything runs in your browser; nothing you change or type is sent anywhere.
Things to try
- Run the morning's inbox, then load the mood model and watch the angry messages jump to Escalations.
- In the routing rules, make VIP customers urgent and see who moves up the queue.
- Load the writer and compare SmolLM2's reply with the template that quotes the policy.
Where I'd use it
- Support inboxes
- WhatsApp and email triage
- Reply drafts
- Escalations
Want this on your own data? Tell me about your project.