WP Manifestindependent plugin directory
manifest / seo / ai-title-assistant

AI Title Assistant

Suggests SEO-optimized titles for your posts using AI, with language detection, character limit, and optional Web Search via Responses API.

by WPezo · github.com/wpezo/ai-title-assistant

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/wpezo/ai-title-assistant/archive/refs/heads/main.zip

AI Title Assistant for WordPress

The ultimate WordPress plugin for generating SEO-optimized, time-aware titles using official AI models like gpt-5-chat-latest, complete with optional Web Search, caching, and robust security.

🚀 What is AI Title Assistant?

AI Title Assistant integrates OpenAI's most advanced models directly into your WordPress editor using the v1/responses API. Paste your article draft, and with a single click, receive 3 high-quality, SEO-optimized title suggestions generated by models like GPT-5 and GPT-4o.


✨ Key Features

  • Optional True Web Search: Toggle Web Search on or off per request directly in the metabox to get time-aware, relevant titles.
  • Official Next-Gen Models: Choose from the latest official models like gpt-5-chat-latest and gpt-4o.
  • Automatic Language Detection: Generates titles in the exact same language as your draft. No translation, just native-quality suggestions.
  • SEO-Optimized & Length Control: Respects your custom character limits with a hard server-side cutoff to ensure compliance.
  • Smart Caching: Prevents duplicate API calls for the same content within a 5-minute window.
  • Secure & Robust: Hardened security prevents API error leaks, and it uses wp_safe_remote_post for all API calls.
  • Clean Uninstall: Includes a proper uninstall.php to remove all options and transients from your database, supporting both single and multisite installs.
  • Click-to-Set Title: Instantly apply a suggested title to your post in both the Classic and Block editors.
  • Fully Internationalized: Ready for translation with 7 languages included.

⚙️ Installation & Configuration

1. Installation

  1. Upload the plugin .zip file via Plugins > Add New > Upload Plugin.
  2. Activate the plugin.

2. Configuration (Required)

  1. Go to Settings > AI Title Assistant.
  2. Enter your OpenAI API Key.
  3. Choose your default AI Model.
  4. (Optional) Adjust the Max Title Length.
  5. Save Changes.

Privacy Note: By using this plugin, you agree to send your post draft content to OpenAI for processing. If "Use Web Search" is enabled, OpenAI may perform external web requests to gather information. Data is only sent when you click the "Generate" button.


✍️ How to Use

  1. Create or edit a post.
  2. Find the "AI Title Assistant" metabox in the sidebar.
  3. Paste your article draft into the text area.
  4. Check or uncheck "Use Web Search" based on your needs.
  5. Click the ✨ Generate Titles button.
  6. Click any suggested title to set it as your post's main title.

❓ Frequently Asked Questions

Do I need an OpenAI account? Yes, an active OpenAI account and API key are required to use this plugin.

What about my privacy? Data is sent externally. The plugin sends your post draft (only when you click "Generate Titles") to OpenAI's servers. If "Use Web Search" is checked, OpenAI may perform external web requests.

Which AI models can I use? The plugin supports models compatible with the Responses API, including gpt-5-chat-latest and gpt-4o.


📝 Changelog

Version 1.6.2 (10/20/2025)

  • SECURITY: Hardened the AJAX error handler (ata_ajax_get_suggestions) to prevent raw API responses or sensitive details from being sent to the client.
  • SECURITY: Implemented client-side (admin.js) and server-side (ATA_MAX_INPUT_CHARS) validation to limit input length, preventing overly large API requests.
  • COMPLIANCE: Added a comprehensive uninstall.php file to properly remove all wp_options and _transient_ entries on plugin deletion, supporting both single and multisite installs.
  • COMPLIANCE: Removed the register_uninstall_hook in favor of the new uninstall.php file.
  • ROBUSTNESS: Switched from wp_remote_post to wp_safe_remote_post for API calls, aligning with WordPress.org best practices.
  • FIX: Added max_input_chars and input_too_long_text to wp_localize_script to support new client-side validation.

Version 1.5.5

  • FIX: Implemented Correct API Request & Parsing Logic based on User Feedback & Cookbook. Updated model IDs to gpt-5-chat-latest and gpt-4o. Corrected input payload structure. Implemented precise parsing for the output array from the Responses API.

Version 1.5.4

  • FIX: Attempted incorrect Response Parsing for v1/responses API.

View the full changelog in readme.txt


⚖️ License

Licensed under the GPL v2 or later. http://www.gnu.org/licenses/gpl-2.0.html


👨‍💻 Author

Created by WPezo. https://www.wpezo.com