=== Monetto Case Study Drafts ===
Contributors: monetto26
Tags: ai, case study, portfolio, construction, renovation
Requires at least: 7.0
Tested up to: 7.1
Requires PHP: 8.1
Stable tag: 0.3.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Turn before/after photos and a few bullet-point notes into a ready-to-review case study draft, written by AI. Built for Japanese contractors.

== Description ==

Monetto Case Study Drafts ("Monetto 事例記事") helps renovation, painting, exterior and other home-improvement contractors publish "case study" (施工事例) posts without writing them from scratch. The admin screens are in Japanese.

1. Pick the before and after photos (and optionally in-progress photos).
2. Enter the type of work, the city, and short bullet-point notes about the customer's problem and the work done.
3. Click the button. The AI writes the title, introduction, work description and highlights, and the plugin saves a block-editor draft with your photos and a summary table.

Nothing is published automatically. Review the draft and publish it yourself.

= Uses the WordPress AI Client =

The text is generated through the WordPress AI Client, using the AI service the site owner connected in **Settings > Connectors** (for example Anthropic / Claude). This plugin does not store any API keys and does not call AI providers directly.

= Built-in safeguards =

* **Drafts only.** Posts are always saved as drafts.
* **No invented numbers.** Cost and duration are never sent to the AI. The values you typed are placed in the summary table as-is. The AI is instructed not to add facts that are not in your notes and not to use exaggerated claims.
* **Photo location data is removed.** Photos are re-encoded on your server, which strips GPS and other EXIF data. Orientation is corrected and the long edge is resized to 1920px.
* **Street addresses are blocked.** If the area field looks like it contains a street number, the plugin shows an error so that your customer's home cannot be identified.
* **Consent checks.** The form asks you to confirm the customer's permission and that photos show no name plates, license plates or faces.
* **Respects the site-wide AI opt-out.** If AI is disabled for the site (WP_AI_SUPPORT or the wp_supports_ai filter), the plugin does not send anything.

= Requirements =

* WordPress 7.0 or later, with an AI service that supports text generation connected in Settings > Connectors. You are billed by that AI service directly.
* The PHP GD extension (enabled on most hosts).

== External services ==

This plugin does not connect to external services by itself. To write the article text, it sends a prompt through the WordPress AI Client to the AI service the site owner connected in Settings > Connectors. This happens only when a user clicks the "create article" button on the plugin's create screen. To check whether an AI service is connected, the plugin's screens also ask the WordPress AI Client for the list of available models.

**What is sent:** the type of work, the area (city level), building type and age, work period, the notes about the customer's problem / the work / highlights, the number of photos, the company name (or site name), and the instructions for the AI.
**What is not sent:** the photos themselves, the cost, user data, or the site URL.

The terms and privacy policy of the connected AI service apply. For the services offered in Settings > Connectors by default:

* Anthropic: [Terms](https://www.anthropic.com/legal/commercial-terms), [Privacy policy](https://www.anthropic.com/legal/privacy)
* Google (Gemini API): [Terms](https://ai.google.dev/gemini-api/terms), [Privacy policy](https://policies.google.com/privacy)
* OpenAI: [Terms](https://openai.com/policies/terms-of-use), [Privacy policy](https://openai.com/policies/privacy-policy)

== Installation ==

1. Install and activate the plugin.
2. Go to Settings > Connectors and connect an AI service (for example Anthropic).
3. Go to Monetto 事例記事 > 事例をつくる (Create) to make a case study draft. Optional settings are in Monetto 事例記事 > 設定 (Settings).

== Frequently Asked Questions ==

= Who can use it? =

Users who can edit posts and upload files (Author role and above) can create drafts. Only administrators can change the settings. If Authors use the plugin, an administrator should create the target category first.

= Which AI model is used? =

By default the plugin prefers an inexpensive model that is good enough for this task (for Claude, Claude Haiku 4.5) among the models of the connected service. You can set a preferred model ID on the settings screen.

= Can I use iPhone photos (HEIC)? =

Most browsers convert them to JPEG before upload. If not, set the iPhone camera format to "Most Compatible".

= Is the generated text accurate? =

The AI writes from your notes, but it can make mistakes. Always review and edit the draft before publishing.

= What happens when I delete the plugin? =

This plugin's settings are deleted. Connections made in Settings > Connectors are not changed. Posts and images you created are kept.

== Changelog ==

= 0.3.0 =
* Initial release.
