Built by Tejasvi Bajaj for Anakin Blitz, a 6-hour hackathon.
ClarityReply is a Django-based AI reply workspace that extracts social post context from URLs or screenshots and generates platform-aware reply variations. It is designed for people who need to respond quickly across social platforms without sounding generic, robotic, or out of place.
Writing good replies across platforms is harder than it looks.
A reply that works on LinkedIn sounds too formal for Instagram. A reply that works in WhatsApp or Discord needs conversation history. A YouTube comment should feel supportive and discussion-friendly. Most AI-generated replies ignore these platform norms and produce generic responses like “Great insights, thanks for sharing.”
The core problem:
How can a user quickly extract context from a social post and generate human, platform-native reply variations without manually copying, cleaning, and re-prompting content?
ClarityReply provides a simple workflow:
- Paste a social post URL or upload a screenshot.
- Extract structured context such as platform, title, content, summary, author, and engagement signals.
- Review or adjust extracted data when relevant.
- Generate three alternate phrasings of the same reply strategy.
- Copy a reply and optionally open the original post URL.
The product focuses on reply generation only. It avoids long analysis, meta commentary, and personality-split outputs. Instead of “Professional / Friendly / Engaging” replies, it returns:
{
"variation_1": "",
"variation_2": "",
"variation_3": ""
}- URL extraction through Anakin URL Scraper.
- Screenshot OCR through Gemini vision.
- Platform detection for LinkedIn, Twitter/X, Instagram, YouTube, Reddit, Facebook, TikTok, Discord, WhatsApp, and Custom.
- Dedicated parsing improvements for YouTube and Instagram.
- Platform-native prompt rules, especially for Instagram.
- Discord and WhatsApp conversation context support.
- Generated reply cards with copy buttons and word counts.
- Django admin dashboard for inspecting extraction and generation data.
- No database schema changes required beyond the existing
ReplyRequestmodel.
User
|
v
Frontend UI
|
|-- URL extraction request
|-- Screenshot extraction request
|-- Reply generation request
v
Django Views
|
|-- ExtractContentView
|-- GenerateReplyView
v
Services
|
|-- ContentExtractionService
| |-- Anakin URL Scraper
| |-- Gemini OCR
|
|-- ClarityReplyService
|-- Gemini reply generation
|
v
ReplyRequest model
|
v
JSON response back to frontend
See the full hackathon write-up in docs/anakin-blitz-submission.md.
- Backend: Django
- Frontend: HTML, CSS, JavaScript
- Database: SQLite for local development
- AI: Google Gemini via
google-genai - URL Extraction: Anakin URL Scraper
- Parsing: BeautifulSoup, JSON-LD parsing, platform-specific extraction logic
- Admin: Django Admin
- Twitter/X
- YouTube
- Discord
- TikTok
- Custom
POST /api/extract/
Inputs:
source_type:urlorscreenshoturl: required for URL extractionimage: required for screenshot extractionplatform: selected platform
Returns:
request_idplatform_dataplatformurltitlesummarycontentauthor_nameauthor_username- engagement fields where available
POST /api/generate-reply/
Inputs:
request_idorpost_contentplatform- editable extracted fields
- reply preferences
- optional
previous_messagesfor Discord and WhatsApp
Returns:
{
"variation_1": "",
"variation_2": "",
"variation_3": ""
}git clone [Add repository URL]
cd ClarityReply
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtCreate a .env file or configure these variables in your shell:
SECRET_KEY="[Add Django secret key]"
DEBUG=True
DATABASE_URL="[Add database URL]"
GEMINI_API_KEY="[Add Gemini API key]"
GEMINI_MODEL="gemini-2.5-flash"
ANAKIN_API_KEY="[Add Anakin API key]"
ANAKIN_API_BASE="https://api.anakin.io"
ALLOWED_HOSTS="localhost,127.0.0.1"python3 manage.py migrate
python3 manage.py runserverOpen:
http://127.0.0.1:8000/
Admin:
http://127.0.0.1:8000/admin/
Run checks:
python3 manage.py check
python3 -m compileall core- Browser extension for replying directly on social platforms.
- More platform-specific parsers.
- Saved reply history and favorites.
- Team workspace support.
- Better analytics for reply performance.
- Deployment-ready production settings.
Tejasvi Bajaj
Built for Anakin Blitz, a 6-hour hackathon.
