=== SIQ AI Chat ===
Contributors: siqtechnologies
Tags: chatbot, ai, chat, openai, customer support
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 2.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

An AI chat assistant that answers visitors from your own website content. Bring your own AI key and teach the bot by talking to it.

== Description ==

SIQ AI Chat adds a chat button to your site. Visitors ask questions and the assistant answers using only your published pages and posts, plus facts you teach it. If the answer is not there it says it is not sure and shows your phone or email instead of guessing.

**Bring your own AI key.** Pick OpenAI, Anthropic (Claude), Google Gemini, Groq, a model running on your own computer (Ollama or LM Studio), or any OpenAI compatible service, and paste your own API key. Questions go from your site straight to the service you chose. They do not pass through SIQ Technologies.

**Teach your bot by talking to it.** In Settings, SIQ AI Chat, open the "Teach your bot" tab. Use Test to ask the bot a question exactly as a visitor would. Use Teach to type something like "We are closed on Sundays" and the plugin turns it into a fact the bot remembers. No technical setup, no uploading, no vector databases.

* Works with any theme, no coding
* Reads your pages and posts automatically and updates when you save
* Add facts in plain language, up to 20 in the free version
* Choose your own AI service and model
* Test connection button that tells you in plain words if the key, model or address is wrong
* Monthly spending limit with a running estimate, so there is no surprise bill
* Missed questions list: see what the bot could not answer and teach it in one click
* Limits how many questions one visitor can ask per hour, to protect your AI bill
* Stores no conversations and no visitor details

= Privacy =

The chat never asks visitors for a name, email address or phone number. Any email address or phone number a visitor types is removed on your site before anything is sent, and the chat window tells visitors not to share personal details. A visitor could still type other personal details as free text. The plugin stores no conversations. Your AI service has its own privacy terms, so read them before you turn the chat on.

= External services =

This plugin sends data to the AI service you choose on the settings page. Nothing is sent until you save an API key and turn the chat on. When a visitor sends a message (or you use the Teach your bot tab), the plugin sends the recent messages of that chat, your business name, your phone and email as entered in settings, and the pieces of your published pages and facts that best match the question. Only the service you selected receives this.

* OpenAI: https://api.openai.com . Terms: https://openai.com/policies/terms-of-use . Privacy: https://openai.com/policies/privacy-policy
* Anthropic: https://api.anthropic.com . Terms: https://www.anthropic.com/legal/commercial-terms . Privacy: https://www.anthropic.com/legal/privacy
* Google Gemini: https://generativelanguage.googleapis.com . Terms: https://ai.google.dev/gemini-api/terms . Privacy: https://policies.google.com/privacy
* Groq: https://api.groq.com . Terms: https://groq.com/terms-of-use . Privacy: https://groq.com/privacy-policy
* My own computer: an address you type in yourself (for example Ollama or LM Studio on your own PC, reached through a secure tunnel). The data goes only to that address.
* Other: any OpenAI compatible address you type in yourself, governed by that service's own terms.

SIQ Technologies does not receive or store any of this data.

== Installation ==

1. Upload the plugin folder to /wp-content/plugins/, or install it from the Plugins screen.
2. Activate it.
3. Go to Settings, SIQ AI Chat. Choose your AI service, paste your API key, fill in your business details and tick "Show the chat button on my site".
4. Open the "Teach your bot" tab to test it and add facts.

== Frequently Asked Questions ==

= Do I need an API key? =
Yes. You create one in the dashboard of the AI service you prefer and paste it in. Set a spending limit in that dashboard. The plugin also limits questions per visitor per hour.

= Does it make up answers? =
It is told to answer only from your site content and your facts. If it does not know, it says so and shows your contact details.

= Does it collect my visitors' details? =
No. The chat never asks for names, emails or phone numbers, removes emails and phone numbers from messages before sending, and stores nothing about visitors.

= Can I run the AI on my own computer? =
Yes. Choose "My own PC", install Ollama or LM Studio, and enter the address. If your website is on web hosting, the address must be one your site can reach from the internet, such as a secure tunnel to your PC. The PC has to stay on and online, and answers can be slow on an older computer.

= How do I avoid a surprise bill? =
Set a monthly spending limit on the Setup tab. The plugin counts what the AI service reports and stops answering when your limit is reached. The count is an estimate, so also set a limit in your AI service's dashboard.

= Where is my API key stored? =
In your site's database, in the plugin settings. It is never shown on the page or sent anywhere except to the AI service you chose.

= Is there a paid version? =
A separate Pro add-on is planned with document uploads, WooCommerce products, lead capture stored on your own site, saved conversations and reports. The free plugin is complete on its own.

== Changelog ==

= 2.1.0 =
* New: Test connection button with plain language errors and a model list.
* New: monthly spending limit and a running usage estimate.
* New: Missed questions tab, with one click Teach an answer.
* New: My own PC (Ollama or LM Studio) as an AI service.

= 2.0.0 =
* New: bring your own AI key (OpenAI, Anthropic, Gemini, Groq or any OpenAI compatible service).
* New: "Teach your bot" tab to test the bot and add facts in plain language.
* New: the bot searches your pages and posts for the pieces that match each question.
