All projects
Featured case study

Edusogno Support: Our Own Intercom, With a Claude Assistant

Replaced Intercom with an in-house support platform on self-hosted Chatwoot: a Claude-powered assistant gated by an eval on real history, an SLA engine, bot hand-offs, and a full history migration.

Role
Full-stack engineer: Claude assistant, API integration, SLA engine, Intercom migration, app wiring
System
EasyPeasyFluent / Edusogno student, tutor, and admin apps
A support conversation where a Claude assistant answers and hands off to a person

Results at a glance

  • A Claude-powered assistant answers student questions, posts only above a confidence threshold, and always offers 'talk to a person'.
  • An evaluation gate: the assistant stays off until a graded sample of real past questions is at least 60% correct.
  • An SLA engine (first response 15 min, next response 30 min) that labels breaches and alerts Slack, replacing a paid Enterprise feature.
  • A resumable, concurrent export of the full Intercom history, so nothing was lost at cancellation.
  • Wired into the student, tutor, and admin apps, with a public bootstrap endpoint that lets each app switch between Intercom and the in-house chat by flag.

Overview

Edusogno's students reached support through Intercom, and its AI agent answered the routine questions. We replaced it with Edusogno Support, our own platform: a self-hosted, rebranded fork of the open-source Chatwoot for the inbox, with everything else built in-house on our Laravel API.

The Claude assistant

When a student starts a conversation, a bot flow can hand it to the resolver:

  • One read-only call to Claude. The model gets the student's question, a student card without contact details, and reviewed knowledge, and returns a JSON answer with a confidence score.
  • Only confident answers post. Below the threshold, or on any error, the conversation goes straight to a person.
  • Every answer asks. Each reply ends with "Yes, solved / No, talk to a person", and the outcome is recorded. Answers nobody rates are settled after seven days.
  • Usage is tracked in the same AI-usage log as the platform's other AI features.

Proving it before switching it on

The rollout rule was simple: the assistant stays off until it answers at least 60% of a graded sample of real questions correctly.

I built support:ai-eval to measure that. It picks past conversations a student opened and a person answered, asks the resolver the student's opening message through the same code path as a live answer (nothing is posted), and writes a sheet with the human answer next to the AI's. After a person grades the sheet, the tool reads it back and prints PASS or FAIL on the gate.

An SLA engine we didn't have to buy

Chatwoot's SLA management is an Enterprise feature, and it isn't in our fork. So support:sla-check runs every five minutes using timestamps the webhook handlers already keep:

  • A human-owned conversation where the student wrote last is flagged after 15 minutes (first response) or 30 minutes (next response).
  • A breach adds an sla-breached label and posts one Slack warning with deep links. The next agent reply clears it.
  • Office hours gate the alerts only, so the first run of the morning lists everything that waited overnight.

Moving off Intercom without losing anything

  • History export. support:export-intercom pulls every conversation, contact, message, note, tag, rating, and attachment, plus the Help Center articles, into files. It has a resumable state file and retries failures. The first version managed about four conversations a minute, so I pooled requests in parallel batches; a failed request is retried on its own so one bad record never sinks a batch.
  • Side by side. A public /support/bootstrap endpoint tells every app which chat to open (Intercom, both, or in-house), so the switch is a flag. The rollout runbook plans a two-week dual run before Intercom is switched off, with a rollback path.
  • Mobile. I wrote the hand-off spec for the app team to move from Intercom's native SDK to the in-house widget.

Bots and reliability

  • n8n rescheduling bot. The bot team's rescheduling bot used Intercom's webhooks. It now gets signed, retried webhooks from Edusogno Support and replies through service-token endpoints. If it never answers, the student goes to a person.
  • Races, handled. Chatwoot fires "conversation created" and the first message within the same second, and both handlers tried to create the same link row. The loser now catches the unique-constraint violation and updates the winner's row.
  • No silent pending. A student writing into a resolved conversation reopens it as pending for the bot. If the bot can't take it, the conversation is opened for agents instead of sitting unseen.

What I took from it

  • An AI assistant needs an exit as much as an answer. Low confidence, errors, and 'no' all go to a person.
  • Evaluate on your own history with the production prompt, and set the bar before you look at the results.
  • Webhooks arrive in parallel and out of order. Make every handler idempotent and survive the race on purpose.
  • Migrate behind a flag and run both systems side by side before switching anything off.
Henry Iddirisu

Henry Iddirisu

AI product engineer · Accra, Ghana · Remote

More projects

LaravelLaravel ReverbPHP

Lesson Whiteboard

Role: Full-stack engineer (sole developer across all three codebases)

A live whiteboard for online language lessons, built end to end across a Laravel API, Reverb WebSockets, the tutor app, and the st…

Next.jsReactTypeScript

Checkout Payments and Student Billing

Role: Full-stack engineer (payment step; billing API extensions; student and…

The payment step of a European e-learning checkout (Stripe, Klarna, Alma, PagoLight, SeQura), plus the billing API and student bil…