graph TD
start[Start] --> A[USER: Enter Sample Description]
A --> B[TRACKLIBSCRAPERAGENT]
B --> |20 Latest Songs JSON| C[FILTERINGAGENT]
C --> |Top 5 Matches JSON| D[AUDIORETRIEVALAGENT]
D --> |5 Downloaded MP3s| E[STEMSEPARATIONANDANALYSISAGENT]
E --> |10 Stems + Beat Data| F[AUDIOCHOPAGENT]
F --> |10 Chopped Samples| G[PACKAGINGAGENT]
G --> H[final_samples.zip]
H --> end[End]
subgraph Metadata Flow
B --> M1[Track Metadata]
C --> M2[Selection Criteria]
E --> M3[BPM/Beat Data]
M1 --> G
M2 --> G
M3 --> G
end
subgraph File Processing
D --> P1[MP3 Downloads]
E --> P2[Stem Separation]
E --> P3[Beat Analysis]
P2 --> F
P3 --> F
end