=== Liyobot – AI Chat Widget ===
Contributors: liyobot
Tags: chatbot, ai chatbot, live chat, customer support, lead generation
Requires at least: 5.5
Tested up to: 7.1
Requires PHP: 7.2
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add your Liyobot AI chatbot to your WordPress site in seconds. Paste the embed code — no coding, no theme editing.

== Description ==

Liyobot is an AI chatbot for your website. It answers your visitors' questions 24/7, trained on your own content, and captures leads while you sleep.

This plugin adds the Liyobot chat widget to your WordPress site without touching any code. Create a chatbot at [liyobot.com](https://liyobot.com), copy its embed code, paste it into the plugin settings, and you're live.

**Features**

* One-field setup — just paste the embed code from your dashboard.
* Loads the widget on every front-end page automatically.
* Colours, greeting, logo and pre-chat fields are all controlled from your Liyobot dashboard.
* Includes the built-in accessibility toolbar.
* A `liyobot_should_display` filter for developers who want to hide it on specific pages.
* Lightweight — adds a single script tag, nothing else.

A Liyobot account is required. See [liyobot.com](https://liyobot.com) for pricing and a 30-day free trial.

== External services ==

This plugin connects to Liyobot, a third-party AI chatbot service, which is what powers the chat widget on your site. The plugin itself adds no chatbot functionality on its own — it loads the Liyobot widget.

What it does and when: on the front end of pages where the widget is enabled, the visitor's browser loads the widget script from Liyobot (`https://api.liyobot.com/static/widget.js`). The widget then contacts Liyobot's servers to fetch your chatbot's configuration and to send and receive chat messages during a conversation.

What is sent: your chatbot's ID, the messages a visitor types in the chat, and standard request information their browser provides (such as IP address and user agent). Nothing is sent unless a page with the widget loads and, for messages, unless a visitor uses the chat.

This service is provided by Liyobot (Code-Innovation). By using this plugin you agree to Liyobot's terms and privacy policy:

* Terms of Service: https://liyobot.com/terms
* Privacy Policy: https://liyobot.com/privacy

== Installation ==

1. In your WordPress admin, go to **Plugins → Add New → Upload Plugin** and upload the `liyobot.zip` file, then click **Activate**.
2. Go to **Settings → Liyobot**.
3. Paste the **embed code** (the whole `<script>` snippet from your chatbot's "Embed" tab) and make sure **Show widget** is ticked. The plugin extracts the Bot ID for you.
4. Save. The chat widget now appears on your site.

**Important:** In your Liyobot dashboard, set this WordPress site's domain as the chatbot's allowed domain, or the widget will refuse to load here.

== Frequently Asked Questions ==

= Where do I find my embed code? =

Log in at liyobot.com, open your chatbot, and open the **Embed** tab. Copy the whole `<script ...></script>` snippet and paste it into the plugin.

= The widget isn't showing on my site =

Check three things: (1) the embed code was pasted correctly, (2) "Show widget" is ticked, and (3) your WordPress site's domain is set as the chatbot's allowed domain in the Liyobot dashboard. Also clear any caching plugin.

= Can I hide the widget on certain pages? =

Yes. Developers can use the `liyobot_should_display` filter. For example, to hide it on the checkout page:

`add_filter( 'liyobot_should_display', function ( $show ) { return is_page( 'checkout' ) ? false : $show; } );`

= Does this send my data anywhere? =

The plugin only adds Liyobot's widget script to your pages. All chat handling happens on Liyobot's servers. See liyobot.com for the privacy policy.

== Changelog ==

= 1.0.1 =
* Fix: the settings page now displays the embed-code field.

= 1.0.0 =
* Initial release.
