Skip to content
D

Devinne Debuggers - FeedSpace

Make review system fast and helpfull

Created on 15th February 2026

•

D

Devinne Debuggers - FeedSpace

Make review system fast and helpfull

Challenges we ran into

TestiFlow – AI Video Testimonial Collection

Collect stunning video testimonials from your customers with AI-powered interviews.

🏗 Architecture

Frontend (Next.js 16)          Backend (Express)
├── Landing Page           ──→ POST /api/start-session
├── Interview Page         ──→ POST /api/next-question
└── Done Page              ──→ POST /api/end-session
                                  │
                        ┌─────────┼─────────┐
                        │         │         │
                    Gemini    Whisper   Cloud TTS
                    (LLM)     (STT)     (Audio)
                                  │
                              NeonDB
                            (PostgreSQL)

🚀 Quick Start

Prerequisites

  • Node.js 18+
  • NeonDB PostgreSQL database
  • API Keys: Gemini, OpenAI (Whisper), Google Cloud (TTS)

1. Backend Setup

cd backend
cp .env .env     # Edit with your actual credentials
npm install
npm start

Required .env variables:

VariableDescription
DATABASE_URLNeonDB connection string
GEMINI_API_KEYGoogle Gemini API key
OPENAI_API_KEYOpenAI key (for Whisper STT)
GOOGLE_APPLICATION_CREDENTIALSPath to GCP service account JSON
PORTServer port (default: 5000)

2. Frontend Setup

cd frontend
npm install
npm run dev

Frontend runs on http://localhost:3000 and connects to backend at http://localhost:5000.

📋 API Endpoints

EndpointMethodDescription
/api/start-sessionPOSTStart interview, get first question + TTS audio
/api/next-questionPOSTSend answer audio, get next question + TTS
/api/end-sessionPOSTUpload full video recording
/api/healthGETHealth check

🔁 Flow

  1. User enters business prompt → LLM generates context + first question
  2. Camera starts recording, question plays via TTS
  3. User answers, clicks "Next" → audio sent to Whisper → transcript appended
  4. LLM generates next question → plays via TTS
  5. Repeat (max 4 questions or 2 minutes)
  6. Full video uploaded and saved

📁 Project Structure

backend/
├── server.js              # Express entry point
├── db/index.js            # PostgreSQL connection + schema
├── services/
│   ├── llm.js             # Gemini question generation
│   ├── whisper.js         # OpenAI Whisper transcription
│   ├── tts.js             # Google Cloud TTS
│   └── storage.js         # Local video storage
├── routes/
│   ├── startSession.js    # POST /api/start-session
│   ├── nextQuestion.js    # POST /api/next-question
│   └── endSession.js      # POST /api/end-session
└── uploads/               # Saved video files

frontend/
├── src/app/
│   ├── layout.js          # Root layout
│   ├── globals.css        # Premium dark theme
│   ├── page.js            # Landing page
│   ├── interview/page.js  # Interview recorder
│   └── done/page.js       # Success page
└── .env.local             # API URL config

Discussion

Builders also viewed

See more projects on Devfolio