Z-BlogPHP Article AI Assistant Plugin

🚀 Overview
Z-BlogPHP Article AI Assistant Plugin is an intelligent writing assistance tool based on AI technology, integrating multiple mainstream AI services to provide comprehensive support for blog authors from content creation to optimization.
🌟 Features
📝 Intelligent Writing Features
AI Article Generation: Automatically generates complete articles based on titles.
Title Optimization: Intelligently rewrites article titles.
Content Rewriting: Optimizes article content while maintaining its structure.
Smart Summarization: Automatically generates article summaries.
Tag Generation: Automatically extracts tags from articles.
🎨 Image Generation Features
AI Illustration Generation: Generates article illustrations based on titles.
Multi-platform Support: Supports AI drawing services like Zhipu and SiliconFlow.
Automatic Insertion: Supports automatic image insertion upon publishing.
Watermark Management: Customizes image watermarks.
💬 Intelligent Interaction
AI Auto-Commenting: Automatically generates comments after article publication.
Nickname Generation: AI generates personalized comment nicknames.
Comment Management: Intelligently controls comment frequency and quantity.
⚙️ Installation and Configuration
Environment Requirements
Z-BlogPHP 1.7.3+
PHP 7.4+
CURL extension support
Installation Steps
Download the plugin and upload it to the Z-Blog plugin directory.
Enable the plugin in the backend.
Configure API keys and basic parameters.
Enable various functions as needed.
🔧 Detailed Configuration Instructions
API Key Configuration
Zhipu AI Configuration
| Option Name | Configuration Value | Description |
|---|---|---|
| Zhipu API Keys | *** | Required |
| Zhipu Language Model Selection | glm-4-flash | Free model, cost-effective |
SiliconFlow Configuration
| Option Name | Configuration Value | Description |
|---|---|---|
| SiliconFlow API Keys | *** | Optional |
Text Generation Service Configuration
Supported Text Models
| Model Option | Model Name | Feature Description | Recommended Scenario |
|---|---|---|---|
0 | Zhipu Language Model | Default selection, optimized for Chinese | Daily writing |
openai | OpenAI GPT-4o-mini | Lightweight and fast, high stability | General content |
openai-large | OpenAI GPT-4o | Full-featured version, more powerful | Professional content |
openai-reasoning | OpenAI o1-mini | Enhanced reasoning capabilities | Logical analysis |
qwen-coder | Qwen 2.5 Coder 32B | Code optimization specific | Technical articles |
deepseek | DeepSeek-V3 | Excellent domestic model | Chinese content |
deepseek-reasoner | DeepSeek R1 - Full | Deep reasoning model | Complex analysis |
gemini | Gemini 2.0 Flash | Google's latest model | Creative writing |
gemini-thinking | Gemini 2.0 Flash Thinking | Gemini with Chain-of-Thought | Deep thinking |
Image Generation Service Configuration
Supported Image Models
| Model Option | Model Name | Feature Description | Pricing |
|---|---|---|---|
0 | Zhipu Image Generation Model | CogView-3-flash free model | Free |
1 | SiliconFlow FLUX.1-schnell | Fast generation version | Free |
2 | SiliconFlow FLUX.1-dev | High-quality generation | Uses gifted credits |
3 | FLUX No KEY | Default selection, completely free | Free |
4 | SiliconFlow Kolors | Color optimization version | Free |
⚡ Core Feature Configuration
AI Article Function
When enabled, supports the following features:
Generate complete articles from titles.
Intelligently rewrite article titles.
Generate titles from article content.
Rewrite article content.
Prompt Configuration Instructions
AI Article Prompt
Write an article over 500 words with the topic #title. The body can optionally includetags, and paragraphs should usetags. Do not add a title.
Note: Must include the #title placeholder.
Title Rewriting Prompt
Rewrite this title: #title Requirements: Make the title more engaging, adding interest while maintaining professionalism.
Note: Must include the #title placeholder.
Article Rewriting Prompt
Rewrite this article, preserving its structure and HTML. Here is the article: #article
Note: Must include the #article placeholder.
Content to Title Prompt
Read the article and generate an engaging title. Do not use quotation marks for titles. Here is the article: #article
Note: Must include the #article placeholder.
AI Image Function
Image Parameter Configuration
| Parameter | Configuration Value | Description |
|---|---|---|
| Zhipu Image Size | 1024x1024 | Generation size on Zhipu platform |
| Other Platform Size | 1024x1024 | Generation size on other platforms |
| Image Compression | 960 | Maximum height, compressed proportionally |
| Number of Images to Generate | 4 | Recommended to be within 4 |
Watermark Configuration
| Parameter | Configuration Value | Description |
|---|---|---|
| Image Text Watermark | 隔壁老李 | Leave blank to disable |
| Watermark Position | Bottom Center | Watermark display position |
| Text Color | - | Hexadecimal color value |
| Font Size | - | Integer, pixel value |
| Opacity | 0-127 | 0 fully opaque, 127 fully transparent |
Automatic Image Generation
Auto-generate for articles without images: Automatically insert AI images upon publishing.
Auto-generate for articles without images on browse: Automatically generate images upon access.
Insertion Start Paragraph: Specify the paragraph number from which to insert images.
Note: Automatic generation may slow down page loading, please enable with caution.
AI Smart Summary Function
Configuration Items:
Enable AI Smart Summary: Turn on the summary generation function.
Display Smart Summary in Article: Show the summary area on the front end.
Front-end AI Summary Title: Default is "AI Smart Summary".
Show Regenerate Button: Allows manual regeneration.
AI Summary Prompt:
Read the article and generate a summary. The word count must be less than 256 Chinese characters. Here is the article: #article
Note: Must include the #article placeholder.
AI Tag Function
Configuration Items:
Enable AI Tags: Turn on automatic tag generation.
AI Tag Prompt: Customize tag extraction rules.
AI Tag Prompt Example:
Read the article, extract 3-5 tags, separated by commas. Here is the article: #article
Note: Must include the #article placeholder.
AI Comment Function
Configuration Items:
Enable AI Comments: Automatically comment after article publication.
AI Comment Threshold: 0-100, higher values increase the probability of commenting.
AI Comment Nicknames: Customize comment nicknames (one per line).
AI Generate Nickname: Enable AI nickname generation.
AI Comment User ID: Specify the comment user account.
Maximum Comments: 3 (no more comments will be generated beyond this number).
Prompt Configuration:
AI Nickname Prompt:
Generate a Wuxia-style online name, 3-8 characters long. Give me only the name.
AI Comment Prompt:
Leave a one-sentence comment on this article. Here is the article: #article
Note: Must include the #article placeholder.
🧭 Model Selection Guide
Text Model Selection Recommendations
Select by content type:
Technical Blogs: qwen-coder or deepseek
Creative Writing: gemini-thinking or openai-large
Daily Blogs: Zhipu Language Model or openai
In-depth Analysis: openai-reasoning or deepseek-reasoner
Select by performance needs:
Fast Response: openai (GPT-4o-mini) or Zhipu Language Model
High-Quality Output: openai-large or gemini-thinking
Cost Control: Zhipu Language Model (free quota)
Image Model Selection Recommendations
Select by demand:
Stable Use: Zhipu cogview-3-flash
Daily Illustrations: FLUX No KEY (default, free and stable)
High-Quality Demand: SiliconFlow FLUX.1-dev (best results)
Fast Generation: SiliconFlow FLUX.1-schnell (fast speed)
Rich Colors: SiliconFlow Kolors (color optimization)
📚 Usage Guide
Article Creation Workflow
New Article
Create a new article in the Z-Blog backend.
Enter the article title.
Click the "AI Generate Article" button.
The system generates complete content based on the prompt.
Edit and optimize the generated content.
Title Optimization
In the article editing page.
Click "AI Rewrite Title".
The system generates multiple title variations.
Select a satisfactory title version.
Content Optimization
Edit an existing article.
Click "AI Rewrite Content".
The system optimizes content while preserving structure.
Confirm and save changes.
Illustration Generation
In the article editing page.
Click "Generate AI Image".
Select the image generation model.
Choose a satisfactory image and insert it into the specified paragraph.
Automatic Function Descriptions
Smart Summary:
Summary is automatically generated upon saving the article.
Supports front-end display and regeneration.
Word count is controlled within 256 characters.
Auto Tags:
One-click generation of relevant tags.
Supports extraction of 3-5 tags.
Comma-separated format.
Smart Comments:
Automatic comments after article publication.
Comment frequency can be controlled.
Supports AI generation of personalized nicknames.
💡 Best Practices
Prompt Optimization Suggestions
Article Generation Prompt:
Write an 800-1000 word article with the topic #title, requirements: 1. Clear structure, including introduction, body, and conclusion. 2. Usetags for subheadings. 3. Usetags for paragraphs. 4. Language should be professional but not obscure.
Title Optimization Prompt:
Rewrite the following title into a more engaging version, requirements: 1. Keep the original meaning unchanged. 2. Increase keyword density. 3. Length between 15-25 characters. 4. Suitable for search engine optimization. Original Title: #title
Summary Generation Prompt:
Read the following article and generate a summary of about 200 Chinese characters, requirements: 1. Summarize the core viewpoints of the article. 2. Highlight key information. 3. Language should be concise and clear. 4. Suitable as an article introduction. Article Content: #article
Note: Must include the #article placeholder.
Performance Optimization Suggestions
Image Generation Control
Generate no more than 4 images per request.
Set image compression parameters reasonably.
Enable automatic generation features with caution.
API Call Optimization
Set comment thresholds reasonably.
Control tag generation frequency.
Avoid redundant calls to the same function.
Content Quality Control
Manually review content after generation.
Adjust prompt templates as needed.
Regularly optimize prompt effectiveness.
🔧 Troubleshooting
Common Issues
API Call Failure
Symptom: Feature not working correctly.
Solution:
Check if the API key is correct.
Confirm network connection is normal.
Check service provider's quota status.
Poor Generated Content Quality
Symptom: Generated content does not meet expectations.
Solution:
Optimize prompt templates.
Adjust parameter settings.
Try different AI models.
Image Generation Anomaly
Symptom: Images cannot be generated or displayed.
Solution:
Check image size settings.
Verify watermark parameters are correct.
Check platform service status.
Log Viewing
Z-Blog System Logs: zb_users/logs/
Plugin Operation Logs: Plugin settings interface
API Call Records: Respective service provider's console
⚠️ Notes
Usage Limitations
Free Model Limitations: "No-Key" services may have stability issues.
API Quota Limits: Be aware of call quotas for each platform.
Content Copyright: Pay attention to copyright issues for AI-generated content.
Security Recommendations
API Key Protection: Change keys periodically.
Content Review: AI-generated content requires manual review.
Data Backup: Back up important content promptly.
🔄 Version Updates
v1.0: Basic AI writing functions.
v1.1: Added image generation function.
v1.2: Optimized comment and summary functions.
v1.3: Support for multi-platform AI services.
💁 Technical Support
For any issues, please contact the developer or refer to the official documentation.
Article link: https://docs.zbp.cool/lldocs/45.html
Helpful?
2025-10-13 10:10:54
2025-10-13 10:02:15
2025-10-13 09:52:04