
內容簡介
Ask My Content 是一款為 WordPress 網站提供 AI 驅動的問答聊天機器人的外掛。它能夠索引網站內容,並根據訪客的問題提供準確且具上下文的回答,超越傳統的關鍵字匹配搜尋。
【主要功能】
• 基於實際網站內容的檢索增強生成 (RAG)
• 使用 OpenAI 進行嵌入和生成
• 自動追蹤內容變更,方便重新索引
• 自動移除已刪除內容的通知
• 輕量級設計,無繁重的管理介面
• 支援多種內容類型,包括頁面和小工具
外掛標籤
開發者團隊
② 後台搜尋「Ask My Content – AI Q&A Chatbot」→ 直接安裝(推薦)
原文外掛簡介
Ask My Content brings AI-powered question answering to your WordPress site. Instead of giving generic chatbot responses, this plugin indexes your site’s content and uses it to provide accurate, context-aware answers to visitors.
Unlike standard content search plugins that rely on keyword matching, Ask My Content uses semantic embeddings and retrieval-augmented generation to return direct answers in full sentences.
Supports Gutenberg, Elementor, Avada, and WooCommerce content.
Some highly customized dynamic content may still require review. See FAQ for details.
Key Features
* Retrieval Augmented Generation (RAG) – answers are grounded in your actual site content.
* Uses OpenAI for embeddings and completions (via a secure Node.js backend).
* Change tracking – automatically queues edited pages/posts so you can rerun indexing from the dashboard or wp amc when you’re ready.
* Deleted content removal – auto notifies the backend when pages or posts are trashed or permanently deleted.
* Lightweight – no heavy admin UI or visual layout tools, just the essentials.
* Flexible – works with posts, pages, other content types, and header/footer.
How it works
1. After activating the plugin, go to Dashboard -> Ask My Content and press “Start Indexing” (or run wp amc index) to send your site content to the backend. Indexing must be completed before the chat can answer questions.
2. Enable the floating launcher to show the chat site-wide; or add the Ask My Content block to an existing or new page (or place the [ask_my_content] shortcode) and publish/update the page so the chat interface has a front-end location.
3. When a visitor asks a question, the chatbot retrieves the most relevant snippets from your indexed website content.
4. OpenAI generates an answer based on that content.
After you edit content, rerun indexing from Dashboard -> Ask My Content or via wp amc index to push the latest changes. Deleted posts are sent to the backend automatically when they are trashed or removed.
Note: Your site’s content and user questions are securely sent to an external AI service (OpenAI) for processing.
Command Line Usage
The plugin bundles a WP-CLI command suite (wp amc) for scripted indexing and status checks. It complements the Ask My Content Settings admin screen:
Use the settings page for a guided UI, manual start/stop buttons, and real-time counters inside the WordPress dashboard.
Use wp amc when you need automation (cron jobs, SSH sessions, CI) or want to run indexing without opening a browser.
Available commands include:
wp amc index [--include-posts] [--include-other-post-types] [--pages-only] [--force]
wp amc status
wp amc stop
Run wp help amc index for full option descriptions:
NAME
wp amc index
DESCRIPTION
Run indexing immediately (pages always, posts and other public content types optional).
SYNOPSIS
wp amc index [--include-posts] [--include-other-post-types] [--pages-only] [--force]
OPTIONS
[--include-posts]
Include posts in addition to pages.
[--include-other-post-types]
Include other public content types (for example products or books) in addition to pages.
[--pages-only]
Index pages only. Overrides any previously saved content-type settings.
[--force]
Steal an existing lock and run anyway (use with caution if another process may be running).
EXAMPLES
wp amc index
wp amc index --include-posts
wp amc index --include-other-post-types
wp amc index --pages-only
wp amc index --force
Installing WP-CLI
Many hosts ship with WP-CLI pre-installed. If yours does not, install it manually:
Download the Phar:
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
Make it executable:
chmod +x wp-cli.phar
Move it into your PATH (optional):
sudo mv wp-cli.phar /usr/local/bin/wp
Confirm:
wp –info
See https://wp-cli.org/#installing for additional options (Homebrew, Docker, Windows packages).
Running the command successfully
Run wp amc ... from the WordPress installation root (where wp-config.php lives) or supply the path explicitly:
Change directory, e.g. cd /srv/www/wordpress then run wp amc status
Or pass the path flag: wp --path=/srv/www/wordpress amc status
If you run the command from another folder you will see:
Warning: No WordPress installation found. If the command ‘amc’ is in a plugin or theme, pass –path=path/to/wordpress.
Point wp at your site root and re-run to resolve the error.
