The problem

Support bots escalate every unfamiliar problem to a human, and the human's fix then stays buried in a one-off ticket. The next customer with the same problem, in different words, gets escalated again.

What ResolveLoop does

ResolveLoop is a learning layer behind an eGain AI Agent ("Orbit Support Assistant") for Orbit Reports, a fictional SaaS whose Cloud 2 migration silently drops the per-user export permission.

  1. The eGain agent answers from Orbit's help articles (5 PDFs, 5 generated intents) and escalates what it cannot solve.
  2. A specialist fixes the case in a simulated support desk. Every authorized tool call is captured as a structured action event, with the verified outcome.
  3. ResolveLoop generates a candidate procedure: prerequisites, one allowlisted action, a verifier, provenance. A reviewer must approve it before it can run.
  4. When another customer reports the same issue in other words, the eGain agent calls the ResolveLoop Action, which matches the approved procedure, checks the live account, asks for confirmation, applies the fix and verifies it.
  5. Ineligible, ambiguous or injected requests are refused and escalated with two contact options. Zero unsafe executions, by design.

Any domain, same loop

Nothing in the loop is specific to SaaS exports. The domain lives in two plug-in points: the knowledge content the eGain agent is trained on, and the allowlisted tools the desk exposes. Swap those and the same agent, workflows and ResolveLoop services serve telecom, healthcare, ticketing, utilities or construction support: answer from content, escalate what is unknown, record the human fix, approve it, apply and verify it next time, refuse what is ineligible.

Business value: after a week or two of learning on a real queue, routine cases (where to find something, how to apply a setting, a known post-migration fix) resolve without a human. A support team of ten can run with four or five, who handle money, ownership, privacy and genuinely new problems. That reduction is the design target; the measured results are the 24 tests and the published-link runs in egain/OBSERVED.md.

Built the eGain way (all observed working in Test AI Agent and on the published link)

  • Knowledge-based agent trained on authorized, original content; intents reviewed; grounded answers with sources.
  • Published experience: Orbit look and feel, avatar, disclaimer, greeting, public demo link embedded on the Orbit help center page.
  • Pre-chat workflow: issue category, account ID, problem statement handed to the agent.
  • Escalation workflow: Email ticket (API node opens a real ResolveLoop ticket, RL-100x, then Send Email) and Phone or callback (Phone input, API node schedules a callback CB-100x, then Trigger Call). Direct, Knowledge Gap and Dislike triggers.
  • Process workflows on intents: Orbit Export Troubleshooter (symptom triage, consent, API node) and Orbit Subscription Check (live API call, Condition on the active flag).
  • Actions: three Custom APIs the agent decides to call on its own: resolve export issue, check account status, open support ticket.

The learning loop in numbers

24 automated tests passing; paraphrase set 10/10 matched, 0/10 false positives; executions only on APPROVED playbooks; every execution verified or marked FAILED.

Challenges

Making the agent's autonomy safe: the LLM decides which action to call and fills its parameters, but ResolveLoop decides whether it may run (eligibility, approval, consent, verification). Debugging eGain workflow publish checks (userQuery must be assigned before Send to AI Agent) and a header field that swallowed a JSON body were the fun parts.

What's next: let the LLM draft the procedure, humans grade it

Today the procedure comes from a human's recorded fix. The next step is to let the agent draft it: when it meets a problem it cannot answer, it reads the documentation, proposes the steps itself and runs them in a sandbox for low-risk requests (where to find a setting, how to apply a configuration), then a human reviews the outcome afterwards instead of beforehand. Anything touching money, account ownership or privacy stays human-in-the-loop before execution, exactly as the escalation and consent gates work now. Run as a continuous sprint, this lets a support team of ten handle the same queue with four or five people, with every automated resolution still audited and reversible.

Links

Built With

Share this project:

Updates

Submission history