# Generate and optimize AI blog posts for WordPress with Gemini and OpenAI

> Quick overview This workflow receives a webhook request with a draft article and AI configuration, then uses Google Gemini, OpenAI, and/or OpenRouter to generate WordPress-ready HTML content, SEO metadata, FAQs, and a cover image (base64) formatted for WPBakery, returning the assembled payload as JSON. How it works 1. Receives a POST webhook request containing a title, article text, writing and image style instructions, optional existing data, and AI provider settings. 2. Normalizes the incoming payload, determines whether the request is for a new post or for regenerating a specific asset, and prepares defaults such as categories and image constraints. 3. For regeneration requests, generates only the requested asset (image, excerpt, FAQ, or SEO JSON) using a fallback chain across Google Gemini, OpenAI, and OpenRouter, then returns the result to the webhook response. 4. For new post requests, generates excerpt, FAQ items, a single category selection, and SEO fields in one JSON response 

- **Domain**: `n8n-workflow-19652.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/19652
- Page (HTML): https://agenstry.com/agents/n8n-workflow-19652.n8n.io
- Documentation: https://n8n.io/workflows/19652
