Fix SEO titles and meta descriptions of new WordPress posts, with your approval in Slack
Every morning, the agent checks posts published on your WordPress site in the last day, spots missing or overlong titles and meta descriptions, has Gemini draft a fix and asks you in Slack; if you approve, it updates the post itself, then checks every week that the change shows on the live site.
- Difficulty
- Intermediate
- Setup time
- ≈ 1 h (estimate, including creating the WordPress application password and the Slack app)
- Estimated cost
- n8n: €0 self-hosted or from €20/month (Starter, billed annually) (your n8n version must include Data Tables); Gemini: billed per use (see Google's pricing page); WordPress and Slack: existing tools
- Category
- Marketing
⏱ Trigger
Every day at 9 am (cron) + report every Monday at 9 am
✋ Human approval
Yes: no post changes until you click "Apply fixes" in Slack; with no answer within 24 hours, nothing changes.
→ Output
Before/after proposals in Slack + WordPress posts fixed after approval + decision log + weekly Slack report
Autonomy level 2 — Semi-autonomous (approval): Runs on its own but waits for your approval before anything sensitive.
01Connected tools
- n8n – Schedule Trigger ↗
- n8n – HTTP Request ↗
- n8n – HTML ↗
- n8n – Google Gemini Chat Model ↗
- n8n – Slack ↗
- n8n – Data tables ↗
- WordPress REST API – posts ↗
- WordPress – application passwords ↗
02What the agent does on its own
- step 01
Every day at 9 am, fetches the latest 20 posts through the WordPress REST API and keeps those published in the last 24 hours (adjustable) that are not yet in the log (n8n Data Table seo_fix_log).
- step 02
Opens each live post and reads its displayed title, meta description, canonical tag, robots tag and H1s; flags issues (error page, noindex, missing canonical…) and works out the title length available once the theme appends the site name (defaults: 60 characters for the title, 160 for the description).
- step 03
When the title or meta description is missing or too long, sends the start of the post and these limits to Gemini (gemini-2.5-flash in the template), which drafts a title and description in the post's language without inventing facts or repeating the site name.
- step 04
Posts the before/after proposal to Slack with two buttons ("Apply fixes" / "Skip") and waits up to 24 hours for your answer.
- step 05
If you approve, updates the post title and excerpt (used as the meta description) through the REST API, confirms in Slack and logs the decision; a skip is logged too, so the same post is never proposed again. Other issues are listed for a manual check in the daily Slack summary.
- step 06
Every Monday at 9 am, reads the last 7 days of decisions, checks on the live site that the new titles and descriptions show, and posts a Slack report: changes applied, approval rate, pages where the change is not live, skipped drafts.
03Agent instructions
> You are an SEO editor. Rewrite the post title and meta description of this blog post so they fit the limits while keeping the original language, meaning and main keyword. Limits: the post title may have at most {TITLE_BUDGET} characters, because the site adds {SUFFIX} more characters (usually its name) in search results; the meta description at most {DESCRIPTION_MAX} characters. Count every character, including spaces and punctuation. Current post title: {TITLE}; title shown in search results: {SHOWN_TITLE}; current meta description: {DESCRIPTION}; H1: {H1}; issues found: {ISSUES}. Start of the post: {EXCERPT}. Rules: put the main keyword near the start of the title, do not repeat the site name, do not invent facts that are not in the post, no emoji, no clickbait.04Limits and legal points
The description is saved as the post excerpt, which Rank Math uses as the default meta description: with another SEO plugin (Yoast…), point the update request at that plugin's field, otherwise the weekly report will flag "not live". The title that changes is the post's own title. Only posts from the last 24 hours are checked: raise the setting to cover older ones, and note that an unanswered post is only proposed again while it is still inside that window. The site, its REST API and its pages must be publicly reachable from n8n. Post content is sent to Google (usually already public).
05In short
- When does the agent run, and what does it produce?
- Trigger: Every day at 9 am (cron) + report every Monday at 9 am. Output: Before/after proposals in Slack + WordPress posts fixed after approval + decision log + weekly Slack report.
- What stays under your control?
- Yes: no post changes until you click "Apply fixes" in Slack; with no answer within 24 hours, nothing changes. Autonomy level 2 — Semi-autonomous (approval): Runs on its own but waits for your approval before anything sensitive.
- How much does it cost and how long does setup take?
- Estimated cost: n8n: €0 self-hosted or from €20/month (Starter, billed annually) (your n8n version must include Data Tables); Gemini: billed per use (see Google's pricing page); WordPress and Slack: existing tools. Setup time: ≈ 1 h (estimate, including creating the WordPress application password and the Slack app), difficulty "intermediate". Tools: n8n – Schedule Trigger, n8n – HTTP Request, n8n – HTML, n8n – Google Gemini Chat Model, n8n – Slack, n8n – Data tables, WordPress REST API – posts, WordPress – application passwords.
Answers taken from this recipe · updated 2 November 2026
06Source
07Related recipes
Same category or same connected tools.