=== Redactis — AI Content Generator & SEO Writer ===
Contributors: tudoinforj, tudoinforjdev, profhdeivisson
Tags: ai, content generator, seo, blog, writing assistant
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Autonomous AI content writer with real-time trend mining, multi-model AI (Gemini, Groq, DeepSeek, OpenAI, Claude) and built-in SEO tools.

== Description ==

**Redactis** is a professional, autonomous AI-powered editorial assistant and content generator built for WordPress. It helps bloggers, digital agencies, and content creators discover trending topics, draft structured outlines, generate in-depth SEO-optimized articles, and review existing content directly inside the WordPress Block Editor (Gutenberg).

### 🚀 Key Features

* **Two-Step Editorial Workflow:** Generate fast, structured outlines (Title, SEO Slug, Focus Keyword, Category, Tags, and Table of Contents) before producing the full article.
* **Multi-Provider AI Engine:** Connect directly with your choice of AI providers using your own API keys:
  * Google Gemini (Free Tier supported: Gemini 2.5 Flash, 3.5 Flash, 3.6 Flash)
  * Groq LPU (Ultra-fast inference: Llama 3.3 70B, Llama 3.1)
  * DeepSeek (DeepSeek V3, DeepSeek R1)
  * OpenAI (GPT-4o, GPT-4o Mini, GPT-4.1)
  * Anthropic Claude (Claude 3.5 Sonnet, Claude 3.5 Haiku)
* **Real-Time Trend Radar:** Monitor daily trending topics from Google Trends (BR) and Google News, with custom query filters for your niche.
* **Gutenberg Interactive AI Review:** Review and enhance existing posts with AI-driven readability improvements, internal linking suggestions, and conversion CTAs with preview/approval before applying.
* **Complete SEO Metadata:** Automatically generates Yoast SEO / Rank Math compatible focus keywords, meta titles, meta descriptions, and post excerpts.
* **Custom Brand Styling & CTAs:** Configure your brand colors and WhatsApp conversion numbers to automatically format call-to-action boxes.
* **Automated Morning Drafts (WP-Cron):** Optional daily automated cron job to draft new posts based on trending morning news.
* **Transparent System Logs:** Built-in diagnostic log viewer with security masking for sensitive API credentials.

== Installation ==

1. Upload the `redactis` folder to your `/wp-content/plugins/` directory, or install directly via the WordPress Plugins menu.
2. Activate the plugin through the **Plugins** screen in WordPress.
3. Navigate to **Redactis > Configurações** to select your preferred AI provider and enter your API key.
4. Click **Validar Conexão** to verify your API credentials.
5. Go to **Redactis > Dashboard** to start generating content or exploring trending topics!

== Frequently Asked Questions ==

= Do I need a paid API subscription to use Redactis? =
No. You can use Google Gemini AI Studio or Groq Cloud, which both provide generous free tiers with fast inference models.

= Where are my API keys stored? =
API keys are stored securely in your WordPress database options table and are never shared with third parties other than the specific AI provider you configure.

= Does Redactis publish posts automatically? =
By default, all generated posts are saved as **Drafts** (`draft`), allowing you to review, edit, and schedule before publishing.

= Which SEO plugins are supported? =
Redactis automatically fills standard WordPress post excerpts, tags, categories, and injects compatible metadata for Yoast SEO, Rank Math, and All in One SEO.

== Third-Party Services & Privacy Policy ==

This plugin connects to external third-party APIs to generate text content and fetch trending news. By configuring API keys in this plugin, you agree to the respective provider terms:

* **Google Gemini API** (`https://generativelanguage.googleapis.com`): Used for content generation and text processing.
  * [Terms of Service](https://ai.google.dev/terms)
  * [Privacy Policy](https://policies.google.com/privacy)

* **Groq Cloud API** (`https://api.groq.com`): Used for ultra-fast Llama model inference.
  * [Terms of Service](https://groq.com/terms-of-use/)
  * [Privacy Policy](https://groq.com/privacy-policy/)

* **DeepSeek API** (`https://api.deepseek.com`): Used for DeepSeek V3/R1 content generation.
  * [Terms of Service](https://cdn.deepseek.com/policies/en-US/deepseek-terms-of-use.html)
  * [Privacy Policy](https://cdn.deepseek.com/policies/en-US/deepseek-privacy-policy.html)

* **OpenAI API** (`https://api.openai.com`): Used for GPT-4o / GPT-4.1 generation.
  * [Terms of Service](https://openai.com/policies/terms-of-use/)
  * [Privacy Policy](https://openai.com/policies/privacy-policy/)

* **Anthropic Claude API** (`https://api.anthropic.com`): Used for Claude models.
  * [Terms of Service](https://www.anthropic.com/legal/commercial-terms)
  * [Privacy Policy](https://www.anthropic.com/legal/privacy)

* **Google Trends & Google News Public RSS** (`https://trends.google.com`, `https://news.google.com`): Public RSS feeds used to suggest trending topics without transmitting user personal data.
  * [Google Privacy Policy](https://policies.google.com/privacy)

== Screenshots ==

1. Dashboard with trending topics radar and quick content generator.
2. Two-step outline approval modal before full article writing.
3. Settings page with multi-provider API keys and brand color customizer.
4. Interactive AI review and enhancement tool inside the WordPress post editor.
5. System diagnostics and error logs viewer.

== Changelog ==

= 1.0.0 =
* Initial release of Redactis.
* Multi-model support: Gemini, Groq, DeepSeek, OpenAI, Claude.
* Real-time trend discovery engine.
* Gutenberg editor review assistant.
* Automatic database migration and system logger.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
