=== daita AI Agent ===
Contributors: nicolasbonilla
Tags: woocommerce, ai, chatbot, product search, customer support
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.2
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

The GDPR-ready AI agent for WooCommerce & WordPress: semantic product search, recommendations, checkout and 24/7 support — in one chat & voice widget.

== Description ==

**One AI agent that sells *and* supports — on your own WordPress and WooCommerce store.**

daita adds a conversational AI agent to your site that does what a great salesperson and a great support rep do, together, in one chat: it helps shoppers **find the right product**, **recommends**, **builds the checkout**, **tracks orders and returns**, captures leads and answers questions — 24/7, in your visitor's language, by text, voice and image. EU data residency and GDPR-ready by design.

No code. Install, click once to create your agent, and it goes live on your site.

> Not just a chatbot, and not just a search box — a unified commerce **and** support agent. The shopper can go *"find me a warm jacket → where's my order → return it"* in a single conversation.

= 🛒 For WooCommerce stores =

Connect your store in one click and the agent becomes your best salesperson:

* **Semantic product search** — shoppers search by meaning, in any language. *"something warm and waterproof for the mountains under €150"* returns the right real products, not just keyword matches.
* **Search by photo** — a shopper uploads an image and the agent finds visually similar products from your catalog.
* **Smart recommendations** — personalised suggestions with a one-line reason each.
* **Secure checkout** — the agent assembles a ready-to-pay checkout (single or multi-item); your shopper pays on your store. daita never touches card data.
* **Order status & returns** — *"where is my order?"* and return requests, handled in chat (privacy-gated).
* **Stays fresh automatically** — connecting registers real-time updates, so your catalog is always in sync. Catalog is read via the public WooCommerce Store API (keyless).

= 💬 For any WordPress site =

* **Chat & real-time voice** in one widget.
* **Multilingual** — answers in your visitor's language automatically.
* **Knowledge-grounded** — answers from your own content, never invents.
* **Lead capture & booking** built in.
* **Loads in the footer, deferred** — no theme edits, no speed hit.
* **Fully branded** — your title, first message and accent color.

= 🇪🇺 Built EU-first, privacy-by-design =

* **EU data residency** — your data is stored and searched in the EU by default (database and semantic index hosted in the EU).
* AI processing (for example the language model and voice) may use vetted subprocessors outside the EU under **EU-approved safeguards** (EU–US Data Privacy Framework, Standard Contractual Clauses).
* **GDPR-aligned by design** — a Data Processing Agreement and a subprocessor list are available.
* Your data is **never used to train third-party models**.

= ✨ Why daita =

Search tools only search. Support tools only support. **daita is one agent, one memory** — discovery, selling, support and real actions on your live store, unified. EU data residency and GDPR-aligned throughout. See https://daita-ai.com

= 🚀 One-minute setup =

1. Install & activate the plugin.
2. Click **"Create my agent"** in Settings → daita AI Agent (no Workspace ID to copy).
3. Click **"Connect WooCommerce"** (optional) — the agent now searches your catalog.

That's it — the agent is live on your storefront.

**Pricing — clear and upfront:** this plugin is free and open source. It connects to the daita service (a third party). Creating and testing your agent is free (no card). To go live you start a 14-day free trial on a paid daita plan (from €299/month, excl. VAT): your card is secured by Stripe but not charged during the trial; it then renews monthly and you can cancel anytime. No setup fee. Full pricing: https://daita-ai.com/pricing

== External services ==

This plugin connects your site to **daita**, a third-party AI service, to provide the chat/voice/commerce assistant. This is required for the assistant to work.

* It loads the widget script from `https://daita-ai.com/embed.js`.
* When a visitor opens the chat, the widget sends their messages (and, only if you enable voice, audio) together with your Workspace ID to the daita backend (`https://*.cloudfunctions.net`) to generate replies. It also sends a one-time per-session "heartbeat" (your site's hostname + Workspace ID) so you can confirm the agent is installed.
* If you connect WooCommerce, your site's product catalog is read (via the public WooCommerce Store API) and indexed by daita so the agent can search it; if you enable order lookups, a read-only WooCommerce API key is created so the agent can check order status. Product and order webhooks notify daita of changes.
* No data is sent until a visitor interacts with the widget (the heartbeat aside).

Service provider: daita — https://daita-ai.com
Terms: https://daita-ai.com/terms · Privacy: https://daita-ai.com/privacy

By installing this plugin and creating a workspace you agree to daita's terms and privacy policy. daita stores your data in the EU and is GDPR-aligned; some AI processing may use vetted subprocessors outside the EU under EU-approved safeguards (EU–US Data Privacy Framework, Standard Contractual Clauses). A subprocessor list and Data Processing Agreement are available.

== Installation ==

1. In WordPress, go to **Plugins → Add New**, search for "daita AI Agent", and click **Install** then **Activate**. (Or upload the plugin to `/wp-content/plugins/`.)
2. Go to **Settings → daita AI Agent**.
3. Click **"Create my agent"** (enter your store name + email). Your agent goes live instantly. *(Already have a Workspace ID? Paste it instead.)*
4. Optional: in the **WooCommerce** section, click **"Connect WooCommerce"** to enable product search, recommendations and checkout.

== Frequently Asked Questions ==

= Do I need to write any code? =
No. Click "Create my agent" in Settings → daita AI Agent and the widget loads on every front-end page automatically.

= Does it work with WooCommerce? =
Yes. Click "Connect WooCommerce" and the agent searches your catalog semantically (any language), recommends products, builds secure checkout links, and can check order status. It auto-detects your site and keeps the catalog in sync with real-time updates.

= Do I need a WooCommerce API key? =
No for product search — the catalog is read via the public WooCommerce Store API (keyless). Only if you enable order-status lookups does the plugin create a **read-only** API key for you, automatically.

= Is the plugin free? How much does it cost? =
The plugin is free and open source. The daita service it connects to is a paid subscription with a 14-day free trial. Creating and testing your agent is free (no card). To go live you start the trial on a paid plan (from €299/month, excl. VAT) — your card is secured by Stripe but not charged during the trial, then it renews monthly and you can cancel anytime. No setup fee. Full pricing: https://daita-ai.com/pricing

= Where is my data processed? =
Data at rest is stored in the EU by default (database and semantic search in the EU). Some AI processing — for example the language model and voice transcription — may run via vetted subprocessors outside the EU under EU-approved safeguards (EU–US Data Privacy Framework, Standard Contractual Clauses). Your data is never used to train third-party models. See https://daita-ai.com/trust and https://daita-ai.com/privacy

= Is it GDPR compliant? =
daita stores your data in the EU and is GDPR-aligned by design. A Data Processing Agreement and a subprocessor list are available — see https://daita-ai.com/trust

= Will it slow down my site? =
No. The widget script is enqueued in the footer and deferred, so it loads after your page content.

= Is voice included? =
The widget supports text chat out of the box. Real-time voice is optional and only activates if you enable it for your workspace.

= In which languages does the agent reply? =
Your agent answers in your visitor's language automatically (multilingual by default).

= How do I temporarily hide the assistant? =
Go to Settings → daita AI Agent and uncheck "Show on site", then save. No need to deactivate the plugin.

== Screenshots ==

1. The daita agent on your storefront — it searches your live catalog and recommends real products, in chat and voice, in your visitor's language.
2. Search & discovery insights — see what shoppers search for, what they can't find (demand you're missing), and the revenue each search drives.
3. Unified support analytics — conversations, CSAT, sentiment and AI performance, in one privacy-first, EU-data-resident dashboard.

== Changelog ==

= 1.1.0 =
* New: WooCommerce integration. Connect your store so the agent searches your catalog semantically (any language), recommends products, builds secure checkout links (single or multi-item), and (optionally) checks order status. One click auto-detects your site, can create a read-only API key for order lookups, and registers real-time webhooks so the catalog stays fresh. Catalog read via the public Store API (keyless).
* New: one-click onboarding. Create your daita agent right from the plugin — no Workspace ID to copy/paste. After creating your workspace, WooCommerce connect is one click too.
* EU data residency throughout (GDPR-aligned).

= 1.0.3 =
* Pricing disclosure updated for the new self-service flow (14-day free trial, then monthly; no setup fee).

= 1.0.2 =
* Clearer, upfront pricing disclosure (free plugin + free trial; paid plans to go live), per WordPress.org guidelines.

= 1.0.1 =
* Remove load_plugin_textdomain() (not needed for WordPress.org-hosted plugins since WP 4.6).
* Documentation and readme improvements.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.1.0 =
Adds WooCommerce integration (semantic product search, recommendations, checkout, order status) and one-click onboarding. Existing chat setups are unchanged.

= 1.0.3 =
Updated pricing disclosure (self-service free trial). No configuration changes required.

= 1.0.2 =
Clearer pricing disclosure. No configuration changes required.

= 1.0.1 =
Documentation and compatibility improvements. No configuration changes required.
