=== bidi Chat ===
Contributors: bidi
Tags: chat, chatbot, ai assistant, live chat, arabic
Requires at least: 6.3
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Put your bidi assistant's chat on every page of your site. Paste your assistant key, press Save, and you are done.

== Description ==

bidi is an AI assistant for businesses in the UAE that answers your visitors in English and in Arabic, from what you taught it. This plugin puts its chat circle on every page of your WordPress site without touching your theme.

* One field: your assistant key, under Settings > bidi Chat.
* The chat loads asynchronously in the footer, so your pages do not wait for it.
* Nothing is added to your database except the key, and deleting the plugin removes it.
* The settings screen is in English and Arabic.

You need a bidi assistant first. Create one at https://www.bidii.ai/ and find its key in your dashboard under Settings > Channels > Install.

== Installation ==

1. In your WordPress admin, open Plugins > Add New Plugin > Upload Plugin, choose bidi-chat.zip and press Install Now.
2. Press Activate.
3. Open Settings > bidi Chat, paste your assistant key and press Save key.
4. In your bidi dashboard, under Settings > Channels > Website chat, allow this site's address. Your assistant answers only on the websites you allow.

== Frequently Asked Questions ==

= Where do I find my assistant key? =

In your bidi dashboard, under Settings > Channels > Install. It starts with pk_.

= The chat does not appear. What should I check? =

That the key is saved under Settings > bidi Chat, that this site's address is allowed in your bidi dashboard (with and without www if your site opens both ways), and that a caching plugin is not serving an old copy of your pages.

= Does it slow my site down? =

The plugin adds one small script, loaded asynchronously in the footer. The chat itself loads after your page.

= Can I load the chat from my own test server? =

Yes. Add define( 'BIDI_CHAT_LOADER_URL', 'https://your-test-server/widget.js' ); to wp-config.php, or use the bidi_chat_loader_url filter.

== External services ==

This plugin connects your site to bidi, the service that runs your assistant. It is needed to show the chat.

On every front-end page it loads the script https://www.bidii.ai/widget.js with your assistant key. The script then loads the chat from bidi's servers. When a visitor opens the chat and writes, what they write, the page they are on and their browser's language are sent to bidi so the assistant can answer. Nothing is sent while the key is empty.

bidi's terms: https://www.bidii.ai/terms.html
bidi's privacy policy: https://www.bidii.ai/privacy.html

== Screenshots ==

1. Settings > bidi Chat, with the assistant key saved.

== Changelog ==

= 1.0.0 =
* First release: the settings page, the loader on every page, English and Arabic.

== Upgrade Notice ==

= 1.0.0 =
First release.
