Skip to content

โœจ A smart AI agent that generates full-length blog posts and social media captions from any topic using GPT-4o and LangChain.

License

Notifications You must be signed in to change notification settings

kaveeshagim/ai-content-creator-agent

Repository files navigation

๐Ÿง  AI Content Creator Agent

Python LangChain OpenAI GPT-4o GitHub Pages RSS Feed Medium Last Updated License

An intelligent, agent-powered blog generator built with Python, LangChain, and OpenAI GPT-4o. Fully automated โ€” from idea to published blog with zero manual effort.


โœจ Key Features

  • ๐Ÿ” Input any blog topic
  • ๐Ÿง  Outliner Agent to structure posts before writing
  • โœ๏ธ Writer Agent + Proofreader Agent for high-quality content
  • ๐Ÿ“ฃ Auto-generated captions for Twitter, LinkedIn, Instagram
  • ๐Ÿ”— Citation Inserter Agent for credibility and references
  • ๐ŸŽฏ SEO Agent for tags, meta descriptions, and summaries
  • ๐Ÿ–ผ๏ธ Share Banner Generator for social media branding
  • ๐Ÿ’พ Saves content as .md, .txt, .json, and .html
  • ๐Ÿ“ค Auto-push to GitHub Pages for hosting + RSS feed
  • ๐Ÿ“ฐ Auto-publish to Dev.to via RSS
  • ๐ŸŽ›๏ธ Streamlit UI with queue system, trending topics, outline editing
  • โฐ Optional Google Calendar sync for scheduled posts
  • ๐Ÿ“Š Built-in Analytics Dashboard (reading time, tags, calendar heatmap)

๐Ÿงฉ Modular Agent Architecture

Agent Role
Outliner Agent Creates blog structure before writing
Writer Agent Generates content based on topic, tone, audience, outline
Proofreader Agent Cleans and refines blog content
Citation Agent Inserts credible references and links
SEO Agent Suggests meta description and SEO tags
Social Agent Generates captions and post templates for each platform
Editor Agent Summarizes content in bullet points

๐Ÿ–ฅ๏ธ Streamlit UI Features

  • โœ… Topic input, tone & audience selector
  • ๐Ÿ“‹ Optional outline preview and editing
  • โž• Queue multiple topics for batch processing
  • ๐Ÿš€ One-click generation with live feedback
  • ๐Ÿ“ฆ Downloadable files and preview windows
  • ๐Ÿ“† Analytics Dashboard with:
    • Calendar heatmap
    • Weekly/monthly trends
    • Top tags
    • Filterable blog archive
    • CSV export

๐Ÿ“‚ Project Structure

  • ๐Ÿ“ blogs/ โ†’ Markdown blog posts
  • ๐Ÿ“ captions/ โ†’ Captions for each blog
  • ๐Ÿ“ metadata/ โ†’ Blog metadata (JSON: SEO, summary, links, etc.)
  • ๐Ÿ“ docs/ โ†’ GitHub Pages folder (.html files + rss.xml)
  • ๐Ÿ“ banners/ โ†’ Social share images
  • ๐Ÿ“„ rss.xml โ†’ Auto-updated RSS feed for Dev.to and Medium

๐Ÿ”ฎ Possible Enhancements

  • ๐Ÿงต Thread Composer Agent (Twitter carousel style)
  • ๐Ÿ“ฑ Mobile version using Streamlit Cloud / Flutter
  • ๐Ÿง  Personalization agent for tone & voice calibration
  • ๐Ÿค– Slack + Zapier integration for daily blog triggers
  • ๐Ÿ“จ Newsletter bot for Substack / Revue

๐Ÿ“ก Live Demo


๐Ÿ› ๏ธ Tech Stack

  • Python 3.11
  • LangChain
  • OpenAI GPT-4o
  • Streamlit
  • Matplotlib + Calplot
  • GitHub Pages + RSS

โš™๏ธ Setup

  1. Copy .env.example to .env and fill in your API keys.
  2. Install the dependencies with pip install -r requirements.txt.
  3. To sync blog posts with Google Calendar, set ENABLE_GOOGLE_CALENDAR=true in .env and provide your Google credentials (credentials.json).

๐Ÿš€ Run the Components

  • CLI: python main.py
  • Streamlit UI: streamlit run app.py
  • FastAPI API: uvicorn api:app --reload
  • React UI:
    cd ai-content-creator-ui
    npm install
    npm run dev

๐Ÿ“š API Endpoints

Method Endpoint Description
POST /generate Generate blog content from a topic
GET /suggest-topics?category=tech Get trending topic ideas
GET /check-topic Check if a blog slug exists and get a rewrite
POST /save Save blog, captions, and citations
GET /calendar Return calendar data of published blogs
GET /analytics Aggregate metadata for dashboard

Want to build your own AI-powered publishing assistant? Fork this repo and start generating!


About

โœจ A smart AI agent that generates full-length blog posts and social media captions from any topic using GPT-4o and LangChain.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors