← projects

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.

Role
Solo
Constraint
CPU only, under 15 s
Stack
Python, Ollama, Flask
in English + Spanish reply
1 Local LLM granite3.3:2b · schema-validated JSON CPU
2 Safety gate numbers · promises · negations ~0 ms
3 NLI check mDeBERTa-v3 XNLI · both directions <1 s
Send Review first Do not send

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

Service Desk AI · one reply through three tools
  1. 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. 2 Corrector 5 fixes · rules + LanguageTool + grammar model

    Hi Maria, imI'm sorry your order arivedarrived late. We hashave issued a refund of $45.99, and it should apearappear 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. 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. 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.

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 → record

Turns 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 → tickets

Paste 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

Dangerous replies rated “Send”, out of 22 in a 52-case test
SetupSent
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