Demo project
Customer AI answers from public product documentation and account tools they can only read from—never mutating billing or subscriptions. Employee AI backs the human with internal runbooks plus read/write account tools, and always separates internal notes from a draft customer reply the agent reviews before anything is sent. Escalation hands off in-thread with structured context.
Source code
sramam/customer-service-agent-demo
Browse the full repo—agents, UI, APIs, and demo media pipeline.
content/docs; agents can list product areas and narrow search so answers stay on-topic.Open the interactive split view at /customer: customer chat on the left, agent column on the right (escalation list, thread, employee AI, draft review).
Launch interactive demoApproximate language-model token usage attributed to building this demo (development iterations, refactors, and tooling)—illustrative of cost structure when shipping with AI.
| Category | Tokens | Cost (USD) |
|---|---|---|
| Input tokens | 17,603,947 | $88.02 |
| Output tokens | 1,851,308 | $46.28 |
| Input cached tokens | 311,163,351 | $155.58 |
| Total | — | $289.88 |
Next.js 16 · React 19 · TypeScript · Tailwind CSS 4 · shadcn-style UI (Base UI, CVA) · Lucide icons
Vercel AI SDK 6 · OpenAI (via AI SDK) · optional Anthropic fallback · Zod tool schemas
PartyKit when configured, otherwise polling · same-tab events for instant agent refresh when using the split view
Prisma 7 · PostgreSQL on Neon · Prisma Neon driver adapter
react-markdown · remark-gfm
Playwright (e2e) · Remotion 4 (walkthrough video) · ElevenLabs (voice-over)
Vercel · pnpm · ESLint