
Vachr Web Search Connector for Muse AI connects WordPress to the Meta Model API (https://api.meta.ai/v1). It adds Muse AI as a provider to the WordPress AI Client and the native Settings > Connectors screen, so one API key serves the whole site.
web_search tool and returns the source links the model found.[vachr_ai_muse] shortcode for an optional visitor chat.POST /wp-json/vachr-ai-muse/v1/chat endpoint for external applications.vachr_ai_muse_query() for other plugins and themes on the same site.Web search is performed by Meta’s server-side tool, not by WordPress and not by a crawler included in this plugin. It is on by default and can be turned off in Settings > Vachr Web Search Connector for Muse AI (this switch applies to every request, including those made by other plugins). It can also be disabled for a single request:
"web_search": false.false as the third argument.When web search is used, Muse AI may run one or more searches before it answers. This can increase latency and API cost. Source links are returned only when the provider includes them (at most 10 are shown).
The model list is read from your key’s /v1/models response, and only text models are offered (image, voice and segmentation models are hidden). The default is muse-ember-1.0, the lowest-cost reasoning model. You can enter any model ID your key may use, for example muse-spark-1.3 or muse-wonder-1.0.
If the API accepts your key but returns no models, the connection is refused with an explanation; the plugin never substitutes a made-up model list. Enable a text model for the key at https://dev.meta.ai.
Czech, French, German, Italian, Japanese, Korean, Polish, Portuguese (Brazil), Russian, Simplified Chinese, Spanish, Thai and Turkish. The plugin follows the language of your site or of the logged-in user. Translations were prepared by machine; corrections are welcome.
This plugin connects to the Meta Model API (https://api.meta.ai/v1), operated by Meta Platforms, Inc. The service provides the Muse AI models that generate the answers and the optional web search. Without it the plugin cannot work.
Data sent and when:
https://api.meta.ai/v1/models with the API key to list the available models.https://api.meta.ai/v1/models. The key is not saved.Your API key is sent only from the WordPress server to Meta, never to visitors. Create and manage keys at https://dev.meta.ai.
The plugin does not store questions, responses, source links or conversations in the WordPress database. It does not use analytics or tracking.
If the site owner enables the WordPress AI feature AI Request Logging, requests made through this connector appear in its central AI Request Logs according to that feature’s own settings.
Before enabling public chat, inform visitors about the data transfer and establish a lawful basis appropriate to your jurisdiction. Do not submit sensitive personal data.
Send a JSON request to your own WordPress site. Never place the integration token in browser JavaScript.
POST https://your-site.example/wp-json/vachr-ai-muse/v1/chat
Headers: Authorization: Bearer YOUR_INTEGRATION_TOKEN and Content-Type: application/json
curl -X POST https://your-site.example/wp-json/vachr-ai-muse/v1/chat -H "Authorization: Bearer YOUR_INTEGRATION_TOKEN" -H "Content-Type: application/json" -d '{"message":"What changed in WordPress this week?","web_search":true}'
Request fields:
message (string, required): the question, up to 12,000 characters.web_search (boolean, optional): use web search; defaults to true. Ignored when web search is switched off in the plugin settings.Response: { "text": "...", "sources": [ { "title": "...", "url": "..." } ], "usage": { ... } }
$result = vachr_ai_muse_query( 'Summarise today\'s WordPress news.', '', true );
Arguments: the question, an optional model ID (empty uses the saved model), and whether to use web search. It returns an array with text, sources and usage, or a WP_Error.
Muse AI is registered as the provider muse, so other plugins can use it with wp_ai_client_prompt()->using_provider( 'muse' ). Request web search with the web_search custom option on the model configuration.
vachr_ai_muse_request_timeout (float, default 600.0): request timeout in seconds.vachr_ai_muse_web_search_enabled (bool): override whether web search is allowed.