Whisperer — Multi-tier AI Voice Agent & Transcription Platform
A production-grade AI voice agent and automated audio transcription platform featuring PromptPay QR checkout, OCR-based slip verification, and multi-tier subscription quotas.
1. Overview
Whisperer is a commercial-grade, full-stack AI voice agent and automated speech-to-text transcription platform tailored for modern businesses and professionals. The platform couples high-accuracy AI audio processing models with a specialized prompt library to transform raw spoken audio into structured meeting summaries, action items, and domain-specific transcripts.
The platform is engineered with a complete end-to-end commercial workflow: seamless authentication via LINE Login and Email Auth, a multi-tier role-based access control (RBAC) system with dynamic quota enforcement, automated order generation with dynamic PromptPay QR codes, and real-time bank transfer slip verification using webhook-driven OCR with high-security guards.
2. Stories & Visual Tour
Landing & Voice Agent Workspace
Clean, minimalist landing and AI workspace interface featuring an integrated audio upload pipeline and real-time transcription controls.
Multi-tier Packages & Checkout
Tiered subscription selection (Free, Starter, Pro, Enterprise) backed by real-time PromptPay QR generation and instant checkout.
Specialized Prompts Management
Curated prompt library enabling users to customize voice agent behavior for executive summaries, interview transcriptions, and medical/legal note taking.
System Automation & Operations
Administrative automation dashboard monitoring background processing jobs, transcription queues, and incoming webhook events.
3. Architecture & Workflows
System Architecture (Infographic)
flowchart TB subgraph Client["Client Tier (Next.js 16 App Router)"] UI_HOME["Landing & Audio Studio\n(Audio Uploader / Waveform Preview)"] UI_AUTH["Auth Layer\n(LINE Login OAuth 2.0 / Supabase Auth)"] UI_SUB["Subscription & Checkout\n(Dynamic PromptPay QR / Slip Ingestion)"] UI_MGMT["Prompt & Agent Studio\n(Prompt Injection & Output Formatter)"] end
subgraph Edge["Gateway & Edge (Vercel Edge sin1)"] GATEWAY["API Gateway & Webhook Router\n(HMAC-SHA256 Signature Verification)"] IDEM_GUARD["Idempotency Guard & Rate Limiter\n(Atomic DB Key Lock)"] end
subgraph Core["Backend & AI Pipeline (Next.js Server Actions)"] AUDIO_SVC["Audio Transcription Service\n(Chunking / Speech-to-Text Pipeline)"] PAY_SVC["Payment & SlipOK Ingestion\n(Webhook OCR & Payload Parser)"] QUOTA_SVC["Quota & Tier Manager\n(Atomic Balance Adjustment)"] end
subgraph Storage["Database & Storage Tier (Supabase sin1)"] DB[(PostgreSQL Database\nProfiles, Orders, Quotas, Subscriptions)] FILES["Supabase Storage\n(Encrypted Audio Chunks & Transcripts)"] end
Client --> GATEWAY GATEWAY --> IDEM_GUARD IDEM_GUARD --> Core Core --> DB Core --> FILESAutomated Slip Verification & Idempotency Pipeline
sequenceDiagram autonumber actor User as User participant Client as Whisperer Client participant Edge as Edge Webhook Gateway participant Core as Payment Service (Next.js) participant SlipOK as SlipOK / Webhook OCR participant DB as Supabase PostgreSQL
Note over User, DB: 1. Order Creation & Dynamic PromptPay QR User->>Client: Select Subscription Tier Client->>Core: Request Order Creation Core->>DB: Persist Pending Order with Unique Order Ref Core-->>Client: Return PromptPay Payload & Render Dynamic QR User->>Client: Pay via Mobile Banking & Upload Transfer Slip
Note over Client, DB: 2. Webhook Ingestion & Security Guards Client->>Edge: Post Slip to Inbound Webhook Pipeline Edge->>Edge: Verify HMAC-SHA256 Signature Header Edge->>Core: Forward Validated Payload Core->>DB: Check Idempotency Key (Double-credit & Replay Guard)
alt Idempotency Key Exists (Duplicate Event) Core-->>Client: Return Cached Order Status (Reject Redundant Execution) else Valid New Inbound Transaction Core->>SlipOK: Forward Slip Image for OCR Verification SlipOK-->>Core: Return Parsed Data (Amount, Timestamp, Receiving Account) Core->>Core: Validate Amount against Order Core->>DB: Mark Order "Paid" + Allocate Tier Quotas (Atomic Transaction) Core-->>Client: Real-time Confirmation & Instant Feature Unlock end4. Key Engineering Highlights
- Automated Slip Verification with Webhook OCR: Deep integration with SlipOK OCR to parse transfer slips, verifying transaction amounts, timestamps, and receiving accounts in real time. Secured with strict HMAC-SHA256 Signature Verification on all incoming webhooks to ensure origin authenticity.
- Idempotency Guard & Replay Attack Protection: Engineered deterministic database-level idempotency locks that prevent double-crediting, race conditions, or replay attacks when duplicate webhooks or retries occur.
- Multi-tier Subscriptions & Dynamic QR Generation: Configurable tier models with dynamic EMVCo-compliant PromptPay QR Code synthesis, tightly coupled with atomic quota calculation for audio minutes and word counts.
- High-throughput Audio Ingestion Pipeline: Architected audio chunking and non-blocking streaming handlers capable of processing lengthy audio recordings without encountering serverless execution timeouts.
- 100% Green Test Suite with Vitest: Built with rigorous test coverage, achieving 68/68 Vitest test suites passing (100% green) across HMAC security validations, idempotency logic, slip parsing, and quota management.
5. My Role & What I Built
As the Full-stack Developer, I led the end-to-end design and engineering:
- Frontend Architecture: Crafted clean, responsive user interfaces using Next.js 16 (App Router), Tailwind CSS v4, and TypeScript, building the audio studio, subscription flow, and management consoles.
- Backend & Security Engineering: Developed the inbound webhook ingestion pipeline, cryptographic HMAC validator, PromptPay QR generator, and OCR verification connectors.
- Database & Multi-tier RBAC: Designed the relational data model on Supabase (PostgreSQL sin1), establishing robust user roles, atomic quota allocations, and transaction auditing tables.
- Automated Testing & CI: Authored 68 comprehensive unit and integration test cases using Vitest, mocking payment gateways, verifying edge cases, and ensuring zero-defect financial workflows.
6. Result & Current State
- Test Suite Status: 68/68 Vitest test suites passing with 100% green status across all core services.
- Production Ready: Fully optimized for deployment on Vercel Edge with Supabase Singapore Region (
sin1), achieving ultra-low latency for Southeast Asian users and resilient scalability.
7. Demo & Code
- Production Live: whispererr.tech
- GitHub (Private Repository): Manchinn/whisperer
- Architecture: Next.js 16 (App Router) + Supabase (PostgreSQL sin1) + Tailwind CSS v4 + Vitest
- Deployment Target: Vercel Production Environment