Leírás
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.
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. Content is converted into embeddings (vector representations).
4. When a visitor asks a question, the chatbot retrieves the most relevant content snippets from your indexed pages.
5. 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] [--force]wp amc statuswp amc stop
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.
Képernyőmentések
Blokkok
This plugin provides 1 block.
- Ask My Content Adds an AI-powered Q&A chat interface that answers from your site’s indexed content.
Telepítés
- 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”
GYIK
-
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.
Vélemények
Nincsenek értékelések erről a bővítményről.
Közreműködők és fejlesztők
“Ask My Content – AI Q&A Chatbot” egy nyílt forráskódú szoftver. A bővítményhez a következő személyek járultak hozzá:
Közreműködők“Ask My Content – AI Q&A Chatbot” fordítása a saját nyelvünkre.
Érdekeltek vagyunk a fejlesztésben?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Változási napló
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.



