Tutorials

Get Expert Website Hosting

Choose website reliability and expertise with SiteGround!

Home / SiteGround's AI Agent for WordPress tutorials / Optimize on-page SEO with the AI Agent for WordPress

Optimize on-page SEO with the AI Agent for WordPress

Summarize this article with:
Last update: Oct 28, 2026 • 6 min read

Use the AI Agent for WordPress in SiteGround AI Studio to fix SEO titles, meta descriptions, headings, and internal links across single posts or entire categories through chat prompts.

The AI Agent for WordPress connects to your site through the AI Agent by SiteGround plugin and runs on-page SEO work from a single chat. You can rewrite a meta description for one post, update titles across an entire category, audit your heading hierarchy, and add internal links with relevant anchor text, using only natural language prompts. It runs alongside your existing SEO plugin, not in place of it.

What this tutorial covers

  • How to write SEO titles and meta descriptions for individual posts using chat prompts
  • How to bulk-update meta descriptions across an entire category in one command
  • How to audit heading hierarchy (H1, H2, H3) and fix structural issues
  • How to add internal links with relevant anchor text on new and existing posts
  • When to use the AI agent versus your existing SEO plugin (Yoast, Rank Math, AIOSEO)

Before you start: prerequisites and when this tutorial won’t help

You need an active SiteGround AI Studio account, the AI Agent by SiteGround plugin installed and activated on your WordPress site, and the site connected to AI Studio through the Connectors page.

This tutorial assumes you already have an SEO plugin such as Yoast, Rank Math, AIOSEO, or SEOPress installed. The AI Agent for WordPress writes into those plugins’ SEO title and meta description fields rather than replacing them.

This tutorial will not help if:

  • Your WordPress site is not connected to SiteGround AI Studio (start with the connection guide first)
  • You don’t have an SEO plugin installed (the agent populates plugin fields — without a plugin, there is nowhere to write the meta data)
  • You want technical SEO output like XML sitemaps, schema markup, or redirect rules (handled by the SEO plugin, not the agent)
  • You’re looking for a keyword research or rank tracking tool (use Ahrefs, Semrush, or similar)

This guide  walks through five on-page SEO tasks you can run from the AI Agent for WordPress chat. Each step includes the exact prompt you can paste into the chat and what to expect the agent to do.

Step 1 — Write SEO titles for posts and pages

The agent reads the post content, your target keywords (if you provide them), and the existing SEO title field, then proposes a rewrite. SEO titles cap around 60 characters before Google truncates them in search results.

Single-post SEO title prompt

Open the AI Studio chat and select the WordPress agent. Identify the post by title or URL, and tell the agent what you want:

Rewrite the SEO title for the post “10 ways to speed up WordPress” so it stays under 60 characters, includes the keyword “WordPress speed”, and adds a benefit-driven hook.

The agent returns one or more title options. Confirm the version you want, and the agent writes it directly to your SEO plugin’s title field. You can also include SEO titles and meta descriptions as part of creating a new post — see Create new blog posts and pages for that workflow.

Bulk SEO title updates across a category

For category-wide title rewrites, you’ll need to enable Power Mode — the safety feature that lets the agent run high-impact bulk actions like mass content edits.

Rewrite the SEO titles for all posts in the “Tutorials” category. Keep each title under 60 characters, lead with the action verb, and include the post’s primary keyword if it’s already in the original H1.

The agent will list affected posts before applying changes. Review the proposed titles, approve the batch, and the agent writes them into your SEO plugin one by one. If a title fails the constraints (e.g., over 60 characters), the agent flags it for manual review instead of writing it.

Step 2 — Write and refresh meta descriptions

Meta descriptions sit between roughly 150 and 160 characters before Google truncates them. Use these prompts so the agent reads the post body, identifies the value proposition, and writes a CTA-style description matched to search intent.

Single-post meta description

Write a meta description for the post “How to migrate WordPress to a new host” that’s under 155 characters, includes the keyword “WordPress migration”, and ends with a soft CTA.

The agent returns the proposed description, and on your confirmation, writes it into your SEO plugin’s meta description field. If the post content itself also needs updating, see Edit and update existing content — then come back to refresh the meta description to match.

Bulk meta descriptions across a category

This is one of the highest-leverage uses of the agent. A site with 200 posts and missing or duplicate meta descriptions across most of them gets cleaned up in one prompt:

Update meta descriptions for all posts in the “Marketing” category that are missing one or are over 160 characters. Keep each under 155 characters and include the post’s primary keyword in the first 100 characters.

The agent identifies qualifying posts, drafts new descriptions for each, presents the list for review, and writes them into your SEO plugin after you approve. Power Mode is required for this batch.

Step 3 — Audit and restructure heading hierarchy (H1, H2, H3)

Heading hierarchy is one of the most-broken on-page SEO elements on older WordPress sites. Common issues include multiple H1s on a single page, H3s nested directly under H1 with no H2 in between, and headings that read as styling choices rather than topic anchors.

Clean heading hierarchy also helps Google extract content into featured snippets and AI Overviews, since both pull from clearly delineated sections rather than walls of unstructured text.

Start by asking the agent to audit a single post or a category:

Audit the heading hierarchy on the post “WordPress backups explained”. Flag any duplicate H1s, skipped heading levels, and headings that don’t describe the section content. Suggest a corrected outline.

The agent returns a flagged list with proposed fixes. You can ask it to apply the changes directly:

Apply the corrected heading hierarchy to the post.

Step 4 — Add internal links with relevant anchor text

Internal links spread page authority across your site, help search engines discover related content, and keep visitors on the page longer. They are one of the single most-skipped on-page SEO tasks on WordPress sites with more than 50 posts.

The agent can scan a post, identify topics that match other posts on your site, and insert internal links with descriptive anchor text:

Find three to five internal linking opportunities in the post “Choosing a WordPress theme”. Suggest the source phrase, the target post URL, and the anchor text. Don’t link to the same target more than once.

You’ll get a list of proposed links with the surrounding sentence shown for context. Approve the ones that fit the reader’s intent at that point in the post. The agent inserts them into the post body and saves the change.

For older posts being refreshed, run the prompt across a category:

Add internal links to all posts published before January 2025 in the “SEO” category. For each post, find two to three newer posts in the same category that fit naturally as internal links. Use descriptive anchor text, not generic phrases like “click here” or “this article”.

How the AI Agent for WordPress complements SEO plugins

The agent doesn’t replace your SEO plugin. It writes into the plugin’s existing fields and operates across many posts at once, while the plugin handles the technical SEO infrastructure that Google needs to crawl and render your site correctly.

Task AI Agent for WordPress SEO plugin (Yoast, Rank Math, AIOSEO)
Write SEO titles and meta descriptions Generates and writes them in bulk via chat Provides the field, the snippet preview, and the readability score
Audit heading hierarchy Audits and rewrites at scale via chat Flags issues per-post in the editor sidebar
Add internal links with anchor text Suggests and inserts contextually relevant links across many posts Suggests links per-post (Yoast Premium, Rank Math Pro)
Generate XML sitemap Not handled Generated automatically
Schema markup (Article, Product, FAQ) Not handled Generated and rendered
Manage redirects Not handled Yoast Premium, Rank Math, or the Redirection plugin
Render meta tags in page source Not handled Renders all meta tags in the page <head>

Use the agent to do the writing work. Use the plugin to do the rendering work. They are designed to operate at different layers of your stack, and the combination is stronger than either one alone.

For image SEO specifically, the agent can also generate and update alt text across your media library — see Manage your media library for that workflow.

Common mistakes and how to avoid them

The AI Agent for WordPress is a tool that can significantly improve your workflow and automate repetitive SEO and content tasks. The quality of the results still depends on clear instructions, proper review, and careful use of automation. Most common problems include:

  • Approving bulk changes without reading the diff. The agent shows you proposed changes before applying them. Skipping the review step is the fastest way to publish AI-generated copy that doesn’t match your brand voice. Always scan the proposed list, especially for SEO titles where personality matters.
  • Asking the agent to “improve SEO” without specifying the task. Vague prompts produce vague output. Specify the field, the constraint (character count, keyword), and the target posts. “Improve SEO” returns generic suggestions; “Rewrite meta descriptions for the Marketing category, under 155 characters, with the primary keyword in the first 100” returns shippable copy.
  • Forgetting that the SEO plugin still owns the technical layer. If your sitemap, schema, or redirects break, that’s the SEO plugin’s responsibility, not the agent’s. Audit the plugin separately on a regular cadence.
  • Running bulk operations without Power Mode awareness. Power Mode is required for high-impact bulk actions and is disabled by default for safety. Enable it deliberately when you start a batch operation, run the operation, then turn it off. Leaving it on across sessions makes accidental destructive changes easier.

Frequently asked questions

Can the AI Agent for WordPress replace my SEO plugin like Yoast or Rank Math?

No. The AI Agent for WordPress writes content into your SEO plugin’s fields but does not render meta tags, generate XML sitemaps, manage redirects, or output schema markup. Your SEO plugin handles the technical SEO infrastructure that Google needs to crawl and render your site, while the agent handles the content optimization work at scale. The two are designed to work together.

How do I bulk update meta descriptions across all posts in a category?

Open the AI Studio chat, enable Power Mode, and prompt the agent: “Update meta descriptions for all posts in the [category name] category that are missing one or are over 160 characters.” The agent will list qualifying posts, draft new descriptions for each, and write them into your SEO plugin’s field after your approval.

Will the agent rewrite my published content, or just the SEO fields?

By default, the agent updates only the fields you ask it to update — SEO title, meta description, headings, or internal link insertions. It will not rewrite your post body unless you explicitly ask it to. For destructive or large-scope changes, Power Mode is required and you’ll be prompted to confirm before any change is written.

Share this article

Found this article useful?

Add SiteGround to your preferred Google sources