plugins/ai-draftsmith/
AI Draftsmith
A draft-first WordPress plugin for generating articles with Google Gemini, OpenRouter, or OpenAI using API keys supplied by the site administrator.
Overview
AI Draftsmith helps WordPress editors create structured post drafts from a topic and a small set of editorial instructions. The plugin is designed around human review: generated posts are saved as drafts by default so an editor can verify, revise, and approve the content before publication.
Key Features
Multiple AI Providers
Choose Google Gemini, OpenRouter, or OpenAI from the WordPress administration area.
Arabic & English
Create posts in Arabic or English with selectable tone and target word count.
Draft-First Workflow
Draft is the default post status. Publishing remains under the control of authorized WordPress users.
SEO Assistance
Generate an excerpt, suggested SEO title, meta description, tags, and WordPress-ready HTML.
Free-First Routing
An optional workflow can try configured free or free-tier providers before a paid provider.
Bring Your Own API Key
No AI account is bundled. Administrators use their own provider credentials and billing arrangements.
Installation
Secure API Key Configuration
API keys can be entered in the plugin settings. Administrators who prefer not to store credentials
in the WordPress options table can define them in wp-config.php.
define('GEMINI_API_KEY', 'YOUR_GEMINI_API_KEY');
define('OPENROUTER_API_KEY', 'YOUR_OPENROUTER_API_KEY');
define('OPENAI_API_KEY', 'YOUR_OPENAI_API_KEY');
Only configure providers you intend to use. Never publish API keys in posts, pages, themes, or public repositories.
External Services & Data Disclosure
AI Draftsmith connects to external AI services only when an authorized WordPress user explicitly requests content generation. The plugin itself does not operate an independent SaaS backend.
| Provider | Purpose | Data that may be sent |
|---|---|---|
| Google Gemini API | Article generation | Topic, language, tone, target length, keywords, optional instructions, and generated prompt. |
| OpenRouter | Article generation and free-model routing | Topic and generation instructions; site-identification headers may also be sent where required by the provider. |
| OpenAI API | Article generation or optional paid fallback | Topic, language, tone, target length, keywords, optional instructions, and generated prompt. |
API keys are sent only to their corresponding providers for authentication. Data sent to a provider is governed by that provider’s own terms, privacy policies, retention practices, quotas, and pricing.
Privacy
- No front-end analytics or advertising is added by AI Draftsmith.
- No developer-operated tracking service is required.
- No executable code is loaded remotely by the plugin.
- Generated content should not be assumed to be fact-checked.
- Site owners should avoid sending confidential or sensitive information unless permitted by the selected provider’s terms and their own policies.
Editorial Responsibility
AI-generated text can contain errors, outdated information, or unsupported claims. AI Draftsmith is designed as a writing assistant rather than an autonomous publisher. Site owners and editors remain responsible for reviewing accuracy, copyright, attribution, legality, safety, and suitability before publication.
Compatibility
| Current Version | 1.0.0 |
|---|---|
| WordPress | Requires WordPress 6.0 or later |
| PHP | Requires PHP 7.4 or later |
| License | GNU General Public License v2 or later |
| Author | Wael Badawy |
| Plugin Page | https://www.waelbadawy.com/ai-draftsmith/ |
Changelog
1.0.0
- Initial public release.
- Google Gemini, OpenRouter, and OpenAI provider support.
- Arabic and English generation.
- Draft-first publishing workflow.
- SEO title, excerpt, meta description, and tag generation.
- Optional free-first routing and paid fallback controls.
Support
For information about the author and future plugin updates, visit WaelBadawy.com. Once the plugin is accepted in the WordPress.org Plugin Directory, the official directory page can also be linked here.

Comments are Closed