# Interactive Voice-Agent Live Phone Demo Funnel

## Objective

Let visitors talk to a live AI voice agent in-browser or via a real test phone call, then inspect the structured call summary.

Build an interactive voice-agent demonstration funnel where prospects pick a business scenario, run a real 90-second live browser or phone test call that handles objections and books a mock slot, and see the structured JSON/CRM handoff right beside the signup CTA.

## Before You Begin

This funnel is being added to an application or site that may already exist.
Do not scaffold a new project unless the user explicitly asks for one, and
do not assume a blank slate.

Inspect the codebase first and establish:

- The source Markdown files, docs, URLs, or repo files supplied for this funnel build.
- The offer, audience, funnel stage, price point, and desired conversion action.
- The existing application structure and where landing pages, forms, checkout, or tracking code already live.
- The framework and version in use.
- The existing design system — colours, spacing, typography, and component conventions.
- Existing UI components you can reuse instead of writing new ones.
- The existing database structure, if this funnel needs to persist leads, applications, purchases, or events.
- The existing authentication and authorization system, if this funnel is user-scoped.
- Dependencies already installed, so you don't add a library that duplicates one.
- The existing test setup and conventions.

Only start writing code once you understand the above. If the application
already implements part of this funnel, extend it rather than replacing it.

Do not invent testimonials, revenue claims, scarcity, guarantees, legal
disclaimers, or endorsement language. Use only what appears in the source
files, and call out missing claims or assets in your final summary.

## Implementation Instructions

Build an interactive voice-agent demonstration funnel where prospects pick a business scenario, run a real 90-second live browser or phone test call that handles objections and books a mock slot, and see the structured JSON/CRM handoff right beside the signup CTA.

1. Define 2-3 realistic demo scenarios (e.g., missed-call booking, order status, inbound lead qualification) and the exact structured fields extracted when a call finishes.
2. Build a crisp demo launcher offering both an instant WebRTC browser mic test and an optional verified 'Call my phone now' trigger with explicit SMS/call consent.
3. Display live streaming transcript captions during the conversation so muted viewers or office visitors can follow every turn.
4. Once the demo call ends, display the real extracted structured call summary (intent, objection handled, booked slot) directly above a 'Deploy this for your business' trial or demo CTA.

## Edge Cases

- Verify phone numbers via short one-time code and enforce strict per-IP and per-number call duration caps so outbound telephony cannot be abused for spam.
- Provide a pre-recorded interactive playback fallback if the visitor denies microphone permissions or uses an unsupported browser.

## Acceptance Criteria

- [ ] Visitors can test at least one live scenario in-browser (or listen to an interactive fallback) with live transcript display.
- [ ] Outbound test-call triggers enforce phone verification, explicit consent, and strict call-length limits.
- [ ] Completed demo calls render the real extracted summary directly beside the conversion CTA.

## Adaptation Rules

- Match the existing design system. Do not introduce a new colour palette,
  spacing scale, or component library.
- Reuse existing components and utilities wherever they fit.
- Follow the naming, file layout, and code style already present.
- Do not upgrade, replace, or remove existing dependencies to make this
  funnel fit. Adapt the funnel to the app, not the app to the funnel.
- Do not break existing functionality. If a change is genuinely required in
  existing code, make the smallest one that works and say so.
- If something in these instructions conflicts with how the application is
  built, follow the application and explain the deviation.
- Use generic funnel strategy language. Do not name or imply endorsement by
  any specific public marketer, course, book, or software brand.

## Final Verification

Before you report the work as done:

1. Re-read the acceptance criteria above and check each one against what you
   actually built.
2. Run the application and exercise the funnel end to end.
3. Run the existing test suite and confirm you have broken nothing.
4. Check the funnel on mobile, tablet, and desktop widths.
5. Check forms, buttons, keyboard navigation, and focus handling.
6. Summarize what changed: files added, files modified, source files used,
   assumptions made, and anything you deliberately did differently because
   of how this application is built.

If any acceptance criterion is unmet, fix it before reporting completion.
