
內容簡介
總結:
HD SofT AI Summary 是一個強大的 WordPress 外掛,通過 OpenRouter API 使用先進的 AI 模型自動生成智能摘要,讓您省時並提升您的內容可訪問性,並提供專業製作的摘要。
問題與答案:
1. HD SofT AI Summary 是什麼?
- HD SofT AI Summary 是一個WordPress 外掛,可以自動使用OpenRouter API的先進AI模型為您的博客文章生成智能摘要。
2. 在免費版中,這個外掛提供了哪些功能?
- 手動生成摘要
- OpenRouter API整合
- 敘事風格摘要
- 手動覆蓋
- 靈活的顯示選項
- 智能內容檢測
- REST API支援
- 響應式設計
3. Pro版的特色有哪些?
- 自動生成摘要
- 多種提示風格
- 自定義摘要標題
- 增強的自動化
4. 如何使用這個外掛?
- 安裝和配置
- 選擇 AI 模型
- 生成摘要
- 自定義顯示
- 手動控制內容
5. 這個外掛使用了哪些 OpenRouter API 上的 AI 模型?
- OpenAI GPT-3.5 Turbo
- OpenAI GPT-4
- Anthropic Claude 模型
- Meta Llama 模型
6. 有哪些開發人員功能?
- REST API 用於整合
- WordPress Hooks 基本自訂鉤子
- 模板功能
- 支援短代碼
7. 這個外掛的隱私政策和安全性情況如何?
- API 金鑰以 autoload=false 安全存儲
- 內容僅為摘要生成發送至 OpenRouter API
- 第三方服務不存儲個人數據
- 有完全控制內容處理的權限
外掛標籤
開發者團隊
原文外掛簡介
HD SofT AI Summary is a powerful WordPress plugin that automatically generates intelligent summaries for your blog posts using advanced AI models through the OpenRouter API. Save time and improve your content’s accessibility with professionally crafted summaries.
Key Features
Free Version:
* Manual Summary Generation – Generate summaries using the “Generate Summary” button in post editor
* OpenRouter API Integration – Access to multiple AI models including GPT-3.5, GPT-4, Claude, and more
* Narrative Style Summaries – 2-3 sentence narrative summaries in content language
* Manual Override – Edit summaries manually when needed, with protection against auto-overwriting
* Flexible Display Options – Show summaries before content, after content, or use shortcodes for custom placement
* Smart Content Detection – Hash-based system detects content changes
* REST API Support – Full REST API for developers and integrations
* Responsive Design – Mobile-friendly summary display with customizable styling
Pro Version Features:
* Automatic Summary Generation – Summaries are generated automatically when you publish or update posts
* Multiple Prompt Styles – Choose from Narrative, Structured Bullets, or Executive Brief styles
* Custom Summary Titles – Set default title for summaries (used in AI prompts)
* Enhanced Automation – Auto-generate on save for streamlined workflow
How It Works
Install and Configure – Add your OpenRouter API key in the settings
Choose Your Model – Select from various AI models based on your needs and budget
Generate Summaries – Free: Use “Generate Summary” button in post editor. Pro: Automatic generation on save/publish
Customize Display – Choose where and how summaries appear on your site
Manual Control – Edit summaries manually when you need specific content
OpenRouter Integration
This plugin uses the OpenRouter API to access multiple AI models:
– OpenAI GPT-3.5 Turbo (Recommended for most users)
– OpenAI GPT-4 (Premium quality)
– Anthropic Claude models
– Meta Llama models
– And many more
You’ll need an OpenRouter API key (free tier available) to use this plugin.
Developer Features
REST API for Integrations – Authenticated endpoints for generating, retrieving, and managing summaries (requires WordPress user permissions)
WordPress Hooks – Basic customization hooks (init, settings updates, supported post types filter)
Template Functions – Static functions for theme developers to display summaries
Shortcode Support – [hdsoft_ai_summary] shortcode with customizable attributes
Privacy & Security
API keys are stored securely with autoload=false
Content is sent to OpenRouter API only for summary generation
No personal data is stored by third-party services
Full control over when and how content is processed
Privacy Notice
This plugin may send post content to OpenRouter API for AI summary generation. The data transmission occurs only when:
– Auto-generation is enabled and you publish/update a post
– You manually generate a summary using the “Generate Summary” button
– You test the API connection in settings
Data Handling:
– Post titles and content are sent to OpenRouter for processing
– No personal data or user information is transmitted
– API keys are stored locally and never shared with plugin developers
– Generated summaries are stored in your WordPress database
– You can disable auto-generation at any time
Third-Party Service:
This plugin integrates with OpenRouter (https://openrouter.ai/), which provides access to various AI models. Please review OpenRouter’s privacy policy and terms of service for information about how they handle data.
Your Control:
– You can disable automatic summary generation
– You can delete summaries at any time
– API communication only occurs when explicitly triggered
– No background or scheduled data transmission
Freemius SDK:
This plugin uses the Freemius SDK to collect non-sensitive diagnostic data only after your explicit opt-in. You can opt out at any time from the plugin’s settings. For more information, see the Freemius privacy policy: https://freemius.com/privacy/
Developer Documentation
REST API Endpoints
Base URL: /wp-json/hdsoft-ai-summary/v1/
Authentication Required: All endpoints require WordPress user authentication with appropriate permissions.
POST /generate – Generate summary for a post
Requires: edit_posts capability and edit_post permission for specific post
Parameters: post_id (required), force_regenerate (optional, boolean)
GET /summary/{post_id} – Retrieve existing summary
Requires: Post must be publicly readable OR user has edit permissions
DELETE /summary/{post_id} – Delete post summary
Requires: edit_posts capability and edit_post permission
POST /test-connection – Test OpenRouter API connection
Requires: manage_options capability (admin only)
Template Functions
Use these static functions in your theme templates:
`php
// Display formatted summary HTML
HDSofT\AISummary\Frontend::get_summary( $post_id, $echo );
// Check if post has summary
if ( HDSofT\AISummary\Frontend::has_summary( $post_id ) ) {
// Post has summary
}
// Get raw summary text only
$summary_text = HDSofT\AISummary\Frontend::get_summary_text( $post_id );
`
WordPress Hooks
Action Hooks:
* hdsoft_ai_summary_init – Fired when plugin is initialized
* hdsoft_ai_summary_settings_updated – Fired when settings are saved
* hdsoft_ai_summary_fs_loaded – Fired when Freemius SDK is loaded
Filter Hooks:
* hdsoft_ai_summary_supported_post_types – Modify supported post types (default: ['post'])
Example:
php
add_filter( 'hdsoft_ai_summary_supported_post_types', function( $post_types ) {
$post_types[] = 'custom_post_type';
return $post_types;
});
Shortcode Attributes
[hdsoft_ai_summary post_id="123" class="my-summary" wrapper="div"]
post_id – Specific post ID (default: current post)
class – CSS class name (default: hdsoft-ai-summary)
wrapper – HTML wrapper element: div, section, aside, p (default: div)
Support
For support, feature requests, or bug reports, please visit our website at https://hdsoft.fi/ or contact us through the plugin support forum.
Credits
Developed by HD SofT – Professional WordPress development services.
