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:
| Variable | Description |
|---|---|
DATABASE_URL | NeonDB connection string |
GEMINI_API_KEY | Google Gemini API key |
OPENAI_API_KEY | OpenAI key (for Whisper STT) |
GOOGLE_APPLICATION_CREDENTIALS | Path to GCP service account JSON |
PORT | Server 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
| Endpoint | Method | Description |
|---|---|---|
/api/start-session | POST | Start interview, get first question + TTS audio |
/api/next-question | POST | Send answer audio, get next question + TTS |
/api/end-session | POST | Upload full video recording |
/api/health | GET | Health check |
🔁 Flow
- User enters business prompt → LLM generates context + first question
- Camera starts recording, question plays via TTS
- User answers, clicks "Next" → audio sent to Whisper → transcript appended
- LLM generates next question → plays via TTS
- Repeat (max 4 questions or 2 minutes)
- 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
Technologies used
Discussion
Builders also viewed
See more projects on Devfolio