=== Famysync Chat Widget ===
Contributors: famysync
Tags: chatbot, ai chat, live chat, support, customer support
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.2
Stable tag: 1.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add the Famysync AI support widget (chat + voice, 24 languages) to your WordPress site. Paste your Tenant ID and you're done.

== Description ==

Famysync is an AI customer-support assistant that answers your visitors from your own content — in chat and voice, across 24 languages. This plugin adds the official Famysync widget to every page of your site.

No code required: install, go to **Settings → Famysync**, paste your **Tenant ID**, and save. The widget appears on your site's front end immediately.

**Features**

* One-field setup — paste your Tenant ID from the Famysync dashboard.
* Optional Chatbot ID to pick a specific bot on a multi-bot account.
* Optional Language pin (e.g. `ja-JP`); leave empty to auto-detect from `<html lang>`, the URL locale and the browser.
* Option to hide the floating bubble and open the chat from your own buttons (`Famysync.open()`).
* Loads asynchronously, so it never blocks your page from rendering.
* Privacy-friendly: the plugin only prints the official Famysync widget script tag; no third-party code runs on your server.
* Developer filters: `famysync_widget_config` (edit the init config) and `famysync_widget_src` (self-host the bundle).

You need a Famysync account. Find your Tenant ID and Chatbot ID at https://app.famysync.com/dashboard/embed.

== Installation ==

1. Download `famysync-chat-widget.zip` from https://famysync.com/wordpress/.
2. In WordPress admin go to **Plugins → Add New → Upload Plugin**, choose the zip, then **Activate**.
3. Go to **Settings → Famysync** and paste your **Tenant ID** from the Famysync dashboard → Install page. Chatbot ID, Language and the hide-bubble option are optional.
4. Visit your site — the chat bubble appears on every page.

== Frequently Asked Questions ==

= Where do I find my Tenant ID and Chatbot ID? =

In your Famysync dashboard under **Install** (https://app.famysync.com/dashboard/embed). The Chatbot ID is optional — leave it blank to use your default bot.

= Can I hide the floating bubble? =

Yes. Tick "Hide the floating bubble" in the settings, then open the chat from your own button with `Famysync.open()`.

= My site switches language without reloading the page. =

Language is resolved once when the widget starts. If your switcher changes locale via AJAX (e.g. TranslatePress), call `Famysync.setLanguage('ja-JP')` from your theme on each switch.

= Does it slow down my site? =

No. The widget script loads asynchronously and does not block page rendering.

= I installed the old "Famysync Chat Widget" plugin. Do I need to re-enter my IDs? =

No. This plugin reads the settings the old plugin saved. Deactivate and delete the old plugin after activating this one.

== Changelog ==

= 1.2.0 =
* Rebranded to Famysync; widget now loads from https://cdn.famysync.com/famysync-widget.iife.js and calls `Famysync.init()`.
* New "Hide the floating bubble" option (`hideButton`).
* "Settings" link on the Plugins list row; settings are removed on uninstall.
* Reads settings saved by the 1.1.0 Famysync-branded plugin, so upgrades need no re-entry.

= 1.1.0 =
* Language option with auto-detect; `widget_config` and `widget_src` filters.

= 1.0.0 =
* Initial release: Tenant ID / Chatbot ID settings and async widget injection in the footer.
