Dotes AI Writer

By Luiz Jr. Fernandes

0+ active installationsVersion 1.3.0

Rewrite, improve and generate text with OpenAI models right inside the WordPress editor, using your own OpenAI API key.

Description

Dotes AI Writer adds an AI writing studio to the post editor. Select a passage, say what the AI should do and apply the result to the post, or start from an empty selection and generate new text.

  • Block editor and classic editor: a “AI Writer” button, a TinyMCE button and the Ctrl/Cmd+G shortcut open the studio.
  • Writing studio: the selected text on one side, the result on the other. Apply it over the selection or insert it below.
  • Quick actions: improve, summarize, translate, turn into bullet points, make it more formal, suggest titles.
  • Assistants and writing styles: 7 assistants (marketing, academic, personal, technical, sales, customer service, creative) and 8 styles (formal, informal, persuasive, descriptive, concise, narrative, academic, conversational).
  • Free prompt: write any instruction, with or without selected text.
  • Saved prompts: keep your own prompts and reuse them from the editor.
  • History of your generations (up to 200 per user), kept on the server (can be turned off in the settings).
  • Cost estimate: tokens and approximate cost before and after each generation.
  • Model choice: pick the default model in the settings, or another one for a single generation in the studio.
  • More options per generation: audience, tone, target language, length and output format, used by prompts with the {publico}, {tom}, {idioma}, {tamanho} and {formato} fields.
  • Guided setup: paste the API key, test the connection and start writing.
  • Support tab with system information, help and FAQ.
  • AI engine for other plugins: other Dotes plugins can reuse the configured key and model.

You need an OpenAI account and an API key. OpenAI charges your account for what you use; the plugin itself is free.

Pro add-on

Dotes AI Writer Pro is a separate add-on with a full post generator (outline, then the text part by part as a draft in blocks), post translation into a new draft, an SEO pack (meta title and description for Yoast SEO and Rank Math, excerpt, slug and image alt text), batch operations with review, the ready-made prompt library (127 prompts in 11 niche packs), up to 200 saved prompts with favorites and ordering, full history, before/after comparison, “Improve with AI” for category and tag descriptions, usage statistics, team spending caps, export/import and direct support. This plugin is complete without it; the “Pro” tab of the settings only describes the add-on.

For developers

The plugin exposes actions and filters for extensions, for example dotes_gpt_writer_admin_tabs, dotes_gpt_writer_save_options, dotes_gpt_writer_saved_prompts_limit, dotes_gpt_writer_history_limit, dotes_gpt_writer_prompts_list, dotes_gpt_writer_models, dotes_gpt_writer_system_message, dotes_gpt_writer_pre_request, dotes_gpt_writer_capability (who can generate; default edit_posts), dotes_gpt_writer_rate_limit (requests per minute per user; default 30), dotes_gpt_writer_track_usage, dotes_gpt_writer_editor_screens, dotes_gpt_writer_modal_options, dotes_gpt_writer_modal_sections and dotes_gpt_writer_modal_result_actions. In the editor, wp.hooks actions such as dotesGptWriter.modalReady and dotesGptWriter.resultReady and the filter dotesGptWriter.requestData are available, and window.dotesGptWriter exposes the modal API.

External services

This plugin connects to the OpenAI API (https://api.openai.com), operated by OpenAI, to generate text. Nothing is sent until you enter your own API key.

  • When you generate or rewrite text (editor studio, quick actions, saved prompts): the plugin sends to https://api.openai.com/v1/chat/completions your instruction, the selected text (if any), the chosen assistant and style instructions, the model name and generation settings, authenticated with your API key.
  • When you test the API key: the setup screen (“Testar e salvar”) requests the list of models from https://api.openai.com/v1/models; the “Testar API” button of the settings requests the same list and sends a short test message (“Responda apenas: API OK”) with the default model to the chat completions endpoint; the “Atualizar modelos” button requests only the list of models. Saving the key in the settings without testing it sends nothing.
  • When another plugin uses Dotes AI Writer as its AI engine, that plugin’s request is sent to the same endpoint with your key.

Requests are made from your server. Your site’s visitors are never sent to OpenAI. OpenAI terms of use: https://openai.com/policies/terms-of-use/ — privacy policy: https://openai.com/policies/privacy-policy/

Privacy

  • The API key is stored in your database (not autoloaded), is never sent to scripts and is not included in exports. The settings screen only shows a masked hint (first 3 and last 4 characters) so you know which key is saved.
  • The generation history (instruction, result, date and tokens) is stored per user in user meta and can be cleared at any time.
  • A usage log (user ID, model, tokens and text lengths, without the texts) is stored in the {prefix}dotes_gpt_writer_usage table for the cost estimate.
  • No data is sent to Dotes. Text is sent only to OpenAI, as described under “External services”.

OpenAI and GPT are trademarks of OpenAI. Dotes AI Writer is an independent plugin, not affiliated with or endorsed by OpenAI.

Third-party libraries

  • Font Awesome Free 6.7.2 — icons CC BY 4.0, fonts SIL OFL 1.1, code MIT (assets/vendor/fontawesome/LICENSE.txt).

Installation

  1. Upload the dotes-ai-writer folder to /wp-content/plugins/ or install it from the Plugins screen.
  2. Activate the plugin. The setup screen opens.
  3. Create an API key at https://platform.openai.com/api-keys, paste it and test the connection.
  4. Open a post, select some text and click “AI Writer” (or press Ctrl/Cmd+G).

FAQ

Do I need to pay for anything?

The plugin is free. OpenAI bills your OpenAI account for the tokens you use; the cost estimate in the studio shows the approximate amount of each generation.

Which models can I use?

The OpenAI models listed in the settings (for example GPT-5.6 Luna, GPT-5.4 mini, GPT-5 mini and nano, GPT-4.1 mini and GPT-4o mini). The default model of the settings is used unless you pick another one for a single generation under “Mais opções” in the studio.

Who can use the studio?

Users who can edit posts. The settings, the API key and the maintenance tools require the manage_options capability.

What happens to my data when I delete the plugin?

Deactivating keeps everything. Deleting the plugin from the Plugins screen removes its settings, API key, saved prompts, history and usage table.

Which icons does it use?

Font Awesome Free is bundled with the plugin and loaded only on its admin screens and in the post editor. Nothing is loaded from a CDN.

Screenshots

Changelog

1.3.0

  • New name: Dotes AI Writer (formerly Dotes GPT Writer), slug dotes-ai-writer. Settings, saved prompts and history are kept.
  • Model per generation and advanced variables (audience, tone, language, length, format) in the studio, under “Mais opções”.
  • If the old “Dotes GPT Writer” is still active, this version waits and asks you to deactivate it, instead of loading twice.

1.2.3

  • Saved prompts and generation history keep up to 200 items per user (before: 3 prompts and 5 generations).
  • The editor request accepts the model sent with it, checked against the available models.

1.2.2

  • Database: the created_at column of the usage table no longer uses a CURRENT_TIMESTAMP default (supports MySQL older than 5.6.5; the plugin always writes the date). If the table cannot be created, an admin notice shows the database error, the plugin tries again within an hour (or when it is reactivated) and keeps working without the usage log.
  • Translations now come from translate.wordpress.org; the bundled language files are no longer included in the plugin package.
  • The editor request reads each field with its own sanitizer.
  • The editor styles apply only inside the AI Writer studio (before, some generic rules, such as the hover effect of .button, also reached other buttons of the post screen); the editor script no longer adds a <style> element to the page.
  • Updated Font Awesome Free to 6.7.2.

1.2.1

  • New: standardized “Pro support” sub-tab, last in the Support tab. Pro subscribers send their request to the Dotes team from there (the form comes from the Pro add-on and checks the license); without Pro it shows what Pro support includes. The free plugin sends nothing by itself. The forum and FAQ links of the old “Help” sub-tab moved into it.
  • The styles and scripts of the “Pro support” sub-tab are enqueued with the plugin assets (no inline <style> or <script>), and all its texts use the plugin text domain.
  • Every message returned by the settings screen (API test, model list, history, maintenance) is translatable.
  • Advanced tab: the “Debug logs” option, which had no effect, was removed; “Retry attempts” offers 1 to 3 (the maximum applied); “Filter sensitive content” now shows its real default (off).
  • The settings assets load only on the plugin page; the list of models of your OpenAI account is no longer autoloaded on every page.
  • Unused code removed (old Settings API registration, connection test and helper functions that nothing called).

1.2.0

  • Every text of the plugin, including the editor scripts, is translatable; complete translations for English, Spanish, French, German, Italian, Chinese (Simplified) and Hindi.
  • Font Awesome is bundled; nothing is loaded from a CDN.
  • Deleting the plugin removes all its data (settings, API key, saved prompts, history, usage table and the leftovers of version 1.0).
  • The editor styles of the Pro features moved to the Pro add-on; unused styles were removed.
  • For developers: Dotes_GPT_Writer_API::generate_content() accepts the system, json and action options (system message, JSON answer and usage label).
  • For developers: filter dotes_gpt_writer_pre_request can block a request before it is sent to OpenAI (return a WP_Error).
  • For developers: filters dotes_gpt_writer_capability, dotes_gpt_writer_allow_model_choice, dotes_gpt_writer_rate_limit and dotes_gpt_writer_track_usage; generate_content() also accepts timeout and reports a cut answer as the truncated error.
  • The history is kept only on the server (no copy in the browser) and respects the “history” setting; requests are limited to 30 per minute per user.
  • The studio works in the iframe of the block editor (selection and Ctrl/Cmd+G).
  • Multisite: new sites get the plugin tables on first use, and deleting the plugin cleans every site.
  • Security and review fixes: escaped output, no inline scripts, shorter error details for non-administrators, size limits on prompts and history.

1.1.1

  • New writing studio in the editor: two columns, quick actions, “Insert below”, word count of the selection and a cost estimate.
  • Fixed: the studio buttons could stop working after the modal was moved.

1.1.0

  • The plugin is now free and licensed under the GPL. The license key, the trial and the remote license checks were removed.
  • Guided setup for the OpenAI API key.
  • New model catalog with GPT-5.6 Luna as the default and support for reasoning models.
  • Generate from an empty selection with a prompt.
  • History is kept per user; the API key is never printed in page source or exported.
  • Security hardening: nonces, capabilities, escaping, allowed models list, no direct cURL.
  • New settings screen with the Dotes header, tabs and save bar.
  • Fixed: the contact form, export/import, the System and Tests buttons, the prompt “system” field and applying the result in the classic editor.

1.0.0

  • First version.