ཞིབ་བརྗོད།
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 (pages and posts) 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.
Note that dynamic WordPress content creation themes and plugins (which may include Elementor) are not supported. 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, 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 content snippets from your indexed pages.
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 amcwhen 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] [--pages-only] [--force]wp amc statuswp amc stop
Run wp help amc index for full option descriptions:
NAME
wp amc index
DESCRIPTION
Run indexing immediately (pages always, posts optional).
OPTIONS
[--include-posts]
Include posts in addition to pages.
[--pages-only]
Index pages only (exclude posts). Overrides any previously saved setting.
[--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 --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/wordpressthen runwp 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.
གཏུབ་རེིས།
Blocks
This plugin provides 1 block.
- Ask My Content Adds an AI-powered Q&A chat interface that answers from your site’s indexed content.
སྒྲིག་འཇུག
- Upload the plugin files to
/wp-content/plugins/ask-my-content, or install via the WordPress Plugins screen. - Activate the plugin through the ‘Plugins’ screen in WordPress.
- Optionally configure settings in Dashboard -> Ask My Content (floating launcher, indexing posts).
- Run the initial indexing from Dashboard -> Ask My Content by pressing “Start Indexing”, or run
wp amc indexfrom the command line. - Add the chatbot to the website using either:
- Enable floating chat launcher site-wide
- The shortcode:
[ask_my_content] - The Gutenberg block: “Ask My Content”
FAQ
-
Why is indexing stuck?
-
The admin “Start Indexing” button schedules a background task via WordPress cron. If your site uses aggressive caching (e.g., LiteSpeed Cache, WP Super Cache), cached pages may bypass cron triggers, causing indexing to appear stuck at “scheduled…” or “stopping…”.
Solutions:
1. Refresh the settings page — stale state is auto-detected and reset.
2. Usewp amc indexfrom the command line — it runs synchronously and doesn’t depend on cron. See Command Line Usage section. -
Why my indexed token count is low
-
Dynamic WordPress content creation themes and plugins (which may include Elementor) are currently not supported.
You will see persistently low indexed token count, even after indexing is finished, and indexing token count stays low after clicking the Refresh button.
In this case your chat questions will not be answered correctly (“No available content”).
For more info email to: [email protected] -
Does this plugin use my OpenAI API key?
-
By default, the plugin uses the developer’s OpenAI API key on a secure backend (with generous usage limits). This means you don’t need your own OpenAI API key.
-
Will this slow down my site?
-
No. Heavy AI processing (embeddings, search, completions) happens on a separate Node.js backend service.
-
Can I choose what content is indexed?
-
Currently, posts and pages are indexed automatically. Future versions will allow selecting post types, categories, or custom content.
-
Is my data safe?
-
Yes. Content is transmitted securely to the backend.
-
Does this plugin support WordPress Multisite?
-
Not yet. Ask My Content is not currently compatible with WordPress multisite installations, so it must be activated on individual sites (no network-wide support yet).
-
Can I customize the shortcode output?
-
Yes. The
[ask_my_content]shortcode accepts optional attributes such astitle,sessionId,width,height, and the various color tokens (headerBackground,headerTextColor,chatBackground,chatUserBubble,chatBotBubble,inputBackground,inputTextColor). They map to the same style variables used by the block. See the inline comment aboveamc_render_chat_shortcode()inask-my-content.phpfor the current list and defaults.
གདེང་འཇོག
བྱས་རྗེས་འཇོག་མཁན། & གསར་འབྱེད་པ།
“Ask My Content – AI Q&A Chatbot” is open source software. The following people have contributed to this plugin.
བྱས་རྗེས་འཇོག་མཁན།ཁྱེད་ཀྱི་སྐད་ཡིག་ནང་ལ་ “Ask My Content – AI Q&A Chatbot” ཡིག་སྒྱུར་བྱོས།
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
དག་བཅོས་ཉིན་ཐོ།
0.8.3
In the chat response, source links are now clickable.
0.8.2
Added warnings that WP-CLI may be required for indexing, in case WP-Cron is disabled, and similar cases.
0.8.1
Amended WP-CLI command suite (wp amc)
0.8.0
Added optional floating chat launcher that can appear site-wide.
New settings let you enable the floating widget and customize the launcher button label (default: “AI Chat”).
To enable: go to Dashboard -> Ask My Content and check “Enable floating chat launcher site-wide”, then Save Changes.
0.7.1
Minor fixes.
0.7.0
Chat now behaves more like a real conversation: each visitor/admin gets their own session so replies stick to their thread, and the chat window remembers recent history in the same tab when you come back.
0.6.0
Tested with WordPress 6.9
Fixed new Plugin Check complaints.
0.5.1
Improved chat error handling so the browser console surfaces the underlying API failure while the front-end shows a concise, user-friendly message.
Chats now recover automatically when the 12-hour security token expires, so long conversations continue without forcing visitors to reload the page.
0.4.3
Changed the plugin name from “Ask My Content” to “Ask My Content – AI Q&A Chatbot”
0.4.2
Initial release – shortcode, block, automatic content sync, AI-powered answers.



