I built an automated blog writer for my restaurant management app!
I am building an AI native restaurant management OS and one of the AI automation use cases I thought to try was to automate the creation of weekly blog posts to build up my SEO - and man what a feeling this was! Here's how it works, every Monday, it kicks off a 6-stage agent sequence: 1. Researcher Agent — generates keyword candidates, pulls live Google SERP data (serper.dev), picks the best opportunity, and drafts an outline 2. Writer Agent — writes a 1,400-word post in our brand voice, with hard guardrails against competitor mentions and clichéd phrasing 3. SEO Optimizer Agent — generates meta title, description, schema markup, and internal link suggestions automatically 4. Illustrator Agent — plans and generates custom images using GPT Image, uploads them to storage. This is the area that I think needs most work because the images generated are very much AI looking. 5. Compiler Agent — splices the images into the article and renders the final HTML 6. Publisher Agent — goes live At 3 points in the pipeline (brief, draft, final), I get an email with an approve/reject link (served by Resend). One click either advances the post or kills the run. The whole thing runs on pg_cron in Postgres. One SQL line schedules the entire weekly content operation. One post per week, basically on autopilot. Now could this be done simpler? Probably, but I wanted to try out the agent hand-offs and human in the loop. Also this was built on Supabase Edge Functions not Claude routines. If you're curious to look at the output here is a link https://www.withbagel.com/blog