=== QwryAI ===
Contributors: qwryai
Tags: chatbot, ai chatbot, live chat, customer support, ai
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Embed your QwryAI agent on your WordPress site.

== Description ==

QwryAI lets you build an AI agent for your website to answer questions, support customers, and engage visitors using your own content.

This plugin embeds your [QwryAI](https://qwryai.com) agent directly into your WordPress site. You need a QwryAI account and a configured agent; service availability depends on your plan. Paste your Agent ID and save to display the chat widget site-wide.

== Installation ==

1. Go to Plugins → Add New Plugin, search for "QwryAI", then click Install and Activate (or upload the ZIP via Upload Plugin).
2. Go to Settings → QwryAI Options, paste your Agent ID, and click Save Changes.

== Frequently Asked Questions ==

= How do I add my agent? =

1. Install and activate this plugin on your WordPress website.
2. Copy your Agent ID from QwryAI → your agent → Settings → General.
3. Open Settings → QwryAI Options in your WordPress dashboard.
4. Paste it into the Agent ID field.
5. Click Save Changes.

= Why isn't my widget appearing? =

If your agent uses a domain allow-list, add your WordPress site's domain in QwryAI before testing the widget.

= Can I use another QwryAI environment? =

For local or staging use, define QWRYAI_CHATBOT_APP_URL in wp-config.php before WordPress loads plugins. Set it to your environment's base URL without a trailing slash. The default is https://qwryai.com.

== Screenshots ==

1. QwryAI Options settings page.
2. The QwryAI agent answering visitors on qwryai.com.

== Changelog ==

= 1.0.1 =
* Plugin renamed to QwryAI.

= 1.0.0 =
* Initial release.

== External services ==

This plugin uses qwryai.com to provide the QwryAI chatbot service. The service-related widget loader is fetched from https://qwryai.com/widget/script/{agent_id} only after an administrator saves a valid Agent ID. The Agent ID is included in the loader URL to identify the agent. The widget then loads site-wide on public pages. No request to qwryai.com is made before this opt-in.

Data sent to qwryai.com:

* When the widget loads: the page URL/origin.
* When a visitor chats: the visitor's chat messages and any optional contact details they provide.

This version does not automatically send logged-in WordPress user identities. The external service processes chat interactions under its terms and privacy policy.

Terms of service: https://qwryai.com/terms
Privacy policy: https://qwryai.com/privacy-policy
