Ask My Content – AI Search Chatbot
Add an AI search assistant to your WordPress site. Ask My Content indexes your pages, posts, products, events, and custom post types so visitors can ask questions and get answers from your actual site content, with source links.
Turn your WordPress pages, posts, products, events, and archives into an AI-powered answer engine. Visitors ask questions; Ask My Content answers using your actual site content and shows sources.
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.
Demo website
Try the live demo: Ask My Content live demo
Click “AI Chat by Pavel!” in the bottom right corner.
Key Features * Retrieval Augmented Generation (RAG) – answers are grounded in your actual site content. * Uses AI for embeddings and completions (via a secure Node.js backend). * Change tracking – edited pages/posts can be auto re-indexed immediately, or queued for manual re-indexing. * 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. * Website Admin can see Questions and Answers history, and related details.
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. AI generates an answer based on that content.
After you edit content, enable Automatically re-index modified pages, posts, and content to sync changes in the background, or re-run indexing manually from Dashboard -> Ask My Content (or via wp amc index).
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 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] [--include-other-post-types] [--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 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/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.
