graph TD
START[Review Researcher Start] --> INPUT[Process Input: Product Name/Category/URL]
%% YouTube Research Track
INPUT --> YT1[Search YouTube Reviews]
YT1 --> YT2[Get Top 3 Video URLs]
YT2 --> YT3[Download Videos as MP3]
YT3 --> YT4[Generate Transcriptions]
YT4 --> YT5[Analyze Video Content]
YT5 --> YT6[Create YouTube Summary]
%% Written Review Track
INPUT --> WR1[Search Google Reviews]
WR1 --> WR2[Get Top 3 Review URLs]
WR2 --> WR3[Extract Review Content]
WR3 --> WR4[Analyze Written Content]
WR4 --> WR5[Create Written Summary]
%% Final Synthesis
YT6 --> FS1[Combine All Research]
WR5 --> FS1
FS1 --> FS2[Generate Structured JSON]
FS2 --> OUTPUT[Return Final JSON Output]
%% Styling
classDef process fill:#e1f5fe,stroke:#01579b
classDef start fill:#c8e6c9,stroke:#1b5e20
classDef end fill:#ffcdd2,stroke:#b71c1c
class START start
class OUTPUT end
class YT1,YT2,YT3,YT4,YT5,YT6,WR1,WR2,WR3,WR4,WR5,FS1,FS2 process