=== AI Intake Assistant — AI Chatbot & Lead Capture ===
Contributors: rajutambe
Tags: chatbot, ai chatbot, live chat, lead generation, law firm
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

AI chatbot that answers visitors 24/7, qualifies leads, and emails you a ready-to-call case summary the instant a lead is captured. Bilingual (English/Spanish).

== Description ==

**AI Intake Assistant** adds a 24/7 AI chat widget to your website that works like a tireless intake specialist — it answers visitor questions, qualifies the lead, and emails you a structured, ready-to-call summary the moment contact details are captured. Respond within minutes, when conversion is highest.

Perfect for law firms, agencies, clinics, contractors, and any service business that turns website visitors into booked calls.

See it in action (40-second demo):

https://www.youtube.com/watch?v=nlkAK2nERBI

= Why site owners install it =

* **Answers 24/7** — captures leads while you sleep, on weekends, and after hours.
* **Grounded, no hallucinations** — replies using *only* the firm info you provide. It won't invent services, prices, or promises.
* **Qualifies before it captures** — runs a practice-area-aware intake so the leads that reach your inbox are already screened.
* **Instant "ready-to-call" email** — the moment a name and number are captured, you get a structured case summary so you can call back first and win the client.
* **Bilingual** — chats in the visitor's language, English or Spanish, automatically.
* **Stays in its lane** — refuses to give legal advice.
* **No-code setup** — fill in a few fields, click Save, and the chat bubble appears. Works with any theme.

= Great for =

Personal injury and family law firms, marketing and web agencies, dental and medical clinics, real-estate agents, home-service contractors (HVAC, roofing, plumbing) — anyone who lives or dies by fast lead response.

= External service disclosure =

To generate replies, this plugin sends data to an external AI backend service over HTTPS. By
default it is pre-configured to use the hosted backend operated by the plugin author at
https://ai-intake-backend.onrender.com . You may change this to your own self-hosted backend via
the "Backend API URL" field on the settings page.

What is sent, and when:

* When you click "Save & Sync" on the settings page, the firm details you entered (firm name,
  practice areas, firm info/FAQ, notification email) and your site's generated Site ID are sent
  to the backend's `/register-site` endpoint so it can configure your assistant.
* When a visitor chats on your site, their messages and the running conversation are sent to the
  backend's `/chat` endpoint to generate a reply. Nothing is sent from a visitor's browser until
  you have configured and saved the plugin.

This data is processed by that backend to produce answers and lead summaries. Use of the default
hosted backend is governed by its terms and privacy policy:

* Terms of Service: https://ai-intake-backend.onrender.com/terms
* Privacy Policy: https://ai-intake-backend.onrender.com/privacy

If you point the plugin at your own backend, that data is instead sent only to your server.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/` (or install the .zip via Plugins > Add New > Upload).
2. Activate it through the 'Plugins' menu.
3. Go to Settings > AI Intake Assistant.
4. Enter your firm name, practice areas, firm info/FAQ, and notification email (the Backend API URL is pre-filled).
5. Click "Save & Sync". The chat bubble will appear on your site.

== Frequently Asked Questions ==

= Do I need an OpenAI or API key? =

No. The plugin is pre-configured to use the hosted assistant backend, so it works out of the box. Advanced users can point it at their own self-hosted backend instead.

= Will the chatbot make up answers about my business? =

No. It answers using only the firm info and FAQ you enter on the settings page. If it doesn't know something, it says so instead of inventing an answer.

= What happens when someone becomes a lead? =

The moment a visitor shares their name and contact details, you receive an email with a structured, ready-to-call summary — who they are, what they need, and how they were qualified — so you can call back fast.

= Does it work for businesses other than law firms? =

Yes. It was designed for legal intake, but any service business (agencies, clinics, contractors, real estate) can use it — just describe your services in the firm info field.

= What languages are supported? =

The assistant automatically replies in English or Spanish based on the visitor's language.

= Will it slow down my site? =

No. The widget is a single lightweight script with no external libraries, and nothing loads on a visitor's browser until you've configured the plugin.

= Can I match it to my brand? =

Yes. Set an accent color on the settings page and the chat bubble, header, and buttons update to match.

== Screenshots ==

1. The AI assistant running a live intake on a law-firm site — qualifying the visitor and capturing their name and phone number.
2. The simple admin settings page: enter your firm info, notification email, and accent color, then Save & Sync.
3. The instant "ready-to-call" lead summary emailed to you the moment a lead is captured.
4. The unobtrusive chat bubble on your site, ready to greet every visitor 24/7.

== Changelog ==

= 1.0.0 =
* Initial release: AI intake chat widget, lead qualification, instant email summary, bilingual (English/Spanish).

== Upgrade Notice ==

= 1.0.0 =
Initial release.
