=== Aivastark Widget === Contributors: aivastark Tags: chat, chatbot, ai, support, livechat Requires at least: 5.8 Tested up to: 7.0 Requires PHP: 7.4 Stable tag: 2.3.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html White-label AI support chatbot for your WordPress site. Paste one key, get a fully branded AI widget — and customize it without leaving wp-admin. == Description == **Aivastark Widget** adds the Aivastark AI support chat widget to your WordPress site in seconds. Trained on your own knowledge base, it answers visitor questions 24/7 and hands off to a human agent when needed. **One field. That's it.** Paste your Widget Key from the Aivastark dashboard and the widget is live site-wide. You can also use the `[aivastark key="..."]` shortcode on individual pages. **Customize without leaving WordPress.** Click **Connect** once to securely link your site to your Aivastark project, then open **Aivastark → Customize Widget** to edit the widget's content, colors, AI behavior, and home screen — the full editor, right inside wp-admin. No second login each time. = Features = * AI chat trained on your knowledge base (PDFs, URLs, documents) * Fully white-label — your brand, your colors, your logo * Lead capture (trigger by message count, keyword, idle time, or manual) * Live agent handoff via realtime notifications * In-WordPress widget customization via a secure one-click connection (Content, Style, AI, Designer) * Or customize from the Aivastark dashboard — your choice * Domain whitelisting enforced server-side * Conversation and rate limits enforced server-side * Markdown-formatted responses * Lightweight — the widget is loaded asynchronously and never blocks page rendering = Get a Widget Key = You need a free Aivastark account. Sign up at [aivastark.com](https://www.aivastark.com), create a project, and copy the Widget Key from the **Integrations** page. = Third-party service notice = This plugin is a client for the Aivastark hosted service. To function, it loads the widget script from `https://www.aivastark.com/widget.js` and chat conversations are processed by the Aivastark backend. Full disclosure of every endpoint and the data sent is in the **External services** section below. By installing this plugin you agree to the Aivastark [Terms of Service](https://www.aivastark.com/terms) and [Privacy Policy](https://www.aivastark.com/privacy). == Installation == 1. Upload the plugin `.zip` file to `/wp-content/plugins/` or install it via **Plugins → Add New → Upload Plugin**. 2. Activate **Aivastark Widget** through the **Plugins** menu in WordPress. 3. Go to **Settings → Aivastark Widget**. 4. Paste your Widget Key and click **Save**. 5. The widget is now live on every front-end page. To use it on a single page instead, leave the Widget Key field empty and paste the shortcode `[aivastark key="YOUR_WIDGET_KEY"]` where you want the widget to load. == Frequently Asked Questions == = Do I need any other settings, API keys, or URLs? = No. Version 2.0 collapsed the old four-field config into a single Widget Key. Everything else (API endpoint, project settings, theme) is resolved automatically from the key. = Where do I get a Widget Key? = Create a free account at [aivastark.com](https://www.aivastark.com), create a project, and copy the Widget Key from the **Integrations** page in your dashboard. = Is the widget served from WordPress or a CDN? = The widget script is served from the Aivastark CDN (`https://www.aivastark.com/widget.js`) by default. You can self-host by filtering `aivastark_widget_script_url`. = Can I self-host the widget script? = Yes. Add this to your theme or a custom plugin: add_filter( 'aivastark_widget_script_url', function () { return 'https://your-cdn.com/widget.js'; } ); = Does the widget slow down my pages? = No. The widget script is registered with WordPress, loaded in the footer, and never blocks rendering. Paint and interaction metrics are not affected. = What data is sent to Aivastark? = Only conversation messages typed by visitors who open the widget, plus the Widget Key (to identify your project) and the visitor's session ID. No page content, no cookies on the host site, and no visitor tracking beyond what is needed for the chat session itself. See the **External services** section for the full breakdown. = Does this plugin work with caching plugins? = Yes. The widget config is inlined per-request; caching plugins that preserve `