Wolfe AI
Coaching a sales rep while the call is still happening, then turning that call into CRM updates nobody has to type.
- Role
- Built the 5-service Python backend and the Google Meet Chrome extension
- Team
- Team project — I owned the backend and the Chrome extension
- Period
- Jul 2026 – Present
- Stack
- Python · FastAPI · LangGraph · Gemini Live · Neo4j · Redis Streams · Postgres · Docker · Caddy · Chrome MV3

01 — Context
The problem
Sales coaching usually happens a week late: a manager replays a recording and points out the moment the deal slipped. Wolfe moves that moment into the call itself. While a rep talks on Google Meet, a heads-up display surfaces coaching cards, answers questions from the team's own documents, and nudges them when they monologue or miss a closing cue.
The call doesn't end when the meeting does. Someone still has to update the CRM, write the summary and remember the follow-ups. Wolfe hands that to an agent, and keeps a knowledge graph of every person, company and deal it has seen so the next call starts with context.
02 — My role & scope
What I built
Wolfe is a team product. My part was the backend and the piece that sits inside the call:
- The entire 5-service Python backend — I'm the sole author of that repository (105 commits): live HUD agent, post-call agent, knowledge graph, research agent and the shared auth library.
- The Google Meet Chrome extension: audio capture, speaker separation, offline buffering and the in-call coaching UI.
- Ops for those services: Docker Compose, Caddy at the edge, bootstrap / release / rollback scripts and CI.
Everything else in the product was built by my teammates.
03 — Architecture
How it fits together
Five services share one auth library and talk through Postgres, a Redis queue and a Redis Stream. The live path is latency-bound; everything after the call is durability-bound, so they are built very differently.
04 — Hard problems
Three hard problems
- A.
A post-call run that survives a crash
- Problem
- Turning a call into evidence-backed CRM updates, actions and a summary is several LLM steps long. If a worker dies halfway, the naive outcomes are both bad: the run is lost, or it restarts from zero and repeats steps that already wrote data and already cost money.
- Options
- Retry the whole job on failure — simple, but duplicates finished work.
- Hand it to a generic task queue with retries — same problem, just hidden.
- Make each step durable and make the queue aware of who owns a run.
- Choice
- I modelled the run as a LangGraph graph with a Postgres checkpoint after every step, using the run id as the thread id. Workers take jobs from a Redis queue with an atomic claim, so two workers can never run the same job. A running worker heartbeats; a sweeper re-queues any run whose heartbeat is older than 120 seconds.
- Result
- A crashed run is picked up by another worker and resumes from its last checkpoint — finished steps don't re-run. The same checkpointing gave me human-in-the-loop for free: when the agent meets an unknown speaker it pauses in a waiting_input state and resumes through an API call once someone answers.
- B.
Exactly-once in effect, from an at-least-once stream
- Problem
- The knowledge graph is built from domain events. Redis Streams with consumer groups deliver at least once, so a worker that crashes after writing to Neo4j but before acknowledging will see the same event again — and duplicate people, companies and relationships in the graph.
- Options
- Try to make delivery exactly-once — not something the transport offers.
- Deduplicate in a side table — another store to keep consistent.
- Make the write itself idempotent, inside the graph.
- Choice
- Every event is recorded in the graph as an Episode node, so a re-delivered event is recognised and skipped. Workers in the consumer group use XAUTOCLAIM to take over messages a crashed worker left pending; an event that keeps failing is retried and then parked instead of blocking the stream. Neo4j is treated as a derived store with a backfill path, so it can always be rebuilt from the source of truth.
- Result
- Duplicates are a non-event rather than a cleanup job. Entity resolution — exact email match first, then fuzzier matching — has its own precision/recall eval, so changes to the matcher are measured instead of eyeballed.
- C.
Knowing who said what, inside a browser tab
- Problem
- Coaching only works if the system knows which words were the rep's. Google Meet gives an extension no clean per-speaker audio, and the coaching target is under two seconds end to end.
- Options
- Send mixed audio to a diarisation service — adds latency and cost to every second of the call.
- Trust Meet's captions alone — real names, but timing and coverage aren't reliable enough.
- Combine every signal the browser already has.
- Choice
- The microphone channel is always "You". For everyone else, a MutationObserver reads Meet's caption DOM to get real names, while an AudioWorklet computes MFCC voiceprints and clusters speakers locally. Cards travel on a high-priority WebSocket and low-priority signals on a separate one, so a burst of telemetry never delays advice. Transcript segments go to an IndexedDB buffer first and are flushed to Postgres every 30 seconds, so a flaky connection doesn't lose the call.
- Result
- Speaker separation runs on the rep's machine with no extra service in the loop, which is what makes the sub-2-second target realistic. The same signals drive the talk-to-listen bar, a monologue alert after 60 seconds and closing-cue prompts.
05 — AI specifics
The AI part
The interesting AI work was less about prompts and more about everything around them.
One live session per call
The HUD keeps a persistent Gemini Live session for the whole call and turns the running transcript into coaching cards, instead of re-sending context on every utterance.
Failover chain
If Gemini fails, requests fall through to Groq and then OpenAI. A provider outage degrades quality, not availability.
Ask Wolfe
Mid-call Q&A over the workspace's uploaded documents, with sources attached to every answer so the rep can trust what they're about to say.
Versioned prompts + evals
Prompts are versioned (v1/v2) and chosen by environment. An eval harness replays scripted calls, runs hard checks, scores with an LLM judge and produces v1-vs-v2 reports, so a prompt change ships with evidence.
Research agent
A LangGraph agent that pulls from Tavily, Apify, Playwright and YouTube transcripts across Groq, OpenAI and Gemini, and produces a PDF dossier before a call. Its UI is live at wolferesearch.vercel.app.
06 — Outcome
Where it landed
Five services running under Docker Compose behind Caddy, with bootstrap, release and rollback scripts and CI. Internal service APIs are signed with a shared secret and return 404 at the edge; access tokens are Ed25519, 15 minutes, verified through JWKS. Reps see their own calls, managers see the workspace, and everyone else gets a 404 — so call IDs can't be probed.
The research agent is public at wolferesearch.vercel.app. The rest of the system runs inside the product.
07 — Differently
What I’d do differently
- 01Start the eval harness on day one. It arrived after the first prompt version, and every decision before it was made on vibes.
- 02Define event schemas as a shared, versioned contract before the second consumer exists, not after.
- 03Add distributed tracing across the five services early. Following a single call through HUD, queue, agent and graph by log grep is slower than it should be.
