{"product_id":"wordpress-missing-excerpts-generator-with-openai-n8n","title":"WordPress Missing Excerpts Generator with OpenAI (n8n)","description":"\u003ch3\u003eAutomatically generate missing WordPress excerpts with OpenAI—then save them back (or review first) in n8n\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow finds \u003cstrong\u003epublished WordPress posts\u003c\/strong\u003e missing excerpts, generates \u003cstrong\u003eplain-text excerpts using OpenAI Chat Completions\u003c\/strong\u003e in the post’s language, and optionally updates the excerpt via the \u003cstrong\u003eWordPress REST API\u003c\/strong\u003e—safely through a configurable \u003cstrong\u003edry-run\u003c\/strong\u003e mode.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRuns manually or on a weekly schedule\u003c\/strong\u003e to keep your site content consistent.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFetches posts in edit context\u003c\/strong\u003e, then filters to keep only \u003cstrong\u003epublished posts\u003c\/strong\u003e with an \u003cstrong\u003eempty excerpt\u003c\/strong\u003e and at least \u003cstrong\u003e200 characters\u003c\/strong\u003e of content.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLimits the batch size per run\u003c\/strong\u003e to control workload and cost, strips HTML, and prepares plain-text content for prompting.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCalls OpenAI Chat Completions\u003c\/strong\u003e to generate a \u003cstrong\u003eJSON-formatted excerpt\u003c\/strong\u003e in the post’s language, using a configurable \u003cstrong\u003eword limit\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eParses and validates\u003c\/strong\u003e the AI response, skipping posts where the excerpt is missing or outside the allowed length range.\u003c\/li\u003e\n  \u003cli\u003eIf \u003cstrong\u003edryRun\u003c\/strong\u003e is enabled, \u003cstrong\u003eoutputs generated excerpts\u003c\/strong\u003e for review; otherwise, \u003cstrong\u003eupdates each post’s excerpt in WordPress\u003c\/strong\u003e via the REST API.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eMaintain SEO-friendly search snippets by auto-filling \u003cstrong\u003eWordPress excerpt fields\u003c\/strong\u003e for newly published content.\u003c\/li\u003e\n  \u003cli\u003eReduce editorial overhead for SaaS teams managing frequent blog publishing.\u003c\/li\u003e\n  \u003cli\u003eRun a weekly “content QA” workflow to ensure every published post has a usable excerpt before indexing and sharing.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details (n8n)\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations:\u003c\/strong\u003e WordPress Application Password (REST API) and \u003cstrong\u003eOpenAI\u003c\/strong\u003e API credentials in n8n.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWorkflow logic nodes mentioned:\u003c\/strong\u003e if, set, code, no op, limit, filter.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eKey configuration:\u003c\/strong\u003e site URL, posts-to-scan and per-run limits, OpenAI model, excerpt word limit, and dryRun behavior.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eSetup (quick overview)\u003c\/h3\u003e\n\u003cp\u003eCreate a WordPress Application Password with permissions to edit posts, add your WordPress and OpenAI credentials to n8n, then configure the workflow with your site URL and excerpt settings.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46217913827507,"sku":"N8N-20838","price":11.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/rhYW9cLv9-aNWyK4YyGf_aLuLv5jz.png?v=1791882815","url":"https:\/\/buyflowscripts.com\/products\/wordpress-missing-excerpts-generator-with-openai-n8n","provider":"N8N Commerce","version":"1.0","type":"link"}