Gemini Spark: Getting the Agent Back on the Blog

 


Back in August, I tried getting Gemini Spark to publish a post with an image, and it faceplanted on the Blogger email gateway. 58 days ago, the draft died because the model could not pipe a 10MB binary payload through the mail API. Infuriating. I ended up pasting the image into Blogger by hand like a caveman.

The fix was staring me in the face the entire time. Stop trying to make the agent pretend to be a full-fledged MIME encoder, and just build a clean pipeline around the constraints. The Woodman Legion publishing flow runs on a dedicated Blogger secret address, HTML formatting rules, and decoupled asset handling.

The Pipeline

The setup is straightforward — which is why it actually works:

  • Blogger Mail-to-Post — a throwaway incoming gateway address that parses raw HTML and publishes on receipt
  • Woodman Legion Skill — strict formatting rules that strip markdown, enforce semantic HTML tags, and embed image metadata as comments
  • Image Generation Engine — standalone visual generation that renders the hero asset directly in the workspace instead of choking the mail transport

How It Works

Instead of trying to force base64 blobs into an SMTP client that was never built for inline multipart attachments, the agent generates the asset locally, displays it in chat, and wraps the post in clean semantic markup. The image prompt, slug, and labels live inside an HTML comment block at the top of the post. If I want the hero art on the live page, I upload the artifact; the text itself hits the feed instantaneously without intervention.

No cloud middleware. No Zapier subscriptions draining $20 a month for webhooks that break when an API token expires. Just bare API calls, clean HTML, and an agent doing actual work.

What's Next

Automating the asset sync back to the storage bucket so even the copy-paste step is dead. For now, the agent writes, formats, and publishes without bricking the thread — which is more than I could say two months ago.

Comments

Popular posts from this blog

Variational Reasoning and Metastability

SMS Session Connector: AI in Your Pocket, No Cloud Required

Multiple LLM Providers, the joy