How This Blog Writes Itself (AI Cron + Gemini + GitHub API)
This blog post was partially generated by an automated pipeline I built. Here's how it works — from RSS feeds to Gemini API to a GitHub commit — and why I still edit everything by hand.
Full transparency: this post started as an AI draft. Here’s the pipeline that produced it — and why I still rewrote most of it myself.
The Pipeline
Three times a week (Monday, Wednesday, Friday at 10:00 UTC), a Vercel cron job fires a Python script hosted at /api/auto-blog. Here’s what it does:
- Fetches trending topics from three RSS feeds: TechCrunch, WordPress News, and Shopify Blog
- Sends the top story to Gemini API with a prompt that asks for a markdown blog post featuring the tools and services I offer
- Pushes the file to
blog/src/content/blog/on GitHub using the GitHub API
The cron schedule lives in vercel.json, and the environment variables (GITHUB_TOKEN, GEMINI_API_KEY, and an optional CRON_SECRET) are stored in Vercel’s environment config.
The Honest Part
The AI generates decent first drafts. The structure is usually solid, the markdown formatting is clean, and it never forgets to include a CTA. But the voice, the specific details, the real numbers — that’s all me. I rewrite or heavily edit every post before publishing.
The drafts tend to be generic and too promotional. My job is to strip that out and replace it with honest experience: actual build times, real cost comparisons, genuine opinions.
Why I Built This
I’m a developer who builds Python automations for clients. This blog pipeline is a dogfood project — I use the same tools I recommend to clients. RSS scraping, LLM API integration, GitHub API automation, serverless cron scheduling. It’s a real-world showcase of what Python automation can do.
If you’ve got a content workflow, reporting pipeline, or data processing task that could benefit from this kind of automation, reach out. I build Python automations for a living.
Roshaan Jamil
Freelance web developer building custom WordPress and Shopify solutions, SEO tools, and Python automations. I write about what I build and what I learn.
Visit PortfolioGet new posts in your inbox
Insights on WordPress, Shopify, SEO, and Python automation, straight to you.
Related Articles
AI Product Descriptions for Shopify: Prompts, Templates & Human QA Checklist
Master the art of scaling your Shopify store's content with AI. Learn advanced prompting techniques, automated quality checks, and essential human QA workflows.
Automate Shopify Image Optimization with Python — Faster Pages, Higher Conversions
A comprehensive guide and production-ready Python script to automate Shopify image optimization, improving Core Web Vitals (LCP/CLS) and boosting sales.
Bringing AI to the Desktop: The Future of Seamless Workflows
Discover how integrating AI directly into your desktop environment with a GNOME extension can eliminate context switching and skyrocket your productivity.