Generate SEO-Friendly Slugs for WordPress Posts with AI

  • Post author:
  • Post category:Guides
  • Updated: October 7, 2026

Let’s see how to generate WordPress URL slugs with AI using WP Sheet Editor. You can create slugs for individual posts or generate them in bulk.

Tools you need

1. WP Sheet Editor – Post Types

WP Sheet Editor lets you manage WordPress posts, pages, and custom post types in a spreadsheet.

2. WP Sheet Editor – AI

WP Sheet Editor – AI lets you run AI commands in spreadsheet cells and apply them to multiple rows.

3. An AI provider

Connect an AI provider such as OpenAI, OpenRouter, or another OpenAI-compatible provider.

See our AI configuration guide if you need help connecting a provider.

4. Redirection

If you’re changing slugs on published posts, use the Redirection plugin to redirect the old URLs.

5. WP Sheet Editor – Redirection

Use the WP Sheet Editor – Redirection extension with the Redirection plugin to create redirects when changing post URLs.

Create an AI prompt for generating URL slugs

Go to WP Sheet Editor > AI > Settings > Prompts.

Click Add new.

WP Sheet Editor AI prompt settings

Use these settings:

  • Name: URL Slug
  • Prompt:
Generate a concise, descriptive URL slug for this WordPress post based on its title: $Title$. Use lowercase words separated by hyphens. Keep the main topic and important keywords. Remove unnecessary words, numbers, punctuation, and filler. Do not add information that is not present in the title. Return only the slug. Do not include quotation marks, slashes, the domain name, or any explanation.

The $Title$ placeholder is replaced with the post title when the prompt runs.

Click Save.

Create a URL slug prompt in WP Sheet Editor AI

After saving, WP Sheet Editor generates a shortcut for the prompt.

WP Sheet Editor AI prompt shortcut

In this example, the shortcut is:

ai:url-slug

Generate a URL slug for an individual post

Go to WP Sheet Editor > Edit Posts.

If the URL Slug column is read-only, click Enable to make it editable.

Enable the WordPress URL Slug column for editing

Find the URL Slug column and enter this shortcut in the post’s cell:

ai:url-slug

Generate a WordPress URL slug with AI

Press Enter. The AI command uses the post title and returns the generated slug in the cell.

Repeat the process for other posts, then click Save to apply the changes.

Save WordPress URL slug changes

Generate URL slugs in bulk

To generate slugs for multiple posts, filter the spreadsheet to select the posts you want to update and open Bulk Edit.

Bulk edit WordPress URL slugs with AI

Use these settings:

  • Select the rows that you want to update: Edit all the rows from my current search
  • What field do you want to edit: URL Slug
  • Select type of edit: AI command: URL Slug
  • AI Provider: Select your configured provider
  • Click Execute Now.

Generate WordPress URL slugs in bulk with AI

WP Sheet Editor processes the selected posts and generates the slugs.

WordPress URL slugs generated with AI

Review the generated slugs before saving, particularly for posts with similar titles.

Redirect old URLs

When you change the slug of a published post, the old URL may still be used by search engines, other pages, bookmarks, or external websites. That’s why the WP Sheet Editor – Redirection extension automatically creates a redirection for every URL edited. This helps prevent visitors from reaching a broken URL after you change the slug.

Do you need help?

You can receive instant help in the live chat during business hours, or you can contact us and we will help you via email.

Close