Skip to content
hipsterreedPublic

About

AI cold-call practice with live voice personas, instant scoring, and a team leaderboard.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

CallPilot

Hackathon

Built for a hackathon featuring ElevenLabs and Stripe.

Overview

Browser-based AI sales trainer — pick a persona, dial in, get graded.

Practice cold calls against AI sales personas, get rubric-scored feedback the moment you hang up, and see how you stack up against your team on a live leaderboard. No roleplay partner. No call coach on standby. Just pick a persona, hit "Start call," and the AI picks up the phone in voice.

How It Works

  1. Open the simulator and drop in your name — no signup, no password
  2. Pick a persona (e.g. Margaret Holloway · Director of Procurement · Hard · Skeptical), a product, a scenario, and a difficulty
  3. Hit Start call — the agent picks up in the persona's voice within a few seconds and the live transcript streams to your screen
  4. Pitch, handle objections, try to book the meeting — a coach hint pops up mid-call if you need a nudge
  5. End the call — your transcript gets graded in ~10s against a 7-skill rubric
  6. See your full report: score, rubric breakdown, transcript with coach annotations, objection table, vocal metrics, and a 3-step coaching plan
  7. Check the leaderboard — your row joins 10 teammates; click any rep to see their 12-week skill heatmap

Sponsor Integrations

ElevenLabs

  • Conversational AI — one shared agent, but each call gets a per-persona system prompt and voice override injected at session start. The agent stays in character, raises real objections, and won't book a meeting unless the rep handles ≥2 objections and proposes a specific time
  • Dynamic variables — persona background, pains, objections, triggers, mood, product value props, and scenario all get string-templated into the agent's prompt via signed-URL dynamic variables
  • Voice overrides — each of the 6 personas maps to a different ElevenLabs voice ID; the agent's TTS voice is swapped per call via the overrides.tts.voiceId field on Conversation.startSession
  • Client tools — the agent can call end_call directly from the conversation to hang up if the rep gives up or goes silent

Stripe

  • Metered billing — lib/stripe.ts exposes reportCallMeterEvent(sessionId) so every scored call posts a v1.billing.meter_events event keyed by session ID (idempotent — same session never bills twice)
  • Usage summaries — getUsageSummary() pulls the current period's call count from a billing meter and computes the upcoming invoice total, ready to drop onto a billing page
  • Subscription-anchored — usage rolls up under a fixed customer + subscription so the demo can showcase usage-based pricing without per-visitor onboarding

Features

  • Voice-first AI personas via ElevenLabs Conversational AI — 6 personas across difficulty levels (Easy → Brutal), each with a distinct voice, mood, and objection set
  • Dynamic per-call prompts — the same agent role-plays as Margaret Holloway, Reuben Castellanos, or any of the 6 by swapping dynamic variables at session start
  • Live transcript streaming — both sides of the conversation push into a Zustand store via onMessage and render in real time
  • Rubric-scored feedback — OpenAI grades the transcript in JSON mode against a 7-skill rubric (Opener, Discovery, Listening, Objections, Pricing, Tonality, Close) with weighted final score
  • Coach annotations — every transcript turn can carry an inline note from the grader; highlights call out "good" and "risk" moments
  • Objection tracking — every objection the persona raises is categorized (Pricing, Competitor, Process, Authority, Timing, Trust, Fit) and scored on how well the rep handled it
  • Vocal metrics — pace (wpm), filler count, longest pause, energy, talk/listen split, all estimated from the transcript
  • 3-step coaching plan — every graded session ends with three specific actions for the rep's next call
  • Live team leaderboard — 10 seeded reps + every visitor, ranked by avg score with podium for the top 3 and a "My rank" highlight pinned to the visitor's row
  • Per-rep skill heatmap — 12-week × 7-skill matrix on /reps/{repId} showing skill momentum
  • Public lead capture — a marketing landing page with a 3-field form writes to a server-only leads/{id} Firestore doc
  • No passwords — visitor identity comes from a repId cookie set on /welcome; switch names anytime to spin up a fresh dashboard
  • Idempotent grading + seeded data — re-loading the feedback page never re-grades; a fresh deploy seeds 6 personas, 2 products, 8 objections, 10 fake reps, and ~35 sample sessions so the leaderboard looks alive on first visit

Tech Stack

Layer Tech
Frontend Next.js 16 (App Router, RSC) + React 19 + TypeScript
UI Tailwind CSS v4 (native OKLCH) + lucide-react
Voice Agent ElevenLabs Conversational AI (@elevenlabs/client)
Rubric Grading OpenAI Chat Completions (JSON-schema mode)
Client State Zustand (live transcript + UI state)
Validation Zod
Database Firebase Firestore (firebase-admin server-side)
Auth None — repId cookie set on /welcome
Billing Stripe metered events + usage summaries
Fonts Geist + Geist Mono (next/font/google)

Local Development

npm install
cp .env.local.example .env.local   # fill in ElevenLabs, OpenAI, Firebase, Stripe keys
npm run seed                       # one-time: 6 personas, 2 products, 8 objections, 10 reps, 35 sessions
npm run dev

The build plan lives in .plan/ — read .plan/README.md first, then work stages top to bottom (00-setup.md → 08-polish-demo.md).

This is a public repo

Treat secrets accordingly: .env.local, *-service-account.json, and anything matching .env* is gitignored. Run git diff --staged before every commit and scan for API keys, private keys, OAuth tokens, signed URLs.

About

AI cold-call practice with live voice personas, instant scoring, and a team leaderboard.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages