=== Storebird AI Chat for WooCommerce ===
Contributors: velocityplugins
Tags: woocommerce, chatbot, woocommerce chatbot, customer support, ai chatbot
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.3.8
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

WooCommerce AI chatbot that syncs your product catalog. Instant answers, order tracking, lead capture & human handoff.

== Description ==

**Storebird is an AI-powered chatbot built specifically for WooCommerce stores.** It syncs your entire product catalog, answers customer questions instantly, tracks orders, captures leads, and provides automated customer support -- 24/7, in any language.

Unlike generic chatbot plugins, Storebird **understands your WooCommerce data** -- products, prices, stock levels, categories, variations, and order status. It gives real, accurate answers -- not scripted responses.

= The AI Chatbot That Actually Knows Your Products =

When a customer asks "Do you have any red dresses under $50?" or "Is this product available in large?", Storebird searches your live WooCommerce catalog and responds with the right products, prices, and direct links.

**No training required.** Just sync your products and the AI chatbot is ready.

= Key Features =

* **WooCommerce Product Search** -- AI-powered product recommendations from your live catalog
* **Order Tracking** -- Customers check order status directly in chat (no more "Where is my order?" emails)
* **Lead Capture** -- Collect name and email before, during, or after conversations
* **Human Handoff** -- Seamless transfer to live chat with push notifications
* **Multi-Language** -- Automatic language detection and response in 50+ languages
* **Custom Branding** -- Match colors, logos, and position to your store design
* **Knowledge Base** -- Train AI on your shipping, returns, and store policies
* **Analytics Dashboard** -- Track conversations, satisfaction, revenue attribution, and time saved
* **WPML Compatible** -- Full multi-language product and page sync
* **Lightweight** -- Under 15KB, zero impact on Core Web Vitals

= Why WooCommerce Store Owners Choose Storebird =

* **Save 10+ hours per week** on repetitive customer questions
* **Increase conversions** with instant AI product recommendations
* **Capture more leads** with configurable lead capture forms
* **Reduce cart abandonment** with proactive chat assistance
* **Cut support costs** by automating 60-80% of customer inquiries
* **Support customers 24/7** in any language -- no extra staff needed

= How It Works =

1. Install the plugin from WordPress.org
2. Connect your WooCommerce store with one click
3. Products sync automatically -- the AI learns your entire catalog
4. Your chatbot is live and helping customers in minutes

= Deep WooCommerce Integration =

Storebird is not a generic WordPress chatbot with WooCommerce bolted on. It was built from the ground up as an ecommerce chatbot for WordPress:

* **Automatic product sync** -- Your entire catalog including variations, prices, images, and stock status
* **Real-time updates** -- Product changes reflected in the chatbot immediately
* **Order lookup** -- Customers check status with order number or email
* **Category-aware recommendations** -- AI understands your product taxonomy
* **Revenue attribution** -- Track which chat conversations lead to purchases
* **Compatible with all major shipping plugins** -- PostNL, DHL, UPS, FedEx, SendCloud, MyParcel, and more

= Perfect For =

* WooCommerce stores with 50-50,000+ products
* Stores receiving repetitive product questions
* International stores needing multi-language support
* Store owners who want to automate customer support
* eCommerce businesses looking to reduce support costs

= Plans & Pricing =

* **Essential** -- 750 conversations/month, 1 website, perfect for small stores
* **Pro** -- 5,000 conversations/month, custom branding, lead capture, human handoff. **14-day free trial included.**
* **Scale** -- 15,000 conversations/month, 3 websites, API access, for growing businesses

[View pricing](https://storebird.ai/#pricing)

== Installation ==

1. Go to **Plugins > Add New** in your WordPress admin
2. Search for **"Storebird"**
3. Click **Install Now** and then **Activate**
4. If you created your website on storebird.ai first, the plugin connects automatically -- no extra steps needed!
5. Otherwise, click **"Connect to Storebird"** in the plugin settings to link your store
6. Your store is connected -- sync your products and you're live!

**Alternative: Connect from the Storebird dashboard**
Already have a Storebird account? Go to your dashboard, click "Connect Plugin", and the plugin will connect automatically.

== External Services ==

This plugin connects to the Storebird API service to provide AI-powered chat functionality.

= Storebird API =

This plugin sends data to and receives data from the Storebird API (https://storebird.ai/api) for the following purposes:

**Data sent:**
* Product information (names, prices, descriptions, images) - when syncing products
* Chat messages from customers - when customers use the chat widget
* Visitor information (page URL, session ID) - for chat context
* WordPress and WooCommerce version info - during connection setup

**When data is sent:**
* On initial plugin connection (automatic or manual)
* On product sync (manual trigger in admin)
* When products are created/updated in WooCommerce
* When customers send messages through the chat widget

**Service links:**
* Service website: [https://storebird.ai](https://storebird.ai)
* Terms of Service: [https://storebird.ai/terms](https://storebird.ai/terms)
* Privacy Policy: [https://storebird.ai/privacy](https://storebird.ai/privacy)

== Frequently Asked Questions ==

= Do I need a Storebird account? =

Yes. The plugin is free, but you need a Storebird subscription to power the AI chat. The Pro plan includes a 14-day free trial so you can try it risk-free.

= How much does Storebird cost? =

Plans start at $39/month (Essential). The Pro plan at $89/month includes a 14-day free trial and unlocks custom branding, lead capture, and human handoff. The Scale plan at $199/month supports up to 3 websites. See all plans at [storebird.ai](https://storebird.ai/#pricing).

= Can Storebird answer questions about my specific products? =

Yes! Storebird syncs your entire WooCommerce product catalog -- including names, descriptions, prices, images, stock status, categories, and variations. It uses this data to give accurate, product-specific answers.

= Does Storebird support multiple languages? =

Yes. Storebird automatically detects and responds in your customer's language. You can also set a preferred language in the dashboard.

= Can customers track their orders through the chatbot? =

Yes. Customers can ask about their order status using their order number or email address, and Storebird will show them real-time tracking information from WooCommerce. This is a WooCommerce order tracking chatbot that eliminates repetitive "where is my order?" support emails.

= Can I hand off a conversation to a human? =

Yes (Pro plan and above). When the AI can't fully resolve an issue, it can hand off to you or your team. You'll get a push notification and can respond in real-time from the Storebird dashboard. This gives you the best of both worlds: an AI customer support plugin with woocommerce live chat when you need it.

= Can I customize the look of the chat widget? =

Yes (Pro plan and above). You can customize header colors, message colors, button colors, logos, widget position, and more from the Storebird dashboard to match your brand.

= Will Storebird slow down my website? =

No. The chat widget loads asynchronously and weighs under 15KB. It has zero impact on your Core Web Vitals or page load speed.

= How is Storebird different from Tidio, Crisp, or other live chat plugins? =

Storebird is built specifically for WooCommerce. Unlike generic live chat plugins, Storebird syncs your entire product catalog and understands your products, prices, categories, and stock levels. When a customer asks a product question, Storebird gives accurate answers from your real WooCommerce data -- not scripted responses. It also includes WooCommerce order tracking, revenue attribution, and category-aware product recommendations out of the box.

= Does Storebird work with WPML or multilingual WooCommerce stores? =

Yes. Storebird has full WPML compatibility. It syncs all language versions of your products and pages, detects the current language on the frontend, and responds to customers in their language. The AI automatically handles multi-language conversations without any additional configuration.

= How does the AI chatbot learn about my products? =

When you connect Storebird to your WooCommerce store, it automatically syncs your entire product catalog -- including product names, descriptions, prices, images, stock status, categories, and variations. The sync happens automatically when you add or update products. You can also add custom knowledge base pages to train the AI on your store policies, shipping info, return process, or any other topic.

= Can Storebird help reduce cart abandonment? =

Yes. Storebird proactively engages customers who may have questions blocking their purchase. By providing instant answers about products, shipping, returns, and availability, the WooCommerce AI chatbot removes friction from the buying process. The lead capture feature also lets you collect email addresses so you can follow up with customers who don't complete their purchase.

= Which shipping and tracking plugins does Storebird support? =

Storebird works with all major WooCommerce shipping and tracking plugins, including WooCommerce Shipment Tracking, Advanced Shipment Tracking (AST), YITH Order Tracking, AfterShip, SendCloud, PostNL, MyParcel, DHL for WooCommerce, and ShipStation. Customers can check their order status and tracking information directly in the chat.

= Is Storebird GDPR compliant? =

Yes. Storebird supports Google Consent Mode v2 for compliant analytics tracking. Customer data is processed securely through the Storebird API. You can review our privacy policy at [storebird.ai/privacy](https://storebird.ai/privacy) and our terms of service at [storebird.ai/terms](https://storebird.ai/terms).

== Screenshots ==

1. Chat widget on your WooCommerce store -- customers get instant product answers
2. WordPress admin settings -- connect with one click, sync products easily
3. Storebird dashboard -- view conversations, analytics, and manage your chatbot
4. Custom branding -- match the widget to your store's design
5. Lead capture -- collect customer information during conversations

== Changelog ==

= 1.3.8 - April 2026 =
* **Feature:** File attachments in chat -- visitors and support agents can now share images and documents directly inside the conversation
* **Improvement:** Refreshed widget asset versioning so UI updates load reliably for all visitors

= 1.3.7 - March 2026 =
* **Performance:** Reduced memory usage by 40% during product sync
* **Fix:** Resolved memory exhaustion errors on sites with 128MB PHP memory limits
* **Improvement:** More efficient handling of product variations during sync
* **Improvement:** Added explicit memory cleanup after processing each product

= 1.3.6 - March 2026 =
* **Fix:** WPML product sync now correctly syncs only default language products
* **Fix:** Resolved issue where all language variants were being synced instead of default language only

= 1.3.5 - March 2026 =
* **Improvement:** Minor update to verify plugin update system is working

= 1.3.4 - February 2026 =
* **Fix:** WPML product sync -- all default language products now sync correctly instead of only the current admin language
* **Improvement:** Added language filtering to prevent translated duplicates from syncing
* **Improvement:** Language detection for each product during bulk sync

= 1.3.3 - February 2026 =
* **Feature:** Automatic revenue attribution -- completed WooCommerce orders are matched to recent chat conversations
* **Feature:** Reports order total, billing email, and line items to Storebird for analytics

= 1.3.2 - February 2026 =
* **Feature:** WPML multi-language support -- syncs all language versions of products and pages
* **Feature:** Sends language code with product and page sync for language-aware chatbot responses
* **Feature:** Widget detects current WPML language and passes it to the chat API
* **Feature:** Google Consent Mode v2 integration for compliant analytics tracking

= 1.3.1 - February 2026 =
* **Fix:** Improved auto-sync reliability -- clears stale sync locks before starting
* **Fix:** Resolved "Connect first" message showing when already connected
* **Improvement:** Improved auto-sync timing after plugin connection

= 1.3.0 - February 2026 =
* **Feature:** Automatic product sync after plugin connection -- products sync immediately without manual trigger
* **Improvement:** Improved connection reliability and error handling

= 1.2.0 - February 2026 =
* **Feature:** One-click connect flow -- plugin redirects back to Storebird dashboard after automatic connection
* **Improvement:** Faster auto-connect after activation (30-second retry instead of 5-minute cooldown)
* **Improvement:** Improved onboarding: single "Connect" button on dashboard detects plugin status automatically

= 1.1.1 - February 2026 =
* **Fix:** Improved auto-connect reliability -- plugin now retries connection periodically while unconnected
* **Fix:** Resolved issue where auto-connect only triggered once after activation

= 1.1.0 - February 2026 =
* **Feature:** Auto-connect -- plugin automatically connects to Storebird after activation when a website is set up on the dashboard
* **Improvement:** Improved onboarding flow for faster setup

= 1.0.3 - February 2026 =
* **Fix:** Fixed "Go to Dashboard" button not working in Help section
* **Improvement:** Expanded plugin description with detailed features and FAQ
* **Improvement:** Improved installation instructions

= 1.0.2 - February 2026 =
* **Fix:** Fixed sync modal styling (CSS variables now work correctly in modal overlay)
* **Fix:** Fixed spinner animation conflict between CSS and SVG spinners

= 1.0.1 - February 2026 =
* **Fix:** Fixed admin page styling (complete CSS overhaul)
* **Improvement:** Connect flow now redirects back to Storebird dashboard after successful connection
* **Improvement:** Improved login redirect token preservation for connect flow

= 1.0.0 - February 2026 =
* **Feature:** Initial release
* **Feature:** AI-powered chat functionality
* **Feature:** Product and order sync
* **Feature:** One-click connect from Storebird dashboard and from the plugin itself
* **Feature:** Connect flow preserves tokens through WordPress login redirects
* **Feature:** API credentials hidden behind Advanced toggle -- no manual key copying needed
* **Feature:** Customizable branding
* **Feature:** Human handoff support

== Upgrade Notice ==

= 1.3.7 =
Performance: Memory optimization fix -- critical for sites experiencing "Allowed memory size exhausted" errors during product sync.

= 1.3.6 =
Fix: Critical fix for WPML sites -- product sync now correctly syncs all default language products.

= 1.3.5 =
Minor update to verify plugin update system.

= 1.3.4 =
Fix: WPML product sync -- all default language products now sync correctly regardless of admin language.

= 1.3.3 =
Feature: Automatic revenue attribution -- completed orders are matched to chat conversations for analytics.

= 1.3.2 =
Feature: WPML multi-language support -- products and pages sync with language codes for language-aware chatbot responses.

= 1.3.1 =
Fix: Improved auto-sync reliability after plugin connection.

= 1.3.0 =
Feature: Products now sync automatically after plugin connection -- no manual sync needed.

= 1.2.0 =
Feature: One-click connect -- plugin now redirects back to Storebird after automatic connection. Faster auto-connect with 30-second retry.

= 1.1.1 =
Fix: Improved auto-connect reliability -- works regardless of whether plugin or dashboard website was set up first.

= 1.1.0 =
Feature: New auto-connect feature -- plugin connects automatically after activation. No manual setup step needed.

= 1.0.3 =
Fix: Fixed dashboard button in Help section. Expanded plugin description.

= 1.0.2 =
Fix: Bug fixes for admin styling and sync modal.
