AI tools for a service desk · AI-Intelekt internship · 2026
Service Desk AI
AI tools I built for a service-desk team. Three of them chain together: an agent’s English reply is corrected, translated to Spanish, then checked before it reaches the customer. The checker runs a 2B-parameter model on a CPU in under 15 seconds, and two extra checks that can only make the verdict stricter let it catch every dangerous reply in testing.
Work project, so the code is private. Happy to walk through it.
Each layer can only make the verdict stricter.
Dangerous replies rated “Send”
out of 22, in a 52-case test
- LLM only 10
- + NLI check 2
- + safety gate 0
Try it: one reply through all three tools
-
1 Agent’s draft English Hi Maria, im sorry your order arived late. We has issued a refund of $45.99 and it should apear in your account within 5 to 7 business days.
-
2 Corrector 5 fixes · rules + LanguageTool + grammar model Hi Maria,
imI'm sorry your orderarivedarrived late. Wehashave issued a refund of $45.99, and it shouldapearappear in your account within 5 to 7 business days.- im → I'm Missing apostrophe: "I'm" (= I am).
- arived → arrived Possible spelling mistake found.
- has → have Possible agreement error — use the base form here.
- $45.99 → $45.99, Suggested correction.
- apear → appear Possible spelling mistake found.
-
3 Translator English → Spanish · self-hosted LibreTranslate Hola María, siento que llegara tarde. Hemos emitido un reembolso de $45.99, y debe aparecer en su cuenta dentro de 5 a 7 días hábiles.
-
4 Checker each layer can only make the verdict stricter - Model granite3.3 · 2B confidence 100/100 Send
- Safety gate numbers · promises · negations no flags Send
- Meaning check mDeBERTa XNLI one side says something the other does not support (agreement 0%) — content may be added or missing raised to Review first
Review first
Raised by the meaning check.
The Spanish dropped “your order”: it reads “sorry it arrived late”. The model called it accurate, but the meaning check found a mismatch, so a person looks first.
-
1 Agent’s draft English Thank you for you're message. We are looking into the billing issue and will update you within two business days.
-
2 Corrector 1 fix · rules + LanguageTool + grammar model Thank you for
you'reyour message. We are looking into the billing issue and will update you within two business days.- you're → your Did you mean “your”?
-
3 Translator English → Spanish · self-hosted LibreTranslate Gracias por tu mensaje. Estamos investigando el problema de facturación y le actualizaremos dentro de dos días hábiles. Le reembolsaremos el importe completo hoy mismo.
Highlighted: a line the agent typed into the Spanish before sending.
-
4 Checker each layer can only make the verdict stricter - Model granite3.3 · 2B confidence 75/100 Review first
- Safety gate numbers · promises · negations a refund promise ('reembolsaremos') appears in the Spanish with no basis in the Englishan immediacy promise ('hoy mismo') appears in the Spanish with no basis in the English raised to Do not send
- Meaning check mDeBERTa XNLI one side says something the other does not support (agreement 0%) — content may be added or missing Do not send
Do not send
Raised by the safety gate.
Back-translation Thank you for your message. We are looking into the billing issue and will update you within two business days. We will refund the full amount to you today.
The agent added a refund promise to the Spanish. The model noticed but only asked for a review. The safety gate blocked it.
-
1 Agent’s draft English Thanks for you're patience. The technician will arrive between 9 and 11 AM on Thursday. If nobody are home, we will call you to reschedule.
-
2 Corrector 2 fixes · rules + LanguageTool + grammar model Thanks for
you'reyour patience. The technician will arrive between 9 and 11 AM on Thursday. If nobodyareis home, we will call you to reschedule.- you're → your Did you mean “your”?
- are → is Suggested correction.
-
3 Translator English → Spanish · self-hosted LibreTranslate Gracias por su paciencia. El técnico llegará entre las 9 y las 11 de la mañana del jueves. Si nadie está en casa, te llamaremos para reprogramar.
-
4 Checker each layer can only make the verdict stricter - Model granite3.3 · 2B confidence 100/100 Send
- Safety gate numbers · promises · negations no flags Send
- Meaning check mDeBERTa XNLI no flags Send
Send
Accurate, professional, tone-appropriate.
Back-translation Thanks for your patience. The technician will arrive between 9 and 11 AM on Thursday. If nobody is home, we will call you to reschedule.
A faithful translation, so all three layers pass it.
Real runs of my tools, recorded Nov 30, 2026. Only the drafts, and the line the agent adds, were written by hand.
The rest of the suite
Note cleanup
messy note → recordTurns a rushed support note into a structured record: the issue, the customer impact, what’s missing and a next step for the agent.
cust says cant login been trying since morning says password reset not working maybe email wrong needs help asap very upset
Cannot login due to failed password reset
Type: Login · confidence 85/100
Same 2B model, and every answer is schema-checked before it’s shown
Jira task tool
notes → ticketsPaste meeting notes and it pulls out the tasks, with due dates and time estimates. Review them, then create them all in Jira at once.
“by Friday”, “May 31, 2027”, “in 3 days”
due dates
“2 hours 30 mins”
2h 30m
Free rule-based reader, or Claude, OpenAI, Azure or Gemini
- 0 of 58
- dangerous replies let through
- 0 of 45
- safe replies blocked
- 8–13 s
- per check on CPU
How the checker works
- A small local LLM gives the first verdict as validated JSON.
- A rule-based safety gate catches changed numbers, invented promises and flipped negations. I wrote it in Python with Claude Code.
- An NLI model catches meaning swaps with no trigger words.
- Each layer can raise the verdict, never lower it.
How the rest is built
- Each tool is its own small web service, so they chain together or run alone.
- The corrector stacks my own rules, LanguageTool and a small grammar model, all offline.
- The translator works both ways, customer messages in and replies out, on a self-hosted engine with no per-word fee. One setting switches it to OpenAI, Azure, Claude or Google.
How I tested it
- 152 labelled cases. 100 were written by separate AI agents that saw only the labelling rubric, never the checker’s rules.
- The first run on them flagged 10 safe replies by mistake. I fixed the rules behind those, not the examples, and pinned each fix with a regression test.
- With the same safety gate, my 2B setup beat a model 7× its size (42 vs 40 of 52 labels matched) in about an eighth of the time.
- On a 40-sentence benchmark, the corrector got 32 fixes exactly right, against 19 and 15 for two AI-only grammar models.
- 83 offline tests, plus a one-command Linux deploy.
Results
| Setup | Sent |
|---|---|
| LLM only | 10 |
| + NLI check | 2 |
| + rule gate | 0 |
Stack
- Python
- Flask
- Ollama
- granite3.3:2b
- mDeBERTa XNLI
- LibreTranslate
- LanguageTool
- T5
- Pydantic
- pytest
- Jira REST API