=== AnswerX AI Search & Chat ===
Contributors: motherxai1, emtiazzahid
Tags: AI, search, chatbot, automation, productivity
Requires at least: 5.8
Tested up to: 7.1
Stable tag: 1.1.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Enhance Search, Automate Responses & Improve Engagement with AI-powered assistance for WordPress.

== Description ==

AnswerX AI Search & Chat connects your WordPress site to MotherX AI, which answers your visitors' questions using your own content — in search results, in a chat widget, or both.

The plugin does one job: it connects the site and loads the widgets. Everything else is configured in your MotherX dashboard, where you can see the result immediately and change it without touching WordPress:

✅ Widget design — colours, logo, position, size, wording and language
✅ Knowledge sources — which pages get crawled, how often, and what to exclude
✅ Conversation logs and leads
✅ Analytics on AI interactions and performance
✅ Plan, usage and team members

To learn more about AnswerX and explore its features, visit https://www.motherx.ai/.

== Third-Party Service Disclosure ==

This plugin requires an account with MotherX AI, a third-party service operated by GetOnNet AS, and does not function without one.

Once connected, the plugin:

- sends your API key, site URL and sitemap URL to https://api.motherx.ai/ to register your site and read back your company name, plan and crawl sources;
- loads a widget script from https://app.motherx.ai/widget.js on the front end of your site, which fetches its own configuration and sends visitors' questions to MotherX in order to answer them;
- allows MotherX to crawl the public pages of your site to build the knowledge base that answers those questions.

Service terms: https://www.motherx.ai/terms
Privacy policy: https://www.motherx.ai/privacy

Uninstalling the plugin removes only its WordPress settings. Your MotherX account, knowledge sources and conversation history are untouched and remain manageable from the dashboard.

== How to Use the Plugin ==

1. Install and activate the plugin.
2. Go to **AnswerX** in the admin menu.
3. Paste the API key from your MotherX dashboard (Settings → API keys) and click **Connect**.

That's it. The chat bubble and the search modal appear on your site, and your site is registered for crawling automatically.

Don't have an account? The connect screen links straight to sign-up.

🚀 Using the Shortcode

To place a search field inside your content, use the shortcode:

`[answerx_search]`

You can place this in pages, posts, sidebars, or any widgetized area, and more than once on the same page.

🔧 Supported Attributes:

-   class – Add a custom class to the container
-   style – Inline styles for the container (width, alignment, margins)

`[answerx_search class="my-container" style="max-width: 480px; margin: 0 auto;"]`

Placeholder text, button label, colours, size and language all come from your MotherX dashboard, so the field matches the rest of your AI experience without being styled twice.

For backwards compatibility the shortcode still accepts `input_class`, `button_class`, `input_style`, `button_style`, `placeholder` and `button_text`, but as of 1.1.0 they are ignored — those are dashboard settings now.

🎨 Using Elementor

Drag the **AnswerX AI Search** widget onto any page. It offers alignment and width controls; everything else comes from the dashboard.

== Frequently Asked Questions ==

= How do I connect my WordPress site to motherx.ai? =

Install and activate the plugin, open **AnswerX** in the admin menu, paste your API key and click Connect. The plugin validates the key with MotherX and registers your site for crawling in one step.

= Where do I change colours, wording, language or the crawl schedule? =

In the MotherX dashboard. The plugin intentionally does not duplicate those settings: the widget reads its configuration from your account at runtime, so a change in the dashboard takes effect on your site without a plugin update or a cache clear.

= How do I hide the chat widget? =

Pause it in the MotherX dashboard, under Widget settings. As of 1.1.0 this replaces the plugin's own show/hide toggle, so the setting applies wherever the widget is embedded, not just on this site.

= How do I point the plugin at a staging environment? =

Add one line to `wp-config.php`:

`define( 'ANSWERX_ENV', 'staging' );`

Accepted values are `production` (the default), `staging` and `local`. Individual URLs can be overridden with the `ANSWERX_API_URL`, `ANSWERX_WIDGET_SCRIPT_URL` and `ANSWERX_APP_URL` constants, or the matching `answerx_api_url`, `answerx_widget_script_url` and `answerx_app_url` filters — but the API and the widget script must always come from the same environment.

= What kind of data is processed by motherx.ai? =

motherx.ai only processes the data explicitly provided through the plugin, such as blog posts, pages, and product listings, plus the questions your visitors ask the widget. For more details, please refer to our [Privacy Policy](https://www.motherx.ai/privacy).

= Is my data secure? =

Yes. motherx.ai employs advanced encryption protocols and secure servers to protect your data. For additional details, please review our security policies.

= Is there a free plan? =

New accounts start on a trial. Sign up at [motherx.ai](https://www.motherx.ai/) — as of 1.1.0 accounts are created in the dashboard rather than through the plugin.

= What happens if I delete the plugin? =

Only its WordPress settings are removed. Your MotherX account, knowledge sources and conversation history are unaffected.

== Screenshots ==

1. Connect your WordPress site with your MotherX API key.
2. Connection status, plan and crawl source, once connected.

== Changelog ==

= 1.1.0 =

**Settings moved to the MotherX dashboard.** The plugin is now a connector: connect the site, and configure everything else where you can see it.

- Single settings screen: paste an API key, connect. The trial signup, plan, chat appearance and crawling log tabs are gone; all four are in the dashboard.
- Chat widget visibility is now the dashboard's widget pause setting, not a local option.
- The site is registered for crawling automatically on connect, and checks for an existing source first so it cannot be added twice. The old "Start crawling" button sent a recurrence type that only PRO plans accept, so it failed on trial and starter plans.
- The `[answerx_search]` shortcode no longer makes an API call while rendering your page — it did so on every page view — and no longer ships its own input, button or stylesheet. MotherX renders and styles the field, so it matches your dashboard settings.
- Elementor widget rewritten: its scripts and styles were 404ing, it had no controls, and it duplicated the shortcode's markup. It now shares the shortcode's code path and offers alignment and width controls.
- Environment is set with `ANSWERX_ENV` in `wp-config.php`. The old `.env` support never worked in a released build.
- Security: the settings screen no longer puts your API key or a nonce into the page, all form handlers check both a nonce and the `manage_options` capability, and the widget configuration is no longer written to MotherX from the browser.
- Added `uninstall.php`, which removes the plugin's settings and nothing else.
- Removed roughly 200 KB of unused assets. The plugin now ships no JavaScript and no images of its own.

= 1.0.10 =

- chat widget border radius option added

= 1.0.9 =

- readme updated
- chatbot logo uploading removed from plugin, can be upload from admin panel

= 1.0.8 =

- allow trial user motherx dashboard access

= 1.0.7 =

- push missing vendor (auto deployment).
- api key format fix (phpcs error).

= 1.0.6 =

- JS library conflict resolved.

= 1.0.5 =

- Trial plan improvements.

= 1.0.4 =

- UI improvements and bug fixes.

= 1.0.3 =

- Color picker hex support on chat appearance.

= 1.0.2 =

- MotherX Dashboard URL add

= 1.0.1 =

- Fix Shortcode [answerx_search] render issue.

= 1.0.0 =

- Initial release with support for AnswerX.ai integration.
- Added shortcode [answerx_search] for easy integration.

== Upgrade Notice ==

= 1.1.0 =
Settings moved to the MotherX dashboard; the plugin now only handles the connection. Your API key stays connected. If you hid the chat widget in the plugin, pause it in the dashboard instead. The [answerx_search] shortcode's appearance attributes are now ignored; the dashboard controls them.

= 1.0.0 =
First release of the motherx.ai WordPress plugin, including shortcode functionality.

📞 Contact Us: support@motherx.ai | Address: Oscars gate 3B, 0350 Oslo
