AI Title Assistant
Suggests SEO-optimized titles for your posts using AI, with language detection, character limit, and optional Web Search via Responses API.
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.zipAI 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-latestandgpt-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_postfor all API calls. - Clean Uninstall: Includes a proper
uninstall.phpto 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
- Upload the plugin
.zipfile viaPlugins > Add New > Upload Plugin. - Activate the plugin.
2. Configuration (Required)
- Go to
Settings > AI Title Assistant. - Enter your OpenAI API Key.
- Choose your default AI Model.
- (Optional) Adjust the Max Title Length.
- 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
- Create or edit a post.
- Find the "AI Title Assistant" metabox in the sidebar.
- Paste your article draft into the text area.
- Check or uncheck "Use Web Search" based on your needs.
- Click the ✨ Generate Titles button.
- 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 sensitivedetailsfrom 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.phpfile to properly remove allwp_optionsand_transient_entries on plugin deletion, supporting both single and multisite installs. - COMPLIANCE: Removed the
register_uninstall_hookin favor of the newuninstall.phpfile. - ROBUSTNESS: Switched from
wp_remote_posttowp_safe_remote_postfor API calls, aligning with WordPress.org best practices. - FIX: Added
max_input_charsandinput_too_long_texttowp_localize_scriptto 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-latestandgpt-4o. Correctedinputpayload structure. Implemented precise parsing for theoutputarray from the Responses API.
Version 1.5.4
- FIX: Attempted incorrect Response Parsing for
v1/responsesAPI.
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