AI-powered viral Instagram Reels script generator for Indian tech audiences.
- Frontend: Next.js 14 + Tailwind CSS
- Backend: FastAPI + LangGraph
- LLMs: Claude 3.5 Sonnet (writing) + Perplexity sonar-pro (research) + GPT-4o-mini (analysis)
- Vector DB: ChromaDB (local, for style training)
- API Gateway: OpenRouter (unified LLM access)
- Deep investigative research via Perplexity
- Viral hook generation (5 variants per script)
- Multi-hook analysis with scoring
- Style learning from trained scripts
- Real-time streaming output
- India-focused content localization
cd backend
python -m venv venv
venv\Scripts\activate # Windows
pip install -r requirements.txt
cp .env.example .env
# Add your OpenRouter API key to .env
uvicorn app.api.server:server --reload --port 8000cd frontend
npm install
cp .env.example .env.local
npm run dev- Create a new Web Service on Render
- Connect your GitHub repo
- Set Root Directory:
backend - Build Command:
pip install -r requirements.txt - Start Command:
uvicorn app.api.server:server --host 0.0.0.0 --port $PORT - Add Environment Variable:
OPENAI_API_KEY(your OpenRouter key)
- Import project on Vercel
- Set Root Directory:
frontend - Add Environment Variable:
NEXT_PUBLIC_API_URL(your Render backend URL)
OPENAI_API_KEY=sk-or-your-openrouter-key
NEXT_PUBLIC_API_URL=http://localhost:8000
GET /- Health checkPOST /train_script- Train on a script examplePOST /generate_stream- Generate script (streaming)
.
├── backend/
│ ├── app/
│ │ ├── agents/ # LangGraph nodes & prompts
│ │ ├── api/ # FastAPI server
│ │ ├── db/ # ChromaDB storage
│ │ ├── schemas/ # Pydantic models
│ │ └── utils/ # Helpers
│ └── requirements.txt
├── frontend/
│ ├── src/app/ # Next.js pages
│ └── package.json
└── README.md