An AI-powered Agentic blog generation application built with LangGraph, FastAPI, and Streamlit. This app uses OpenAI models to generate blog posts on any topic and can translate them to Hindi, French, Hausa, Yoruba, or Igbo.
# Agentic Blog Generator
An AI-powered Agentic blog generation application built with LangGraph, FastAPI, and Streamlit. This app uses OpenAI models to generate blog posts on any topic and can translate them to Hindi, French, Hausa, Yoruba, or Igbo.
## Features
- π **Topic-based Blog Generation**: Generate comprehensive blog posts on any topic
- π **Multi-language Support**: Translate blogs to Hindi, French, Hausa, Yoruba, or Igbo
- π€ **OpenAI Models**: Support for latest GPT models (as of November 2025)
- **GPT-5 Series**: GPT-5, GPT-5 Mini (Latest Generation, released August 2025)
- **GPT-4.1 Series**: GPT-4.1, GPT-4.1 Mini, GPT-4.1 Nano (Enhanced coding & long context, released April 2025)
- **GPT-4o Series**: GPT-4o, GPT-4o Mini (Reinstated for paid subscribers)
- **GPT-3.5 Series**: GPT-3.5 Turbo (Fast & cost-effective)
- π¨ **Modular Streamlit UI**: Beautiful, modular web interface with LLM selection
- **Component-based architecture**: Separated into sidebar, main content, styles
- **Configuration-driven**: Customize via `uiconfigfile.ini`
- **Easy to extend**: Add new UI components without modifying core logic
- π **LangGraph Studio**: Visualize and debug your graphs/agents
- π **FastAPI Backend**: RESTful API for programmatic access
- βοΈ **Customizable Settings**: Adjust temperature and model selection via config file
## Project Structure
```
AgenticBlogger/
βββ app.py # FastAPI backend server
βββ streamlit_app.py # Streamlit app entry point (simple runner)
βββ graph.png # Langraph image generated
βββ src/
β βββ graphs/ # LangGraph definitions
β β βββ graph_builder.py # Graph construction and compilation
β βββ nodes/ # Graph nodes (blog generation logic)
β β βββ blog_node.py # Blog generation, translation, routing nodes
β βββ states/ # State definitions
β β βββ blogstate.py # BlogState and Blog Pydantic models
β βββ llms/ # LLM c β¦