# Mark Bogner's Story Prompts — WordPress Plugin

A lightweight WordPress plugin that lets visitors pick a story genre from a dropdown and instantly receive a 1–2 sentence writing prompt generated by the **Anthropic Claude API**.

---

## Installation

1. Upload the `ai-story-prompt-generator` folder to `/wp-content/plugins/`.
2. Activate the plugin through **Plugins → Installed Plugins** in WordPress admin.
3. Go to **Settings → Story Prompt AI** and enter your **Anthropic API key**.
4. Embed the widget anywhere with the shortcode.

---

## Getting an Anthropic API Key

1. Visit [https://console.anthropic.com/](https://console.anthropic.com/)
2. Sign up or log in, then go to **API Keys**.
3. Create a new key, copy it, and paste it into **Settings → Story Prompt AI**.

---

## Shortcode Usage

Basic:
```
[story_prompt_generator]
```

With custom text:
```
[story_prompt_generator title="Spark Your Story" button_text="Inspire Me"]
```

### Attributes

| Attribute     | Default                   | Description               |
|---------------|---------------------------|---------------------------|
| `title`       | Story Prompt Generator    | Widget heading text       |
| `button_text` | Generate Prompt           | Button label              |

---

## Supported Genres

Literary Fiction, Fantasy, Science Fiction, Horror, Mystery & Thriller, Romance, Historical Fiction, Adventure, Crime & Noir, Magical Realism, Dystopian, Comedy & Satire, Western, Young Adult, Children's Story.

---

## File Structure

```
Mark-Story-Prompt-Generator/
├── Mark-Story-Prompt-Generator.php   # Main plugin file
├── assets/
│   ├── style.css                   # Widget styles
│   └── script.js                   # Frontend AJAX logic
└── README.md
```

---

## Requirements

- WordPress 5.8+
- PHP 7.4+
- An active Anthropic API key

---

## Author

Mark Bogner

---

## License

GPL-2.0+
