# AI Content Generator Configuration for PPS Impact

This directory contains configuration files for generating test content for the impact_article and impact_issue content types using the AI Content Generator module.

## Configuration Files

### impact_article.yml
Generates comprehensive physical therapy articles with:
- Professional titles targeted at PT professionals
- 800-1200 word article bodies
- Author information with PT credentials
- APA-style references
- Clinical sidebar content
- Appropriate categories and keywords

### impact_issue.yml
Generates magazine issues that automatically create:
- 3-5 featured articles
- 4-6 department articles
- 2-3 APTA news articles
- Issue metadata (month/year)
- **Note:** Skips field_additional_sections as configured

## How It Works

The AI Content Generator module automatically discovers these configuration files when generating content. The module searches for configurations in:
1. The requesting module's `config/ai_content_generator/` directory (this directory)
2. The AI Content Generator module's own config directories

## Usage

### Basic Generation (uses these configs automatically)
```bash
# Generate an impact article
drush ai-content:generate impact_article "Topic" "Description"

# Generate an issue with all its articles
drush ai-content:generate impact_issue "Issue Title" "Theme Description"
```

### Explicit Configuration
```bash
# Explicitly use these configurations
drush ai-content:generate impact_article "Topic" "Description" --config=impact_article
drush ai-content:generate impact_issue "Title" "Theme" --config=impact_issue
```

### Without Configuration (automatic field detection)
```bash
# The module will still work without configs, using automatic field analysis
drush ai-content:generate impact_article "Topic" "Description" --no-config
```

## Customization

Edit the YAML files to:
- Adjust prompt templates for different content styles
- Change content length requirements
- Modify the number of generated references
- Skip additional fields by adding `skip: true`
- Use different AI models for specific fields

## Requirements

- AI Content Generator module must be enabled
- Ollama must be installed and running (or accept placeholder content)
- PPS Impact module must be enabled with its content types

## Test Script

Use the included test script for quick testing:
```bash
cd /Users/mbowen/cloned/ah_multi/public_html
chmod +x sites/pps/modules/pps_impact/test_impact_content.sh
./sites/pps/modules/pps_impact/test_impact_content.sh
```

This will generate sample articles and an issue to verify everything is working correctly.
