Generate SEO Titles and Descriptions With AI In WordPress

Our CrawlWP SEO plugin can use WordPress’s AI connection to draft SEO titles, meta descriptions, and social titles and descriptions for individual posts and pages. Once an AI provider is connected, you can generate or rewrite text directly from the CrawlWP SEO box.

The feature is available in the free version. You choose the provider once under WordPress’s Settings > Connectors; CrawlWP then uses that connection when you click an AI button.

Before using AI in CrawlWP

  • Your site must run WordPress 7.0 or later so that the AI connection under Settings > Connectors is available.
  • You need an account with a supported AI provider: Anthropic, Google, or OpenAI. The provider supplies the API key and charges for its usage according to its own pricing.
  • CrawlWP’s SEO features must be enabled before the AI controls are available. See My meta title isn’t showing in Google.

There is also a privacy consideration before you generate anything. When an AI button is used, CrawlWP sends the post title, the beginning and end of the content in the editor (including changes you haven’t saved yet), the focus keyword, and the field’s current text to the connected provider.

Connect your AI provider through WordPress

The connection is managed by WordPress rather than by a separate CrawlWP settings page. OpenAI is used in this example, but Anthropic and Google follow the same general connection process.

  1. In WordPress, go to Settings > Connectors.
  2. Find OpenAI and click Install. WordPress installs the AI Provider for OpenAI plugin. When the button changes to Set up, click Set up.
  3. Copy an API key from your OpenAI account. The Get your API key at platform.openai.com link takes you to the relevant page.
  4. Paste the key into API KEY.
  5. Click Save. WordPress checks the key with OpenAI.
The Connectors screen
Entering the OpenAI API key

When the connection succeeds, the provider card shows Connected.

OpenAI connected

You only need one provider. Other plugins on the site that use WordPress’s AI connection can share the same connection, including CrawlWP.

You do not need to install the separate AI plugin promoted at the top of the Connectors screen. CrawlWP only needs a connected provider.

When WordPress cannot install the provider

The Install button needs permission to install plugins. When your host blocks plugin installation, you can install the AI Provider for OpenAI plugin another way, such as uploading it through Plugins > Add Plugin. Then return to Settings > Connectors and click Set up.

Store the API key in wp-config.php

A developer can put the provider key in wp-config.php instead of entering it on the settings screen:

define( 'OPENAI_API_KEY', 'your-key-here' );

For Anthropic use ANTHROPIC_API_KEY, and for Google use GOOGLE_API_KEY. The corresponding provider plugin must still be active.

Generate SEO text from the CrawlWP SEO box

After you connect the AI provider, the AI buttons appear beside the SEO fields. They only appear when a connected provider can write text, and a newly connected provider can take up to 5 minutes to show up. Reload the editor if you don’t see them yet.

Follow the steps below to use your connected AI provider to generate SEO titles and meta descriptions for your WordPress posts using CrawlWP.

  1. Open the post or page in the WordPress editor.
  2. In the CrawlWP SEO box, open the General tab.
  3. Find SEO title and Meta description. Each field has an AI button.
  4. Click AI beside SEO title. While CrawlWP waits for the response, the button shows Generating….
The AI buttons in the CrawlWP SEO box

The generated SEO title for the WordPress post or page is inserted into the field. Click AI beside Meta description to create the description.

Generating an SEO title

After both fields have values, review the wording. CrawlWP’s normal length indicators and search preview continue to update as you edit the fields.

The generated title and description

The generated text is only placed in the fields at this stage. Click Update or Publish to save it with the post.

Rewrite an existing title or description

When a field already contains text, its button uses the tooltip Rewrite with AI. Click it to ask for different wording that keeps the same meaning. You can generate another version when the first result is not suitable.

How CrawlWP prepares the AI request

The generation is based on information from the post, not the SEO field alone. CrawlWP sends the post title, the start and end of the content in the editor, including unsaved changes, the focus keyword, and the current value of the field being generated or rewritten.

For long posts, CrawlWP sends up to 8,000 characters of content. Most comes from the beginning of the post, with the remainder taken from the end. Shortcodes and HTML are removed first. Divi and Bricks layouts are read correctly. For Bricks, CrawlWP reads the saved layout, so save the page before generating.

  • SEO titles target about 40 to 60 characters.
  • Meta descriptions target about 120 to 160 characters.
  • When a generated value is longer than the target, CrawlWP shortens it.
  • When multiple focus keywords are set, the first one is used as the main keyword.
  • The generated text follows the post’s language: the site language, or the language selected by WPML or Polylang.

CrawlWP does not add quotation marks, emojis, your site name, or a separator to generated text.

For the SEO title, CrawlWP keeps your template. When the field, or the post type template used when the field is empty, contains {{ post.title }}, the generated title is put in its place and the rest is kept. For example, with {{ post.title }} {{ sep }} {{ site.title }}, the separator and site name stay, and CrawlWP shortens the generated part to leave room for them.

When the SEO title doesn’t contain {{ post.title }}, the generated title replaces the whole field. Meta descriptions and the social fields are always replaced in full.

If the field didn’t use {{ post.title }} and you need the site name in the generated title, add the variables yourself after generation, for example {{ sep }} {{ site.title }}. See Title and meta description template variables (reference).

Review every generated value before publishing it. AI can produce text that sounds plausible but does not accurately describe the page.

Generate separate social titles and descriptions

The Social tab has AI controls for the Open Graph title and Open Graph description. Click X at the top of the tab to access the X title and description, which also have AI buttons.

These buttons are locked when the corresponding fields inherit another set of values. Open Graph fields and their AI buttons are locked when Use the SEO title and description is enabled. The X fields are locked when Use the Facebook values is enabled. Hovering over or clicking a locked AI button tells you which setting to turn off.

  1. Open the Social tab. For X, also click X at the top of the tab.
  2. Turn off Use the SEO title and description for Open Graph, or Use the Facebook values for X.
  3. Click AI beside the social field you want to generate.
Generating an Open Graph title

Open Graph and X descriptions target up to 155 characters. See Setting up Open Graph for Facebook and Setting up Twitter/X cards.

Permissions and request limits

  • Connecting an AI provider under Settings > Connectors requires administrator access.
  • The AI buttons are available to users who can edit the post.
  • Each user can generate up to 20 values every 5 minutes. Only successful generations count, so provider errors or missing content don’t use up the limit. Developers can change the limit with the crawlwp_ai_rate_limit and crawlwp_ai_rate_limit_window filters.

Troubleshooting AI generation

“AI generation is unavailable. Connect an AI provider in WordPress under Settings → Connectors, then try again.” CrawlWP cannot use a connected provider that is missing or unable to write text. Open Settings > Connectors and make sure the provider card says Connected. The message includes an Open Connectors settings link, which opens in a new tab so you don’t lose unsaved changes in the editor.

“It was not possible to connect to the provider using this key.” This message appears when a provider key cannot be verified. Check that the complete key was copied, that the key has not been deleted, and that billing is set up with the provider. When the key is valid but the connection still fails, your server may be unable to reach the provider; ask your host to investigate.

The message for a key that does not work

“Add some content to the post first. A meta description is written from the page content.” The AI-generated meta description is based on the page content, so the post needs content. Add some content and try again. An SEO title can be generated from the post title alone. When the post has neither a title nor content, CrawlWP shows “Add a post title or some content first.”

“Too many AI requests. Please wait a few minutes and try again.” You have reached the limit of 20 generated values in 5 minutes for that user. Wait and try again.

The provider returns a quota or billing error. The request was refused by the AI provider. Check the provider account for its quota, billing, or account status.

The generated text is based on an older version of the page. CrawlWP uses the content in the editor, including unsaved changes. Page builders that keep the layout outside the editor, such as Bricks, are read from the last save, so save the page first, then click AI again.

The AI button beside a social field shows a message instead of generating. The field is using inherited values. Turn off Use the SEO title and description on the Social tab, or Use the Facebook values for X, then click AI again.

There are no AI buttons. CrawlWP only shows the buttons when a connected provider can write text. Check Settings > Connectors. If you have just connected a provider, wait up to 5 minutes and reload the editor.

There is no Connectors screen. The site may be running a WordPress version older than 7.0, or your host or a developer may have disabled AI functionality. Update WordPress or ask whoever manages the site to check the configuration.

Use AI as a drafting tool

CrawlWP makes it quicker to turn existing page content into a first draft for search and social metadata. A good workflow is to generate the text, check that it is accurate and useful, make any edits you need, and then click Update or Publish.

Because the request uses your connected AI provider and generated values replace the text in the selected field, review the result before saving it and make sure the provider and data-sharing arrangement are appropriate for your site.

Still need help?

Our support team usually replies within one business day. Send your site URL and what you have already tried — that context saves a round trip.