=== Easy AI Blog Generator ===
Contributors: easyai2025, freemius
Tags: ai blog generator, content automation, seo content creator, blog writer, content generator
Requires at least: 5.0
Tested up to: 6.7
Stable tag: 1.2
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Generate SEO-optimized blog posts automatically with AI. Create content in seconds. Full-featured blog automation tool and image generation.


== Description ==

**IMPORTANT: To use Easy AI Blog Generator, you must first create an account with OpenAI, generate an API key, and fund your API account. By connecting directly to OpenAI, you avoid middlemen and inflated credit prices that other AI applications charge.**

Easy AI Blog Generator is the ultimate WordPress automation tool that creates complete, SEO-optimized blog posts using OpenAI's advanced AI models. This powerful content creator uses gpt-4o for high-quality text generation and DALL·E 3 for stunning featured images.

### Key Features: 

* **One-Click Blog Post Generation:** Enter a topic and instantly create a fully-formatted, SEO-optimized blog post with proper heading structure, transitions, and relevant content.
* **Keyword Optimization:** Target specific keywords for improved search rankings with built-in density analysis.
* **AI-Generated Featured Images:** Automatically create custom featured images tailored to your post content.
* **SEO Analysis Tools:** Analyze keyword density and receive actionable suggestions to improve content optimization.
* **Content Personalization:** Customize generated content to match your brand voice, target audience, and business objectives.
* **Metadata Generation:** Automatically create SEO-friendly titles and meta descriptions for better search visibility.

### Free Version Includes:
* Generate single blog posts with complete formatting
* Custom AI image generation for each post
* Basic SEO optimization
* Full control over topics and keywords

### Premium Features:
* **Continuous Generation:** Automatically create multiple related blog posts in sequence for comprehensive topic coverage.
* **Advanced SEO Tools:** Get detailed keyword optimization suggestions and implement them with one click.
* **Meta Box Update Tools:** Four premium buttons integrated into the post editor for quick content optimization:
  - Update Headline: Generate better, more SEO-friendly titles
  - Suggest Passive Voice Improvements: Enhance readability scores
  - Suggest Transition Words: Improve content flow and SEO rankings
  - Update Featured Image: Generate new AI images on demand
* **Personalization Features:** Match AI content to your brand voice and target audience

Easy AI Blog Generator saves you hours of content creation time while ensuring your blog posts are optimized for search engines and reader engagement. Whether you need a single article or want to populate your entire blog with quality content, this plugin provides the tools you need for effective, efficient content marketing.

== External Services ==
Service Provider: OpenAI

Purpose:
This plugin leverages OpenAI's powerful API capabilities to automatically generate professional-quality blog posts and images. Specifically, it uses:

GPT-4 (model: gpt-4o): To generate comprehensive text content for blog posts (including SEO-optimized titles, meta descriptions, and body content with proper structure).
DALL·E 3: To generate custom featured images that visually represent each blog post's topic.

Data Sent:
When generating content, the following data is transmitted to OpenAI:

For Text Generation:
The user-entered blog topic and optional preferred keyword.
A detailed prompt containing instructions (including tone, SEO guidelines, formatting requirements, etc.) that is sent to OpenAI's text-generation endpoint at https://api.openai.com/v1/chat/completions.

For Image Generation:
A prompt that includes the blog post title and the chosen image style is sent to OpenAI's image-generation endpoint at https://api.openai.com/v1/images/generations.

When Data is Sent:
Each time a blog post is generated or the featured image is updated, a separate API request is made.
Your API key (entered in the plugin settings) is securely stored and used solely for authenticating these requests.

Legal & Privacy:
Terms of Service: https://openai.com/terms
Privacy Policy: https://openai.com/privacy

By using this plugin, you acknowledge and agree that data will be transmitted to OpenAI for the purpose of generating content and images as described above.

== Installation ==
1. Upload the `easy-ai-blog-generator` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Navigate to **Tools > Auto Blog Generator** in your WordPress dashboard to configure your OpenAI API key and set your default image style and tone modifier.
4. Use the provided interface to generate blog posts:
   - **Free Feature:** Use the "Generate Single Post" button.
   - **Premium Features:** Continuous generation and the additional meta box update buttons are available in the premium version.

== Frequently Asked Questions ==
= What does Easy AI Blog Generator do? =
It automatically creates complete, SEO-optimized blog posts using artificial intelligence. The plugin generates properly structured text content with headings, paragraphs, and transitions, plus a relevant featured image for each post - all with minimal input required from you.

= How does the keyword optimization feature work? =
Our keyword optimization tool analyzes your content for proper keyword density (1-3%) and provides specific suggestions for improving your content's SEO performance. It identifies where to add keywords or where to reduce keyword density to prevent over-optimization.

= What are the main benefits of using this plugin? =
The biggest benefits are massive time savings, consistent content quality, and built-in SEO optimization. You can generate complete blog posts in seconds instead of hours, maintain a regular publishing schedule, and ensure all content follows SEO best practices without needing specialized knowledge.

= How do the SEO analysis tools improve my content? =
The SEO analysis feature examines keyword placement, density, heading structure, and readability factors like passive voice usage and transition word frequency. It then provides actionable recommendations to improve your content's search engine performance.

= What is the content personalization feature? =
Content personalization allows you to customize how the AI writes by defining your brand voice, target audience, products/services, and other business-specific details. This ensures generated content aligns with your brand identity and marketing goals.

= How does the AI image generation work? =
The plugin uses DALL·E 3 to create custom featured images based on your blog post title and selected style preferences. You can choose from various image styles like modern, minimalist, professional, artistic, and more.

= Which features are free? =
The free version includes single post generation with AI-created text and images, basic SEO optimization, and full control over topics and keywords.

= What additional features do I get with the premium version? =
Premium users gain access to continuous generation (batch mode) for creating multiple related posts, advanced SEO tools for in-depth optimization, and four post editor meta box buttons for quick content improvements (headline updating, passive voice suggestions, transition word enhancements, and image regeneration).

= How do I set my API key? =
After activation, go to **Tools > Auto Blog Generator** and enter your OpenAI API key along with your preferred default settings.

= Can I edit the AI-generated content? =
Yes, all generated content is added as standard WordPress posts that you can edit, format, and customize just like any manually created content.

== Screenshots ==
1. **Settings Page:** The settings interface where you configure your API key and default options.
2. **Post Generation Interface:** The page for entering topics and generating blog posts.
3. **Generated Posts Table:** A paginated table displaying your previously generated posts.
4. **Premium Meta Box:** The post editor meta box showing the premium update buttons (visible only in the premium version).

== Changelog ==
= 1.1 =
* Updated image handling to download and set the featured image using `media_sideload_image`.
* Added caching for database index creation.
* Improved code structure and error handling.
* Minor bug fixes and performance enhancements.

= 1.0 =
* Initial release.

== Upgrade Notice ==
= 1.1 =
This update includes enhancements to image handling and performance improvements via caching. Premium features have been refined. Please ensure your API key is updated if necessary.

== Premium Features ==
The following features require a premium upgrade:
* **Continuous Generation:** Automatically generate multiple blog posts in sequence.
* **Meta Box Update Buttons:** Gain access to four advanced content update buttons directly in the post editor for:
  - Updating the headline based on SEO criteria.
  - Suggesting improvements to reduce passive voice.
  - Recommending additional transition words.
  - Updating the featured image.
  
Upgrade to the premium version to unlock these advanced capabilities and streamline your content creation process.

== License ==
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.