This project analyzes social media performance using:
- Langflow for workflow creation and GPT integration.
- DataStax Astra DB for database operations.
The key tasks include:
- Database Upload
- Post Analysis
- Video Analysis
- Flow Description:
- A predefined JSON dataset simulating social media engagement (e.g., likes, shares, comments, post types) is prepared.
- The dataset is chunked into 512-character segments with 50-character overlaps.
- These chunks are uploaded to Astra DB along with OpenAI embeddings.
-
Workflow:
- A chat input queries Astra DB using search parameters.
- OpenAI embeddings refine the query and parse relevant data.
- Insights are generated through Langflow’s GPT integration, providing detailed performance metrics.
-
Example Outputs:
- Carousel posts have 20% higher engagement than static posts.
- Reels drive 2x more comments compared to other formats.
-
Transcript Analysis:
- Video scripts or transcripts are extracted using Whisper AI.
- The transcript is processed in Langflow, where GPT evaluates strengths, weaknesses, and suggestions.
-
Thumbnail Analysis:
- A thumbnail image is uploaded and analyzed using the Sharp package.
- Key metrics include:
- Brightness: 75.84%
- Contrast: 65.26%
- Color Variety: 25.84%
- Visual Complexity: 15.53%
- Topic Relevance: 20%
- Suggestions:
- Good contrast.
- Consider using more diverse colors and visual elements.
- Use YouTube’s recommended 16:9 aspect ratio.

