=== xiaochen - Auto Writer & Comment Reply ===
Contributors: tsxcc
Tags: ai, deepseek, auto-publish, auto-comment, chatbot,tsxiaochen
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 2.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automatically generate blog posts and reply to comments using DeepSeek AI. Supports role-playing mode for diary-style writing.

== Description ==

**🤖 Give your site an AI that writes and replies**

xiaochen - Auto Writer & Comment Reply is a smart plugin powered by DeepSeek LLM that can:

1. **Auto-publish daily** — AI generates and publishes articles on schedule
2. **Smart comment replies** — Read and reply to latest comments intelligently
3. **Role-play mode** — Set a character (e.g. "a 28-year-old woman in Shanghai") and AI writes as that person
4. **Customizable disclaimer** — Each article gets a styled AI-generated notice card

> Just apply for a DeepSeek API Key and you're ready to go.

== Key Features ==

*   **📝 AI Auto Writing** — Daily scheduled articles with formal/diary dual mode
*   **💬 Smart Comment Reply** — Auto-reply with natural language, deduplication support
*   **🎭 Role-Play Mode** — Set persona for first-person diary-style content
*   **🔧 Highly Configurable** — Articles count, category, tags, post status all configurable
*   **🎨 Styled Disclaimer Card** — Customizable AI notice with gradient background
*   **🚀 One-Click Execution** — Manual trigger buttons for instant post/reply
*   **💡 AI Topic Suggestion** — Get trending topic ideas from AI
*   **📋 Operation Logs** — Full activity logging with toggle and cleanup
*   **⏰ Built-in Scheduler** — WordPress Cron integration for daily tasks

== Installation ==

1. Upload the `xiaochen-auto-writer-comment-reply` folder to `/wp-content/plugins/`
2. Activate the plugin through the **Plugins** screen
3. Go to **Settings → xiaochen - Auto Writer & Comment Reply** to configure
4. Apply for an API Key at [DeepSeek Developer Platform](https://platform.deepseek.com/api_keys)
5. Configure publishing settings (articles per day, category, tags, etc.)
6. Optional: Fill in "Persona" for role-play diary mode
7. Click **Execute Daily Tasks** to start

== Frequently Asked Questions ==

= Where to get DeepSeek API Key? =

Visit [platform.deepseek.com/api_keys](https://platform.deepseek.com/api_keys) to sign up and create an API Key.

= How to enable diary mode instead of formal articles? =

Fill in the "Persona" field with a character description, for example:

> A 28-year-old woman working in Shanghai, loves cafe hopping and binge-watching shows. Takes the subway to Lujiazui every morning, hangs out with friends on Yongkang Road on weekends. Has an orange cat named Niangao.

= How to customize the disclaimer card? =

Go to **Settings → xiaochen - Auto Writer & Comment Reply** and modify or clear the "Article Prefix" field.

= When does the bot run daily? =

Uses WordPress Cron mechanism, triggered on site visits. For better reliability, set up a real server cron:

`curl --silent https://yoursite.com/wp-cron.php`

= How to change comment reply display name? =

Modify "Bot Display Name" and "Bot Email" in the bot settings section.

== External Services ==

This plugin connects to the DeepSeek API (https://api.deepseek.com) to generate article content and comment replies using AI.

*   **What is sent:** The text prompts configured on the settings page (persona description, topic, writing instructions, and the comment text being replied to). The plugin does not send any personal data of your site visitors beyond the comment text itself.
*   **When it is sent:** Each time an article is generated or a comment reply is requested.
*   **Why:** The DeepSeek API is required to produce the AI-generated text that powers the plugin's core features.
*   **Data retention:** DeepSeek processes the prompts on its servers; please review DeepSeek's policies below for details on how they handle data.

This service is provided by DeepSeek (Hangzhou DeepSeek Artificial Intelligence Co., Ltd.):
*   Terms of Service: https://cdn.deepseek.com/policies/en-US/deepseek-open-platform-terms-of-service.html
*   Privacy Policy: https://cdn.deepseek.com/policies/en-US/deepseek-privacy-policy.html

== Changelog ==

= 2.0.0 =
*   New: Configurable writing instructions for diary/formal modes
*   New: Help & Support page
*   New: Colorful section-based admin UI with status cards
*   Improved: Prompt template optimization
*   Fixed: Variable interpolation in system prompts
*   Fixed: Security escaping (esc_url/esc_js)

= 1.0.0 =
*   Initial release
*   DeepSeek AI article generation and publishing
*   Smart comment reply system
*   Dual writing mode (formal / role-play diary)
*   Customizable article prefix card
*   One-click admin execution buttons
*   Operation log system with toggle and cleanup
*   Configurable bot display information
*   WordPress Cron daily scheduling

== Upgrade Notice ==

= 2.0.0 =
Major update with new UI, help page and configurable prompts.

= 1.0.0 =
Initial release.
