Blog Autopilot

Multi-blog, multi-account Gemini → Blogger publishing agent. One static page, nothing else involved.

● static · runs only in your browser
Read this once: this is still a plain HTML file with no server, so "automation" here means a scheduler that runs while this tab is open in your browser — it checks the clock and fires jobs itself, but if the tab or device is closed/sleeping, nothing fires (no static page can wake itself up). Also, the Google sign-in token used to publish expires after about an hour; the scheduler tries to silently renew it, and if that fails it will log a request for you to click "Connect" again. Keep the tab open on a device that stays awake for real unattended runs.

1 Gemini setup

From aistudio.google.com/apikey — free.

On generate, the agent tries these top-to-bottom and auto-falls-back to the next one if a model errors or hits a quota limit — this is what fixes the "Flash errors out a lot" problem.

2 Blogs & Google accounts

Add one row per blog. Each row connects its own Google account (so different blogs can belong to different Google logins) — click "Connect" on a row and pick the right account in the popup.

One-time setup notes for the OAuth Client ID
Blogger's write API needs a signed-in account, not just a key.
  1. In console.cloud.google.com, open (or create) a project and enable Blogger API v3.
  2. Under Credentials, create an OAuth client ID → Web application.
  3. Add the exact URL you're viewing this page at under Authorized JavaScript origins.
  4. You can reuse the same Client ID for every blog row — it's the per-row "Connect" click that lets you pick a different Google account each time.
Blog ID: found in Blogger → Settings, or in your dashboard URL's blogID= parameter.

3 Instruction presets

Save your own writing instructions (style, SEO rules, word count, formatting) as reusable presets. Use {{TOPIC}} anywhere you'd put the subject — it gets swapped for whatever topic you type in when generating. Two starter presets are preloaded from what you described.

4 Write & publish now

One-off post, generated and reviewed on demand.

Best-effort: Blogger has no official "set permalink" API call, so the agent uses the documented workaround (create with a slug-shaped title, then rename). See log for the real final URL.

Sourced from Wikimedia Commons (freely licensed), not scraped from news sites/social media — those are usually copyrighted and also tend to hotlink-break, which is likely why images "fell out" of your theme before.

idle

5 Review before it goes live

not sent

6 Scheduled automation

Each job auto-generates and publishes live immediately at its set time, with model fallback and automatic retry built in. Runs only while this tab stays open (see the notice up top).

stopped

7 Activity log

--:--:--Waiting for input