{"product_id":"ai-blog-generator-n8n-workflow-gemini-openai-wordpress-html","title":"AI Blog Generator n8n Workflow: Gemini\/OpenAI → WordPress HTML","description":"\u003ch3\u003eTurn a draft into WordPress-ready AI blog HTML—automatically\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow takes a webhook request containing your draft article and AI settings, then generates clean, WordPress-ready HTML using Google Gemini, OpenAI, and\/or OpenRouter—along with SEO metadata, FAQs, and a WordPress-compatible cover image (base64) returned as JSON.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives a POST webhook\u003c\/strong\u003e with a title, article text, writing \u0026amp; image style instructions, optional existing data, and provider settings.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNormalizes and prepares defaults\u003c\/strong\u003e, including category and image constraints, while determining whether the request is for a \u003cem\u003enew post\u003c\/em\u003e or a \u003cem\u003eregeneration\u003c\/em\u003e of a specific asset.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSupports asset regeneration\u003c\/strong\u003e (image, excerpt, FAQ, or SEO JSON) by generating only the requested piece using a multi-provider fallback chain across \u003cstrong\u003eGoogle Gemini\u003c\/strong\u003e, \u003cstrong\u003eOpenAI\u003c\/strong\u003e, and \u003cstrong\u003eOpenRouter\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGenerates full post content\u003c\/strong\u003e for new posts in a single JSON response: excerpt, FAQ items, a single category selection, and SEO fields.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRewrites your article into clean WordPress HTML\u003c\/strong\u003e (e.g., \u003ccode\u003e\u0026lt;p\u0026gt;\u003c\/code\u003e, \u003ccode\u003e\u0026lt;h2\u0026gt;\u003c\/code\u003e, \u003ccode\u003e\u0026lt;ul\u0026gt;\u003c\/code\u003e, \u003ccode\u003e\u0026lt;strong\u0026gt;\u003c\/code\u003e) while preserving meaning and applying your requested writing style.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCreates a detailed image prompt\u003c\/strong\u003e and generates a cover image via Google Gemini (fallback to OpenAI), then returns the image as \u003cstrong\u003ebase64\u003c\/strong\u003e formatted for WPBakery.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eAutomate blog publishing pipelines for SaaS teams: submit drafts via webhook, receive WordPress-ready HTML + SEO in one response.\u003c\/li\u003e\n  \u003cli\u003eRegenerate only FAQs, excerpt, or SEO JSON when editing content—without reprocessing the full article.\u003c\/li\u003e\n  \u003cli\u003eBuild a consistent content workflow for n8n automation engineers and operators using reliable AI provider fallbacks.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNodes:\u003c\/strong\u003e code, switch, webhook, sticky note, manual trigger, respond to webhook.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAI providers:\u003c\/strong\u003e Google Gemini, OpenAI, and OpenRouter (fallback chain).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOutputs:\u003c\/strong\u003e assembled JSON including WordPress HTML content, SEO metadata, FAQs, and a base64 cover image for WPBakery.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46047377653939,"sku":"N8N-19652","price":74.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/V9YiD6uAxH8XrDq8vlCRa_xBZKMdVZ.png?v=1789636524","url":"https:\/\/buyflowscripts.com\/products\/ai-blog-generator-n8n-workflow-gemini-openai-wordpress-html","provider":"N8N Commerce","version":"1.0","type":"link"}