How campusx-official/blog-writing-agent works
This is a Streamlit technical-blog generation app. A user enters a topic and date, the frontend invokes the LangGraph backend, and the result is presented as a plan, research evidence, Markdown preview, and images, with download options. The backend excerpt shows routing, structured planning, section writing, image generation, and Markdown output; the frontend excerpt shows progress streaming and loading previously saved blogs. Internal graph wiring and research-provider calls are not visible in the excerpts, so those relationships are omitted rather than inferred.
Main entry points: bwa_frontend.py Streamlit interface · bwa_backend.py LangGraph app
Components 15
User interface
- Streamlit interface
bwa_frontend.py - Past blog loader
bwa_frontend.py - Download bundles
bwa_frontend.py
Blog generation
- LangGraph app
bwa_backend.py - Research router
bwa_backend.py - Evidence extraction
bwa_backend.py - Blog planner
bwa_backend.py - Section writer
bwa_backend.py
Image generation
- Image planner
bwa_backend.py - Image generator
bwa_backend.py
Saved outputs
- Markdown files
- Generated images
Other components
- Blog author
- OpenAI model
- Gemini image model
Connections 14
- Blog author → Streamlit interface: enters topic
bwa_frontend.py - Streamlit interface → LangGraph app: invokes app
bwa_frontend.py - Research router → OpenAI model: asks model
bwa_backend.py - Blog planner → OpenAI model: plans with
bwa_backend.py - Section writer → OpenAI model: writes with
bwa_backend.py - Image planner → OpenAI model: plans with
bwa_backend.py - Image generator → Gemini image model: generates with
bwa_backend.py - LangGraph app → Markdown files: writes Markdown
bwa_backend.py - LangGraph app → Generated images: writes images
bwa_backend.py - Streamlit interface → Past blog loader: loads saved blogs
bwa_frontend.py - Past blog loader → Markdown files: reads files
bwa_frontend.py - Streamlit interface → Download bundles: offers downloads
bwa_frontend.py - Download bundles → Markdown files: bundles Markdown
bwa_frontend.py - Download bundles → Generated images: bundles images
bwa_frontend.py