# AIAuto Content Writing Assistant Basic Plugin

A WordPress plugin that provides AI-powered content writing assistance with configurable settings.

## Features

- **OpenAI Integration**: Connect with OpenAI API for AI-powered content generation
- **Perplexity Integration**: Connect with Perplexity API for enhanced research capabilities
- **Configurable Settings**: Comprehensive settings page with all necessary configuration options
- **Content Generation**: Configurable content parameters including word count, chapters, and subchapters
- **Target Audience**: Define specific target audience for content generation
- **Style Configuration**: Customize writing style for generated content
- **Content Writing Assistance**: AI-powered content generation and writing help

## Installation

1. Upload the plugin files to `/wp-content/plugins/aiauto-content-writing-assistant-basic/`
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to Settings > AIAuto Settings to configure the plugin

## Configuration

### API Configuration
- **OpenAI API Key**: Enter your OpenAI API key for AI content generation
- **Perplexity API Key**: Enter your Perplexity API key for enhanced research

### Content Configuration
- **Target Audience**: Define your target audience (e.g., "professionals", "beginners", "students")
- **Style**: Define the writing style (e.g., "formal", "casual", "academic", "conversational")
- **Max Word Count**: Set the maximum number of words per content piece (number input)
- **Number Of Chapters**: Select the number of chapters from 1 to 10 (dropdown)
- **Deeper Research**: Enable or disable deeper research functionality (Yes/No dropdown)
- **Number Of Subchapters**: Select the number of subchapters per chapter from 2 to 10 (dropdown)

## Usage

After configuration, the plugin settings can be accessed programmatically using the `AIAuto_Helper` class:

```php
// Get all settings
$settings = AIAuto_Helper::get_settings();

// Get specific settings
$openai_key = AIAuto_Helper::get_openai_api_key();
$max_words = AIAuto_Helper::get_max_word_count();
$chapters = AIAuto_Helper::get_number_of_chapters();

// Check if deeper research is enabled
if (AIAuto_Helper::is_deeper_research_enabled()) {
    // Perform deeper research
}
```

## Requirements

- WordPress 5.0 or higher
- PHP 7.4 or higher
- Valid OpenAI API key
- Valid Perplexity API key

## Support

For support and questions, please refer to the plugin documentation or contact the development team.

## License

This plugin is licensed under the GPL v2 or later. 