Qiling AI Assistant (wp-ai-chat) is a WordPress-based AI plugin. The plugin's main file is wp-ai-chat.php, and its applicable scenarios include on-site AI assistant, article enhancement, and site content production. This plugin is a renamed and refactored version of the original Xiaoban WP Assistant, and updates have restarted.
Main capabilities
-
AI chat assistant: Displays a chat window on the front end via the shortcode [deepseek_chat], supporting history records, API switching, and model parameter selection; supports logged-in users and guest conversations with limits opened by device; supports keyword blocking, number of context memory rounds, announcements, custom prompts, and tutorial entry links; online web search can be enabled (effective according to supported models). The plugin loads the chat front-end resources only on pages (page) that contain [deepseek_chat].
-
Agent application chat: Supports providers such as Alibaba, Tencent, Volcano, and Coze, and allows configuration of name, description, icon, and application ID; Tencent agents can be configured with a separate Token, and can configure opening questions and whether file upload is allowed. On the front end, click "Agent Application" on the chat page to enter the corresponding session.
-
Chat file upload: Enabled in chat settings; document analysis models are limited to Kimi, OpenAI, and Tongyi Qianwen qwen-long; video task scenarios will limit uploads to images according to the model; agent file upload in the current version requires login and upload permission.
-
Article AI summary: Enabled in chat settings and select the summary API. After an article is published, it is marked as "pending summary". When the article page is first visited, a summary is generated and displayed before the body content.
-
Article generation: In "Qiling AI Assistant > Article Generation", enter keywords, select an API, and optionally check online search to generate an article. After generation is complete, it can be directly published to the selected category and tags can be set. The current version has added request verification (nonce) and backend permission checks.
-
Article AI analysis (classic editor): Effective after enabling "Article Analysis" in chat settings, and can output recommended titles, SEO descriptions, and typo detection results.
-
Article translation and voice reading: In "Qiling AI Assistant > Translation Voice", article translation and article reading control bars can be enabled; reading supports Tencent Cloud/Baidu Cloud TTS APIs; excluded article IDs can be configured.
-
AI PPT generation: Used via the shortcode [docmee_ppt]. In "Qiling AI Assistant > PPT Generation", fill in the Docmee API Key, and you can set each Token Maximum generation count, container width and height; the front-end shortcode page requires login by default.
-
Record management: conversation records can view/delete ordinary chat history; agent records can view/delete agent session records; the file workspace can view, filter, reuse, and clean up local file records, and can also load the Tongyi Qianwen remote file list when needed.
-
Knowledge base retrieval enhancement: in "Qiling AI Assistant > Knowledge Base", you can add in-site articles/pages, manual text, and uploaded file records to the knowledge base; supports controlling the effective scope of the knowledge base by source type, chat interface, and page ID; when a chat hits the knowledge base, a citation marker will be shown in the answer, and the reference sources will be displayed at the bottom of the message; after articles/pages are published, the index will be automatically synchronized, and the backend can also manually add to the knowledge base or rebuild all sources.
-
Interface model expansion: adds configuration for three platforms: SiliconFlow, OpenRouter, and Mistral AI; front-end chat, article generation, article summarization, and classic editor article analysis can all use these OpenAI-compatible platforms; the model parameters for each platform support English comma separation, and the first model is used by default.
-
Prompt library and scenario templates: in "Qiling AI Assistant > Prompt Library", you can add, edit, disable, and delete prompt templates; templates support categories, sorting, applicable interfaces, and system prompts; the front-end chat page will display available scenario templates, and clicking one will automatically fill it into the input box; when sending a chat, the template's system prompt will be injected into the model request.
-
Usage statistics and answer feedback: in "Qiling AI Assistant > Usage Statistics", records the interface, model, status, duration, and character count of calls such as chats, images, and videos, and records the number of knowledge base source hits and prompt template hits; the front end supports "useful/not useful" feedback below answers, and the backend can view recent feedback.
-
Session management enhancement: supports chat renaming, pinning chats, and exporting Markdown files.
-
Membership prompt popup: provides a membership prompt popup mechanism of "keyword hit + redirect URL", usually used to integrate with the site's existing membership system.
How to use
Environment requirements: WordPress (6.x recommended); PHP extensions curl, mbstring, json; the site can access external model APIs (DeepSeek, Tongyi Qianwen, OpenAI, etc.); if you need to use the newly added platforms, please prepare the corresponding API Keys: SiliconFlow, OpenRouter, Mistral AI.
Installation: upload the wp-ai-chat folder to wp-content/plugins/, activate the plugin in the WordPress admin. After activation, the plugin will automatically create the pages "Qiling Ai Assistant" (containing [deepseek_chat]) and "AIPPT Generation" (containing [docmee_ppt]); if automatic creation fails, you can manually create new pages and insert the corresponding shortcodes. After activation, the main menu "Qiling Ai Assistant" appears in the admin, including submenus such as Chat Settings, Agent Applications, Article Generation, Translation Voice, PPT Generation, Knowledge Base, API Models, Prompt Library, and Usage Statistics.
Configuration: go to "Qiling Ai Assistant > Chat Settings", fill in the API Key and model parameters; in "Enabled Chat APIs", check the model APIs to be exposed and set the default API; open the automatically created "Qiling Ai Assistant" page to test chat; enable extended features such as web search, file upload, agent entry, article summary, and chat voice as needed.
Agent application configuration: in "Qiling Ai Assistant > Agent Applications", configure the provider (Alibaba, Tencent, Coze, Volcano), name, description, icon, and application ID; Tencent agents can be configured with a separate Token; you can configure the opening questions and whether to allow the agent to upload files.
Data tables: the plugin uses the following data tables: {$wpdb->prefix}deepseek_chat_logs, {$wpdb->prefix}deepseek_agent_chat_logs, {$wpdb->prefix}deepseek_settings, {$wpdb->prefix}deepseek_file_records, {$wpdb->prefix}deepseek_kb_sources, {$wpdb->prefix}deepseek_kb_chunks, {$wpdb->prefix}deepseek_kb_jobs, {$wpdb->prefix}deepseek_prompt_templates, {$wpdb->prefix}deepseek_usage_events, {$wpdb->prefix}deepseek_message_feedback, {$wpdb->prefix}deepseek_conversation_meta. Plugin configuration will be preferentially synced to deepseek_settings, with an options-compatible shadow retained; files uploaded in chat/agent are uniformly recordedRecorded to deepseek_file_records; knowledge base sources, chunks, and ingestion jobs are written to deepseek_kb_sources, deepseek_kb_chunks, and deepseek_kb_jobs respectively; prompt templates are written to deepseek_prompt_templates; call statistics and answer feedback are written to deepseek_usage_events and deepseek_message_feedback respectively; conversation titles and pinned status are written to deepseek_conversation_meta; content enhancement data such as article summary status is written to the article meta. When the plugin is uninstalled, it will clean up the configuration storage, file records table, knowledge base tables, prompt library table, usage statistics table, feedback table, and conversation management table. It is recommended to manually back up or clean up the historical conversation log table as needed.
Security mechanisms: The key conversation REST interfaces have been tightened to nonce + logged-in/guest quota verification; agent-related requests have added permission and conversation ownership verification; article generation/publishing backend AJAX has added nonce verification; knowledge base backend operations are restricted to administrators and include nonce verification; prompt library backend operations are restricted to administrators and include nonce verification; the answer feedback interface includes nonce and conversation ownership verification, and guests can only give feedback on their own conversations; the conversation rename, pin, and export interfaces include nonce and conversation ownership verification; Markdown output has added frontend sanitization.
Common issues: Please confirm that the shortcode is placed in a page, not a post; check the API Key, model parameters, interface URL, and the server's external network connectivity; document analysis only supports specified models (such as qwen-long, Kimi, and the corresponding OpenAI models); before using an agent, please first configure and save at least one agent in the "Agent Applications" menu.
Applicable scenarios and limitations
Applicable scenarios: on-site AI assistant, article enhancement, and site content production, including AI chat, agent chat, article generation and summarization, article translation and read-aloud, AI PPT generation, knowledge base retrieval-augmented question answering, etc.
Limitations: The plugin requires WordPress 6.x recommended, PHP requires the curl, mbstring, and json extensions, and the site must be able to access external model APIs; document analysis only supports specified models; video task scenarios will be limited to uploading as images depending on the model; agent file upload requires login and upload permission; AI PPT frontend shortThe code page requires login before use by default.
Other notes: The contact method is Penguin group 16966111.