=== Sam Widget ===
Contributors: alphaaino
Tags: chatbot, ai, customer support, live chat, widget
Requires at least: 5.8
Tested up to: 6.7
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 Sam AI chatbot to your WordPress site with one paste. Sign up at viasam.app, drop in your API token, done.

== Description ==

Sam is an AI-powered chatbot for your website. This plugin adds the Sam widget to every page of your WordPress site.

**What it does:**

* Adds a single `<script>` tag to your site footer that loads the Sam widget from cdn.viasam.app
* That's it. There are no other settings, dashboards, or features in this plugin.

All widget configuration (welcome message, colours, working hours, conversation history, lead capture, knowledge base) is done in your Sam dashboard at viasam.app.

**Requirements:**

* A Sam account at https://viasam.app (free trial available)
* Your Sam API token (found on any widget's page in the Sam dashboard)

**Privacy & data:**

This plugin does NOT collect or transmit any data on its own. The Sam widget itself, once loaded, sends visitor messages to the Sam API for AI responses. See https://viasam.app/privacy for details.

== Installation ==

1. Upload the plugin .zip via Plugins → Add New → Upload Plugin, or extract to /wp-content/plugins/sam-widget/
2. Activate "Sam Widget" via the Plugins screen
3. Go to Settings → Sam Widget
4. Paste your API token (from the Sam dashboard)
5. Save changes — the widget will appear on your site immediately

== Frequently Asked Questions ==

= Where do I find my API token? =

Sign in to your Sam dashboard at https://viasam.app, open any widget, and copy the API key shown in the install section. See https://docs.viasam.app/install/wordpress for screenshots.

= Does this work with WordPress multisite? =

Yes — the API token is set per-site, so each site in your network can use its own widget.

= Will the widget appear in the WordPress admin? =

No. The widget only loads on public-facing pages, never inside wp-admin.

= How do I customise the widget appearance? =

All branding, colours, position, welcome message, and behaviour settings live in your Sam dashboard. This plugin only injects the script — the dashboard controls everything else.

= How do I uninstall completely? =

Delete the plugin via the Plugins screen. The API token is removed automatically on uninstall.

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
First release.
