=== LeadCallers Widget ===
Contributors: bjornleadcaller
Tags: leadcaller, widget, callback, chat, lead-generation
Requires at least: 5.0
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

Add the LeadCaller communication widget to your WordPress site with one click.

== Description ==

LeadCaller Widget adds a powerful communication widget to your website that lets visitors request callbacks, chat with your team, and send messages — all without leaving your site.

**Features:**

* Callback requests — visitors can request a call from your team
* Live chat — AI-powered chat with customer context
* Contact form — visitors can send messages directly
* Fully configurable — customize colors, text, staff, and opening hours from your LeadCaller dashboard
* Mobile responsive — works on all devices
* Lightweight — single script, no impact on page speed

**How it works:**

1. Install and activate this plugin
2. The widget automatically appears on your site
3. Configure everything from your [LeadCaller dashboard](https://app.leadcaller.com)

No configuration needed in WordPress — the widget identifies your site automatically.

This plugin relies on an external service to function. See the "External services" section below for full details.

**Requirements:**

* An active [LeadCaller](https://www.leadcaller.com) account
* Your domain must be registered in your LeadCaller dashboard

== Installation ==

1. Go to Plugins → Add New in your WordPress admin
2. Search for "LeadCaller"
3. Click "Install Now"
4. Click "Activate"
5. Done! The widget is now active on your site

Or install manually:

1. Download the plugin zip file
2. Go to Plugins → Add New → Upload Plugin
3. Upload the zip file and click "Install Now"
4. Activate the plugin

== Frequently Asked Questions ==

= How do I configure the widget? =

Log in to your [LeadCaller dashboard](https://app.leadcaller.com) to configure colors, text, staff members, opening hours, and all other settings.

= Do I need an API key? =

No. The widget automatically identifies your site by its domain. Just make sure your domain is registered in your LeadCaller account.

= Will this slow down my site? =

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

= Can I customize the widget appearance? =

Yes. All design settings (colors, logo, text, position) are managed from your LeadCaller dashboard.

= The widget is not showing up. What should I do? =

Make sure your domain is registered and the widget is set to "Active" in your LeadCaller dashboard. If the issue persists, contact support at info@leadcaller.com.

== External services ==

This plugin connects to the LeadCaller service to provide a communication widget (callback requests, live chat, and contact forms) on your WordPress site. The widget cannot function without this external service.

= LeadCaller Widget Service =

* **What it is:** A communication widget service provided by LeadCaller (https://www.leadcaller.com) that enables callback, chat, and messaging features on your website.
* **What data is sent:** When the widget loads, it sends the current page URL and domain to identify your site. A session ID and a persistent visitor ID (stored in the browser via localStorage) are sent to maintain the conversation state. When a visitor interacts with the widget (e.g., requests a callback, sends a chat message, or submits a form), the data they enter (such as name, phone number, email, and message) is sent to the service.
* **When data is sent:** The widget script is loaded from `https://widget.leadcaller.com/communication-widget.js` on every page load. Page URL and visitor IDs are sent when the widget initializes. Personal data is only sent when the visitor actively submits a form, requests a callback, or sends a chat message.
* **Service provider:** LeadCaller, https://www.leadcaller.com
* **Terms of Service:** https://www.leadcaller.com/se/villkor
* **Privacy Policy:** https://www.leadcaller.com/se/integritetspolicy

== Changelog ==

= 1.0.0 =
* Initial release
* Adds LeadCaller communication widget script to all pages

== Upgrade Notice ==

= 1.0.0 =
Initial release of the LeadCaller Widget plugin.
