=== Auto Content Writer By SRH ===
Contributors: srhwebagency
Donate link: https://srhwebagency.com/
Tags: ai, blog, automation, google-ai, content-creation
Requires at least: 5.6
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.0.0
Text Domain: auto-content-writer-by-srh
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A smart, AI-powered WordPress plugin that automates high-quality blog creation based on your business info — powered by Google’s Gemini API().

== Description ==

**Auto Content Writer By SRH (ACWBSRH)** is an AI-powered plugin that automatically generates and publishes blog posts tailored to your business. By integrating with Google's Gemini API (Pro: Also supports OpenAI GPT API, Cohere API, DeepSeek API, and Together AI API), it uses your business profile (services, tone, target audience, etc.) to generate original, SEO-friendly blog content directly from your WordPress dashboard.

Once configured, the plugin offers both:
- **Manual blog generation** with a single click, and
- **Automatic scheduled generation** via WP-Cron.

The generated content includes a title, excerpt, and full HTML-formatted blog post. You can choose to either publish immediately or save as a draft.

**Key Capabilities:**
- Automatically create blog content using Gemini AI.
- Set your publishing schedule: weekly, bi-weekly, or monthly (Pro: Schedule content daily with specific times, weekly on specific days and times, or monthly on custom dates and times).
- Customize output using your business info.
- View upcoming blog schedules and history.

Great for marketers, freelancers, and agencies who want fresh content without writing manually.

== Features ==

**Business-Aware AI Blog Generation**
- Set your business info (industry, services, tone, target audience, etc.)
- More detailed input = better blog output

**Gemini API Integration**
- Securely integrates with Google Gemini AI (via Google AI Studio API Key)
- Step-by-step guide included for setup

**Manual Blog Generation**
- One-click “Generate Blog Now” button
- Automatically publishes or saves as draft

**Automatic Scheduling**
- Supports weekly, bi-weekly, or monthly schedules
- Uses WP-Cron, no third-party services required

**Schedule Monitoring**
- View last blog generated (title, date, status, link)
- See next scheduled publish time

== Upcoming Pro Features ==

We're working on a Pro version of Auto Content Writer By SRH with powerful enhancements to make your content automation even smarter and more flexible.

🚀 Coming Soon in Pro:

- Daily auto-posting with full cron scheduling
- Weekly scheduling with day-specific control
- Monthly scheduling with custom date selection
- Selectable post time for each schedule type
- Multiple AI API integrations:
  - OpenAI GPT, Cohere, DeepSeek, Together AI, and more
- Author selection for generated posts
- Clean, user-friendly Dashboard for control
- Business reference pages (just change the name — no need to write descriptions!)
- Improved prompts for more detailed content
- SEO-focused: keyword-optimized, niche-specific content
- Smart assignment of categories and tags

🎯 *Launching soon — stay tuned!*

== Usage ==

1. After installing and activating the plugin, go to **Auto Content Writer By SRH > Settings**.
2. Fill in the required business details:
   - Business Name, Industry, Services Offered, Tone of Voice, Target Audience, Unique Selling Point, Frequency
3. Go to the **API** tab and enter your Gemini API key.
4. Use the **Generate Blog** menu to manually create a blog post.
5. To enable automatic blog publishing:
   - In **Settings**, select a schedule frequency (weekly, bi-weekly, or monthly)
   - Choose whether to publish immediately or save as draft.

**What happens after generation?**
- A blog post is created and either published or saved as draft based on your settings.
- You can monitor results under the **Scheduled** tab.
- Each post includes a unique title, SEO-optimized excerpt, and HTML-formatted body.

== Screenshots ==

1. Settings Page – Add business info and publishing options
2. API Tab – Add Gemini API key securely
3. Generate Blog – One-click blog creation
4. Schedule – Track upcoming and past blog posts

== Frequently Asked Questions ==

= Do I have to enter business info? =
Yes. The plugin uses your info as AI context. Without it, blog results may be irrelevant.

= Can I change my API key or blog tone later? =
Absolutely. Just update the fields in the plugin settings.

= How do I pause scheduled blog generation? =
You can either:
- Set blog frequency to empty
- Temporarily disable WP-Cron

= Why didn’t my blog publish? =
Check:
- If your API key is valid
- Whether "Publish" or "Save as Draft" is selected in settings

== Developer Notes ==

This plugin is built with extensibility in mind.

**Hooks and filters:**
- `abw_before_blog_generation` — Runs before blog content is generated.
- `abw_after_blog_generation` — Runs after content is generated and saved.

You can use these hooks to customize prompt structure, modify the final blog post, or trigger additional actions.

== Changelog ==

= 1.1.0 =
* Added "Coming Soon" submenu for upcoming Pro features
* UI improvements in admin menu
* Minor bug fixes and enhancements

= 1.0.0 =
* Initial release with manual and scheduled blog generation
* Gemini API integration
* Business-aware context settings
* Secure API key handling
* Dashboard for monitoring blog generation


== External Services ==

This plugin uses the **Gemini API** by Google to generate AI-based content.

When content generation is triggered, the plugin sends user-defined business details and prompt instructions to:

`https://generativelanguage.googleapis.com/`

This request is used solely for returning AI-generated content. No user credentials, passwords, or personal identifiers are shared.

For more info, please review Google’s:

- [Terms of Service](https://policies.google.com/terms)
- [Privacy Policy](https://policies.google.com/privacy)

== Privacy ==

This plugin does not:
- Track users
- Store personal data
- Send information to third parties (except the Gemini API prompt)

All data remains within your WordPress environment except when calling the Gemini API, which only transmits the AI prompt and business details as defined by the site administrator.

== Upgrade Notice ==

= 1.0.0 =
First release — add your business info and Gemini API key to get started.

== License ==

This plugin is licensed under the GNU General Public License v2 or later.  
See LICENSE.txt for full license.