=== RevoplyAI – AI Chatbot & Live Chat (Arabic & English) ===
Contributors: revoplyai
Tags: chatbot, live chat, ai chatbot, arabic, customer support
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Free AI chatbot and live chat for your site. Answers visitors from your own business information in Arabic and English, and hands off to your team.

== Description ==

RevoplyAI puts a chat window on every page of your site. An AI assistant answers visitors from the information you give it (prices, policies, opening hours, services), and passes the conversation to your team when a person is needed.

* **Arabic and English.** The panel switches fully to right to left for Arabic, and the assistant replies in the visitor's language, Gulf, Egyptian and Levantine phrasing included.
* **Answers from your knowledge base.** When the answer is not there, it says so and hands the conversation to your team instead of guessing.
* **One inbox.** Website chats arrive in the same RevoplyAI inbox as your WhatsApp, Instagram, Messenger and Telegram conversations.
* **Light on your pages.** A small deferred script and one settings request per page; the chat itself loads only when a visitor opens it.
* **Free plan.** The widget is included on the free plan, with no credit card.

This plugin only adds the widget to your site. The assistant, its knowledge base and the conversations are managed in your RevoplyAI account at app.revoplyai.com.

= Free plan and branding =

On the free plan the widget shows a small "Powered by RevoplyAI" link under the open chat window. It comes from the RevoplyAI service, not from this plugin, and any paid RevoplyAI plan removes it.

== Installation ==

1. Install and activate the plugin.
2. Create a free RevoplyAI account (Settings → RevoplyAI Chat has a link), add your business information, and set up the Web Widget channel.
3. In RevoplyAI, open Channels → Web Widget → Settings and copy the script.
4. In WordPress, go to Settings → RevoplyAI Chat, paste the script (or just the channel ID) and save.

The chat button now appears on every page of your site.

== Frequently Asked Questions ==

= Do I need a RevoplyAI account? =

Yes. The plugin connects your site to your RevoplyAI widget. The account is free to create.

= Does it slow my site down? =

The script is loaded with `defer`, so it does not block your page. The chat panel is built only when a visitor opens it.

= Can I change the colours and greeting? =

Yes, in your RevoplyAI dashboard under the Web Widget settings: bot name, greeting, brand colour, suggested questions, auto-open and allowed domains. The plugin settings only cover the language and the side of the screen.

= Does it work with page builders and caching plugins? =

Yes. The widget is added through the standard WordPress script queue, so it works with any theme or builder that outputs the site footer.

== External services ==

This plugin connects your site to RevoplyAI (https://revoplyai.com/), an AI customer-service service, to show the chat widget. It does nothing until you enter a channel ID.

* On every public page view, the visitor's browser loads the widget script from https://widget.revoplyai.com/embed.js and requests the widget's display settings (colour, bot name, greeting) from https://api.revoplyai.com. As with any web request, this sends the visitor's IP address and browser details to those servers.
* When a visitor opens the chat, the chat window loads from https://widget.revoplyai.com. When they send a message, the message, any name or email they choose to enter in the chat, and the page address are sent to https://api.revoplyai.com so the assistant can reply and your team can see the conversation.

RevoplyAI terms: https://revoplyai.com/terms-conditions/
RevoplyAI privacy policy: https://revoplyai.com/privacy-policy/

== Screenshots ==

1. The chat widget on a site, answering in Arabic.
2. Settings → RevoplyAI Chat.

== Changelog ==

= 1.0.0 =
* First release: adds the RevoplyAI chat widget to every page, with language and position settings.
