Skip to content
F

FeedSpace

Feed where you are valued !

Created on 15th February 2026

•

F

FeedSpace

Feed where you are valued !

The problem FeedSpace solves

AI-Native Autonomous Testimonial Collection & Reel Generator
System Architecture Documentation
🧠 Overview

This system is an end-to-end AI-powered testimonial automation platform designed to:

Collect structured video testimonials autonomously

Generate intelligent interview questions

Record user responses

Extract high-impact highlights

Analyze emotion

Generate a deterministic edit blueprint

Produce social-media-ready reels (via Layer 3)

The architecture follows a clean 3-layer modular design to ensure:

Separation of concerns

Deterministic processing

Scalability

Stability

Maintainability

🏗 High-Level Architecture
Frontend (Interview UI)
↓
Layer 1 - Real-Time Interview Engine
↓
MongoDB + Local Video Storage
↓
Layer 2 - Intelligence Processing Engine
↓
Blueprint JSON
↓
Layer 3 - Reel Rendering Engine

Each layer has clearly defined responsibilities.

🟢 Layer 1 — Real-Time Interview Engine
Responsibilities

Layer 1 handles:

Interview session lifecycle

Dynamic question generation

AI avatar / TTS

Video recording

Conversation logging

Silence detection (lightweight)

Session storage in MongoDB

Local video storage

Data Stored in MongoDB

Example session document:

{
"sessionId": "3lybeo",
"companyPrompt": "...",
"conversation": [
{ "role": "bot", "text": "...", "timestamp": "..." },
{ "role": "user", "text": "...", "timestamp": "..." }
],
"videoPath": "/storage/interviews/3lybeo.webm",
"durationSeconds": 203,
"status": "completed",
"blueprint": null
}

Layer 1 Owns

Database (MongoDB)

Session state

Video storage

Frontend interaction

Layer 1 Does NOT

Transcribe audio

Score highlights

Perform facial emotion detection

Generate final blueprint

Render reels

🟡 Layer 2 — Intelligence Processing Engine

Layer 2 is a stateless AI engine responsible for converting raw interview data into a structured edit blueprint.

Responsibilities

Layer 2 performs:

Audio extraction (FFmpeg)

Whisper large-v3 transcription

Timestamp alignment

Sentence segmentation

Highlight scoring

Segment selection

DeepFace emotion analysis

Caption generation

B-roll keyword extraction

Blueprint generation

Layer 2 Tech Stack

Python

FastAPI

Whisper large-v3 (OpenAI API)

DeepFace

spaCy

VADER

FFmpeg

OpenCV

NumPy

Pydantic

Input Contract (From Layer 1)

Layer 1 transforms conversation into structured QA format before calling Layer 2.

{
"sessionId": "3lybeo",
"videoPath": "/storage/interviews/3lybeo.webm",
"durationSeconds": 203,
"qaStructure": [
{
"qaId": "qa_1",
"questionText": "...",
"questionStart": 10.2,
"questionEnd": 14.3,
"answerStart": 14.8,
"answerEnd": 32.4
}
]
}

Layer 2 does not access MongoDB directly.

Core Intelligence Flow
videoPath
↓
FFmpeg → audio.wav
↓
Whisper large-v3 → word timestamps
↓
Alignment with QA windows
↓
Sentence segmentation
↓
Highlight scoring (sentiment + keywords + duration + energy)
↓
Segment selection
↓
DeepFace emotion analysis
↓
Caption builder
↓
B-roll extraction
↓
Blueprint JSON

Highlight Scoring Formula

Each candidate sentence is scored deterministically:

score =
0.35 * sentiment +
0.20 * keyword +
0.15 * duration_fit +
0.15 * lexical_intensity +
0.15 * energy

Emotion slightly enhances score but never overrides logic.

Blueprint Output Structure

Layer 2 returns:

{
"version": "1.0",
"videoMeta": {...},
"qaTimeline": [...],
"globalEffects": {...},
"audioPlan": {...},
"emotionMetadata": {...}
}

Layer 2 is deterministic and stateless.

🔴 Layer 3 — Reel Rendering Engine

Layer 3 is execution-only.

Responsibilities

Trim segments

Merge clips

Render question cards

Render captions

Apply zoom effects

Insert B-roll

Add background music

Export 9:16 vertical reel

Layer 3 Does NOT

Recalculate highlights

Change segment order

Modify captions

Re-score segments

Layer 3 strictly obeys the blueprint.

Challenges we ran into

AI-Native Autonomous Testimonial Collection & Reel Generator
System Architecture Documentation
🧠 Overview

This system is an end-to-end AI-powered testimonial automation platform designed to:

Collect structured video testimonials autonomously

Generate intelligent interview questions

Record user responses

Extract high-impact highlights

Analyze emotion

Generate a deterministic edit blueprint

Produce social-media-ready reels (via Layer 3)

The architecture follows a clean 3-layer modular design to ensure:

Separation of concerns

Deterministic processing

Scalability

Stability

Maintainability

🏗 High-Level Architecture
Frontend (Interview UI)
↓
Layer 1 - Real-Time Interview Engine
↓
MongoDB + Local Video Storage
↓
Layer 2 - Intelligence Processing Engine
↓
Blueprint JSON
↓
Layer 3 - Reel Rendering Engine

Each layer has clearly defined responsibilities.

🟢 Layer 1 — Real-Time Interview Engine
Responsibilities

Layer 1 handles:

Interview session lifecycle

Dynamic question generation

AI avatar / TTS

Video recording

Conversation logging

Silence detection (lightweight)

Session storage in MongoDB

Local video storage

Data Stored in MongoDB

Example session document:

{
"sessionId": "3lybeo",
"companyPrompt": "...",
"conversation": [
{ "role": "bot", "text": "...", "timestamp": "..." },
{ "role": "user", "text": "...", "timestamp": "..." }
],
"videoPath": "/storage/interviews/3lybeo.webm",
"durationSeconds": 203,
"status": "completed",
"blueprint": null
}

Layer 1 Owns

Database (MongoDB)

Session state

Video storage

Frontend interaction

Layer 1 Does NOT

Transcribe audio

Score highlights

Perform facial emotion detection

Generate final blueprint

Render reels

🟡 Layer 2 — Intelligence Processing Engine

Layer 2 is a stateless AI engine responsible for converting raw interview data into a structured edit blueprint.

Responsibilities

Layer 2 performs:

Audio extraction (FFmpeg)

Whisper large-v3 transcription

Timestamp alignment

Sentence segmentation

Highlight scoring

Segment selection

DeepFace emotion analysis

Caption generation

B-roll keyword extraction

Blueprint generation

Layer 2 Tech Stack

Python

FastAPI

Whisper large-v3 (OpenAI API)

DeepFace

spaCy

VADER

FFmpeg

OpenCV

NumPy

Pydantic

Input Contract (From Layer 1)

Layer 1 transforms conversation into structured QA format before calling Layer 2.

{
"sessionId": "3lybeo",
"videoPath": "/storage/interviews/3lybeo.webm",
"durationSeconds": 203,
"qaStructure": [
{
"qaId": "qa_1",
"questionText": "...",
"questionStart": 10.2,
"questionEnd": 14.3,
"answerStart": 14.8,
"answerEnd": 32.4
}
]
}

Layer 2 does not access MongoDB directly.

Core Intelligence Flow
videoPath
↓
FFmpeg → audio.wav
↓
Whisper large-v3 → word timestamps
↓
Alignment with QA windows
↓
Sentence segmentation
↓
Highlight scoring (sentiment + keywords + duration + energy)
↓
Segment selection
↓
DeepFace emotion analysis
↓
Caption builder
↓
B-roll extraction
↓
Blueprint JSON

Highlight Scoring Formula

Each candidate sentence is scored deterministically:

score =
0.35 * sentiment +
0.20 * keyword +
0.15 * duration_fit +
0.15 * lexical_intensity +
0.15 * energy

Emotion slightly enhances score but never overrides logic.

Blueprint Output Structure

Layer 2 returns:

{
"version": "1.0",
"videoMeta": {...},
"qaTimeline": [...],
"globalEffects": {...},
"audioPlan": {...},
"emotionMetadata": {...}
}

Layer 2 is deterministic and stateless.

🔴 Layer 3 — Reel Rendering Engine

Layer 3 is execution-only.

Responsibilities

Trim segments

Merge clips

Render question cards

Render captions

Apply zoom effects

Insert B-roll

Add background music

Export 9:16 vertical reel

Layer 3 Does NOT

Recalculate highlights

Change segment order

Modify captions

Re-score segments

Layer 3 strictly obeys the blueprint.

Discussion

Builders also viewed

See more projects on Devfolio