=== ZELA Content AI ===
Contributors: somoszela
Tags: artificial intelligence, content, editorial, seo, openai
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
Stable tag: 1.8.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Create and review AI-assisted editorial drafts in WordPress, with business context and human control.

== Description ==

ZELA Content AI helps prepare articles from WordPress. The Free edition works without purchasing Pro:

* One complete article per month through ZELA's managed service, after consent, without an OpenAI account.
* Connect your own OpenAI API key for unlimited manual generation, including a featured image and up to 10 interior images per article, with no length or instruction limits (usage is charged to your OpenAI account).
* Keep articles and settings in WordPress.
* Optional Pro plans support either your own API key or included AI capacity.

The monthly Free allowance is an ongoing service, subject to fair use and service availability. Pro is distributed as a separate add-on; the Free core remains active.

== External services ==

The plugin can communicate with these services:

* api.somoszela.com processes the included monthly article and managed AI requests after administrator consent or activation of an applicable managed plan. Requests can include the domain, public site URL, random installation identifier, prompts and editorial context. It also provides the separately consented AI help service described below.
* licencias.somoszela.com creates checkout sessions, activates and verifies licenses, manages subscriptions and authorizes Pro downloads and signed updates. It can receive the domain, installation identifier, checkout email and technical license information. Full payment card details never pass through the plugin.
* OpenAI API generates text and images. Image direction and AI review run only when the reviewed mode is selected explicitly. With your own API key, requests go through ZELA's service (api.somoszela.com) with your key in transit: the key stays encrypted in WordPress and ZELA uses it only during each request without storing it, and usage is charged to your OpenAI account. Managed plans also use api.somoszela.com. Relevant prompts, business context, source excerpts and image pixels can be processed. Privacy: https://openai.com/policies/privacy-policy/ . Terms: https://openai.com/policies/services-agreement/ .
* Stripe processes payments on an external checkout page and manages billing. Privacy: https://stripe.com/privacy . Terms: https://stripe.com/legal/consumer .
* Google Picker service code is loaded only after the administrator chooses a folder through the selector. Google OAuth, Google Drive API and Google Picker API are used when a Pro administrator connects an account and selects a business folder. ZELA requests read-only Drive access, indexes image names and metadata inside the selected folder and its subfolders, and imports candidate resources into WordPress Media for relevance checks. Relevant authorized images can be sent to OpenAI for visual analysis or as generation references. ZELA does not modify or delete Drive files. Privacy: https://policies.google.com/privacy . Terms: https://policies.google.com/terms .
* Wikimedia Commons (commons.wikimedia.org and upload.wikimedia.org) receives search terms when authorized external photographs are requested, and returns metadata, licenses and files. Attribution is retained in the article. A photograph does not establish that a recent event occurred; review its source and rights before publishing. Privacy: https://foundation.wikimedia.org/wiki/Policy:Privacy_policy . Terms: https://foundation.wikimedia.org/wiki/Policy:Terms_of_Use .
* Public sources: requested research and news verification retrieve relevant source URLs and search results. Prompts, business context and source excerpts can be sent to OpenAI for drafting and verification. Do not enter unnecessary confidential information.

ZELA service terms: https://zelasuite.com/terms-zcai . ZELA service privacy notice: https://zelasuite.com/privacy-zcai . Contact: privacy@zelasuite.com.
Generation and AI help require a configured connection or acceptance of the corresponding notice. License verification and its scheduled tasks begin after a license is linked.

== Installation ==

1. Install and activate ZELA Content AI.
2. Open ZELA Content AI and choose a connection method.
3. To use the included monthly article, read and accept the service notice.
4. Alternatively, connect and verify your own OpenAI API key.
5. Generate your first article as a draft and review it before publishing.

== Frequently Asked Questions ==

= Do I need an OpenAI account? =

Not for the included monthly article or managed plans. An account is required when using your own API key.

= Is the monthly Free allowance a temporary trial? =

No. Free includes one complete article per month, subject to fair use and service availability.

= What happens when I purchase Pro? =

The license is activated for the checkout domain. Download and install the separate Pro ZIP from the license screen. Keep the Free core active. Pro updates are verified against signed release information.

= How many domains can use a license? =

One at a time. You can deactivate the license on one domain and later activate it on another.

= Does deleting the plugin delete my articles? =

Deleting the Free core removes its local connection/license settings and operational history, while preserving posts and Media Library attachments. A non-identifying reinstall flag is retained. Short-lived entries held only in an external object cache expire under their existing lifetime; the plugin does not flush shared caches. Removing only Pro preserves the shared Free settings.

== Privacy ==

The optional protected path for ordinary Todo Incluido (All-Inclusive) text articles sends the topic, keyword, language, requested length, site name and description, your general and article-specific instructions, editorial rules, SEO settings and enabled GEO context to ZELA's managed API for drafting with OpenAI. It can also include titles and links of up to 20 published posts without a password and up to 30 site category names. This text-only path does not automatically attach images, Drive files or externally retrieved news sources. Free-text fields can contain information you enter; do not paste credentials or unnecessary confidential or personal data. Existing Free, AI help and own-key connection notices apply to their respective flows.

For recovery without requesting another draft, this managed text path may retain the full generated article and returned editorial metadata as JSON in the server's operation record (zela_ai_operations.response_json). That record is not encrypted at the application level in this path. Cleanup processes eligible response records in batches while API requests are handled, according to the server's current record-age rules; it does not guarantee deletion at an exact time. Lack of traffic, a backlog or errors can delay cleanup. Operation identifiers, request fingerprints and accounting history can remain after response cleanup to prevent duplicate consumption. Clearing this recovery data does not delete the article saved in WordPress.

The retention and encryption periods described below for managed AI help do not describe this article-recovery record. No specific retention period or backup-deletion guarantee is promised here for the remaining operation/accounting records or hosting backups; see the ZELA privacy notice. Requests use store:false, which alone does not establish zero retention by the provider.

Search-as-you-type, help guides and Free guided answers work locally without an AI request. A previous consent to Free AI help does not enable it. AI help requires an eligible Pro connection and the corresponding notice; it can be disabled in Help and privacy preferences.

With Pro and your own verified API connection, AI help sends the question and relevant guides directly from WordPress to OpenAI using your selected key and store:false. If that connection fails, help does not fall back to a ZELA-funded account. Your key is not sent to ZELA's help service.

With Pro Todo Incluido, api.somoszela.com receives the question, language, version, domain/URL and installation identifier after consent. It verifies the eligible plan through licencias.somoszela.com and uses the configured ZELA AI service with store:false. Assist has its own service and account budgets and remains subject to the shared global budget. If Assist is not configured or its allowance is exhausted, the plugin explains the cause and keeps the local guides available. The Free trial article and its eligible topic recommendations are separate from basic help.

For managed AI help, minimal pseudonymized usage and abuse-prevention events are retained for 90 days. Encrypted retry responses are retained for 15 minutes. With separate optional authorization, filtered question text is encrypted and retained for up to 30 days. Filtering cannot guarantee removal of all personal data; do not include such data in your query. Deletion is performed by scheduled server maintenance.

For managed AI help, after two warnings, three clearly unrelated queries within 24 hours suspend AI help for 24 hours. Ambiguous questions, criticism, basic or good-faith repeated questions and requests for unavailable features must not trigger sanctions. A single review report per suspension can request human review; it is handled separately from query logs.

Free basic help has no paid AI query allowance. The managed AI help service enforces its configured allowance, frequency and spending limits; the interface shows the applicable allowance and renewal. These settings are not a promise of a fixed commercial question count. Technical failures do not consume managed query allowances; identified retries within 15 minutes do not consume a second allowance. Your own API usage is billed by your provider account.

Operator: Zela Suite. Privacy contact: privacy@zelasuite.com. Notice: https://zelasuite.com/privacy-zcai . OpenAI privacy: https://openai.com/policies/privacy-policy/ .

== Editorial identity ==

In General settings, choose up to three current design references and the original logo from Media. Selected design references are sent to the configured AI provider during visual planning, preparation, generation and review. They guide visual style, not clinical claims or real business locations. Use only images you have permission to use.

Optional editorial composition adds the original logo and typeset text outside generated photography. Information graphics can be composed locally when they explain the section better than a photograph. These use text planning/review, without purchasing a generated background image. GD and FreeType are required for this optional feature. Missing assets and text overflow are reported before publication.

The bundled Cardo and Inter fonts are licensed under the SIL Open Font License 1.1. Copyright notices and full licenses are included in assets/editorial-fonts. The plugin does not bundle customer logos or design references. Generated people are illustrations, not evidence of real patients, staff or treatment outcomes. Review the final image before publication; automated checks can miss defects.

== Screenshots ==

1. Generate an article: topic, language and publication status. Shown with ZELA Pro active, which adds options such as article length.
2. Images for your article: featured image and interior images (up to 10 per article with your own OpenAI API key). The Force/Recommend rule is part of ZELA Pro.
3. AI connection: your own OpenAI API key, the monthly free publication, or the optional Pro All-Inclusive plan.
4. Activity: review generated articles and filter them by title or publication status.

== Changelog ==

= 1.8.4 =
* With your own OpenAI API key, Free no longer shortens articles or filters your instructions; the one-article monthly allowance of the ZELA service keeps its own service limits.
* Activity now lists all generated articles (previously the latest 10).

= 1.8.3 =
* Readme: clearer privacy section and a shorter, English-only changelog (full history in CHANGELOG.txt).

= 1.8.2 =
* When the monthly allowance is used up (free publication, included articles or image regenerations), the notice now says when it renews and how to keep generating with your own OpenAI API key. These requests are no longer retried automatically.

= 1.8.1 =
* English interface: the Help tab and the connection mode (Own API) are now translated.
* Readme: screenshots added.

= 1.8.0 =
* With your own OpenAI API key, Free now allows up to 10 interior images per article (previously 1). Pro keeps the Force/Recommend rule, image regeneration, automation and SEO/GEO tools.
* External services: link to the ZELA service terms.

= 1.7.99 =
* English interface: 140 more screen texts, buttons and notices translated (image source, photos, visual identity, help, Activity entries).
* Cost estimates: GPT-5.6 Terra and Luna cache writes are now priced (1.25x input), and GPT-5.6 Luna rates were added, so article costs are no longer left incomplete.

= 1.7.98 =
* English interface: 34 error and notice messages that still appeared in Spanish are now translated (for example, when there is not enough site information for an automatic recommendation).

= 1.7.97 =
* Legal and privacy links in English: zelasuite.com/terms-zcai, zelasuite.com/privacy-zcai and zelasuite.com/pricing-zcai.

= 1.7.96 =
* Terms of Use and Privacy Notice 1.2: the notice now also covers AI help records and bug reports. Each site accepts the new version once.
* Single privacy contact: Zela Suite, privacy@zelasuite.com and zelasuite.com/privacy-zcai. With your own key, requests pass through ZELA's service with the key in transit.

= 1.7.95 =
* Multisite: deleting the plugin removes ZCAI settings on every site of the network. Posts and images are kept.
* Minimum requirement declared: PHP 8.0 (tested on 8.0, 8.2 and 8.3).

See CHANGELOG.txt in the plugin package for the full release history.
