plugins/ai-draftsmith/

AI Draftsmith — WordPress AI Post Generator | Wael Badawy
WordPress Plugin • Version 1.0.0

AI Draftsmith

A draft-first WordPress plugin for generating articles with Google Gemini, OpenRouter, or OpenAI using API keys supplied by the site administrator.

AuthorWael Badawy
LicenseGPL v2 or later
WordPress6.0+
PHP7.4+

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.

Independent plugin. AI Draftsmith is developed by Wael Badawy and is not affiliated with, endorsed by, or sponsored by Google, OpenRouter, or OpenAI.

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

1. In WordPress Admin, open Plugins → Add New → Upload Plugin.
2. Upload the AI Draftsmith plugin ZIP and activate it.
3. Open AI Draftsmith from the WordPress administration menu.
4. Configure one or more provider API keys.
5. Enter a topic, choose language and tone, and generate a post.
6. Review the generated draft before publication.

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 Version1.0.0
WordPressRequires WordPress 6.0 or later
PHPRequires PHP 7.4 or later
LicenseGNU General Public License v2 or later
AuthorWael Badawy
Plugin Pagehttps://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.

AI Draftsmith
Developed by Wael Badawy • GPL v2 or later
Google, Gemini, OpenAI, and OpenRouter are names or trademarks of their respective owners.


Comments are Closed