=== AI Story Maker ===
Contributors: hmamoun
Tags: ai, content creation, blog automation, article generation, wordpress ai plugin
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 2.2.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Plugin URI: https://www.storymakerplugin.com/
Author: Hayan Mamoun
Author URI: https://exedotcom.ca

AI-powered WordPress plugin that generates high-quality stories instantly with OpenAI and Unsplash. Includes AI Story Enhancer for content upgrades.

== Description ==

**AI Story Maker** transforms your WordPress into an intelligent storytelling engine. Seamlessly generate captivating stories and articles enhanced with dynamic visuals—within seconds. No writing experience needed.

**NEW: AI Story Enhancer**
Upgrade any post with professional-quality enhancements by simply selecting text and choosing how you want it improved. Save time, improve quality, and boost reader engagement.

Ideal for bloggers, marketers, coaches, educators, and content creators.

== Key Features ==

**AI Story Enhancer**
- Smart text selection and contextual enhancements
- Instant AI rewrite, expand, and improve tools
- One-click access from your post list
- Free to use, no credits required

**AI-Powered Story Generation**
- Leverages OpenAI to generate unique content
- Royalty-free image integration via Unsplash
- Schedule automatic content generation
- Create & manage custom prompts with categories

**Built-In Analytics**
- Traffic logs and heatmaps
- Post performance tracking and click stats

**Advanced Content Display**
- Filterable and searchable story widgets ([aistma_posts])
- Story scroller with shortcode ([aistma_scroller])
- Seamless integration with any theme

**Social Media Integration**
- Auto-publish to Facebook (LinkedIn, X, and Instagram coming soon)
- Convert tags to hashtags
- Smart scheduling and multi-account support

**Developer Friendly**
- Use subscription credits or your own OpenAI/Unsplash keys
- Automatic fallback: generate stories using master API when credits are available, no subscription required
- Clean shortcode and widget setup
- Multilingual ready

== Installation ==
1. Upload the plugin folder to `/wp-content/plugins/` or install via the WordPress plugin screen.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Complete the welcome wizard to choose a subscription plan or connect your own API keys.
4. Set up prompt rules and preferences.
5. Start generating and enhancing content.

== After Installation ==
1. Choose a subscription or connect your API keys
2. Set up prompt rules and preferences
3. Start generating and enhancing content

== Support & Documentation ==
- Full setup and user guide at storymakerplugin.com
- Developer docs and API terms available

== License & Privacy ==
- Licensed under GPLv2 or later
- Uses OpenAI, Unsplash, and Exedotcom API services for functionality
- Collects domain/email for license validation only (no personal user data shared)

== Screenshots ==

1. Welcome wizard — choose a prompt and generate your first AI story in seconds.
2. Posts list integration — one-click "Generate AI Stories" button and per-post "AI Story Enhancer" action.
3. AI Story Enhancer — select any text in your post and choose how to rewrite, expand, or improve it.
4. SEO & Meta panel — generate optimised meta descriptions for your posts with a single click.

== Changelog ==

= 2.2.1 =
* Added privacy disclosure note in wizard header
* Improved user transparency about startup credits
* UI refinements and stability improvements

= 2.2.0 =
* Fixed wizard modal centering for prompts tab
* Added credit check with personal API fallback
* Allow story generation with user's own OpenAI API key when no credits available
* Improved error messages and user redirects to plans tab

= 2.1.4 =
* Bug fixes and performance improvements
* Enhanced stability and code quality

= 2.1.3 =
* NEW: AI Story Enhancer feature for post-level improvements
* Enhanced UX and seamless WP integration

= 2.0.3 =
* Major analytics improvements
* Widget and display upgrades

== Love the Plugin? ==
Support development by leaving a review or buying a coffee ☕

== Stay Updated ==
Subscribe for feature updates and tutorials at storymakerplugin.com
