=== ChatDigi – AI Chat and Lead Capture ===
Tags: chatbot, live chat, lead capture, artificial intelligence
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Answer questions with your own OpenAI API key and collect callback requests in WordPress. Use the widget without a ChatDigi account.

== Description ==

ChatDigi Free adds a chat widget with a callback form and an administrator inbox. Add business hours, services and common answers to guide the AI. Visitors can reopen recent messages in the same browser. Callback requests work independently of AI replies. OpenAI bills the site owner's account for AI use.

== Installation ==

1. Install and activate ChatDigi.
2. Open ChatDigi in the WordPress dashboard. Enter your business name and information, select the option to show the widget, and save.
3. To answer questions with AI, add your OpenAI API key, explicitly enable AI replies, and save. You can also define CHATDIGI_OPENAI_API_KEY in wp-config.php.
4. Open the site and send a question or callback request. Review messages in ChatDigi in your dashboard.

== External services ==

When the administrator enables AI and a visitor submits a question, this site's WordPress server sends the question, up to four previous question-and-answer pairs, business name and configured business information to the OpenAI Responses API. On compatible sites with the official OpenAI connector configured for the same key, ChatDigi uses the WordPress AI Client. Other supported sites use the WordPress HTTP API. The site sends the API key directly to OpenAI to authenticate. The request specifies store=false. OpenAI processes requests under its own terms and data policies.

OpenAI service: https://openai.com/api/
Terms: https://openai.com/policies/services-agreement/
Privacy: https://openai.com/policies/privacy-policy/

The standalone plugin does not register installations with ChatDigi, check in, or use a ChatDigi update server. Links for optional Preview and Pro open ChatDigi.ai only when clicked.

== Privacy ==

Opening the widget creates a random identifier in browser local storage so that returning visitors can see recent messages. Questions, AI responses, callback details and timestamps are stored in this site's WordPress database. Site administrators can view them. Callback form submissions are not sent to OpenAI. Information typed into the AI chat itself is included in the AI request. Clearing browser site data ends access to that browser's chat history. Records are retained on deactivation so other ChatDigi editions can use them.

== Frequently Asked Questions ==

= Do I need a ChatDigi account? =
No. Use the callback form on its own or enable AI with your own OpenAI API key. There is no ChatDigi subscription or trial expiry in this edition.

= Can I use Preview or Pro? =
Visit https://chatdigi.ai/ to register for the hosted Preview or choose Pro. On the same WordPress installation, deactivate the current edition and activate the downloaded edition. The editions share the business settings and conversation table. The standalone key is kept separate from hosted service credentials.

== Changelog ==

= 1.0.1 =
Improved inbox navigation, chat history caching and request limiting. Added native WordPress AI Client support for matching OpenAI connections.

= 1.0.0 =
Initial standalone directory edition with optional owner-funded AI and local callback capture.
