=== CampusCopilot - AI Admission Chatbot ===
Contributors:      campuscopilot, altsenseai
Tags:              chatbot, admission, college, ai, lead generation
Requires at least: 5.8
Tested up to:      7.0
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 an AI-powered admission chatbot to your college website in minutes — answers student queries 24×7 and captures leads automatically.

== Description ==

**CampusCopilot** is an AI admission assistant built specifically for Indian colleges and universities. Install this plugin, paste your API key, and your chatbot is live instantly.

= What it does =

* **Answers student questions 24×7** — courses, fees, hostel, scholarships, admission dates and more
* **Learns from your documents** — upload PDFs, Word files, FAQs, and URLs; the AI answers from your own data
* **Captures lead details automatically** — name, phone, email, course interest collected through friendly conversation
* **Shows real-time analytics** — see what students are asking, popular topics, and lead activity
* **Works right away — no developers needed** — just enter your API key and you're live

= Free Trial =

Your chatbot handles the first **3 questions per visitor** without any subscription. Perfect for testing before you commit to a plan.

= Plans =

* **Monthly** — ₹2,999 / month
* **Annual** — ₹1,599 / month (billed annually, save ₹16,800/year)

Start at [campuscopilot.in](https://campuscopilot.in).

= Features =

* AI answers trained on your college's own documents and FAQs
* Lead capture form built into the chat flow
* Branded chatbot name and colors
* Admissions-focused suggested questions
* Mobile-responsive chat widget
* Works with any WordPress theme
* Lightweight — a single external JS file, no jQuery dependency

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/campuscopilot-chatbot/`, or install via **Plugins → Add New** and search for "CampusCopilot".
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Go to **Settings → CampusCopilot** and enter your API key.
   * Don't have an account? [Register free at campuscopilot.in](https://campuscopilot.in/register).
4. Click **Save & Activate** — your chatbot is now live on every page of your website.

== Frequently Asked Questions ==

= Where do I get my API key? =

[Register at campuscopilot.in](https://campuscopilot.in/register). After registering, find your API key on the **Dashboard → Embed** page.

= Will the chatbot work before I subscribe to a paid plan? =

Yes — each visitor can ask up to **3 questions for free**. After that, the widget shows a prompt to contact your institution. This lets you test the full experience before committing.

= How do I train the chatbot with my college's information? =

Log in to your [CampusCopilot dashboard](https://campuscopilot.in/dashboard) and go to **Training Data**. Upload PDFs, Word documents, TXT files, or paste FAQs and URLs. The AI will learn from whatever you provide.

= Does it capture student leads? =

Yes. The chatbot naturally collects the student's name, phone number, email, stream, and course interest during the conversation. All leads appear in your **Dashboard → Leads** page.

= Will it slow down my website? =

No. The widget script loads asynchronously from our CDN and is less than 30 KB. It does not block page rendering.

= Does it work on mobile? =

Yes — the chat widget is fully responsive and works on phones and tablets.

= Can I change the chatbot's name and colors? =

Yes — customise bot name, colors, and greeting message from your CampusCopilot dashboard.

= Which languages does it support? =

The AI responds in the same language the student writes in. It works well with English and most major Indian languages (Hindi, Tamil, Telugu, Kannada, Malayalam, Marathi, etc.).

= Is student data safe? =

All data is stored securely in India. Each college's data is completely isolated — no data is shared between institutions.

= How do I get support? =

Email us at support@campuscopilot.in or visit [campuscopilot.in](https://campuscopilot.in).

== External Services ==

This plugin connects to the CampusCopilot service (campuscopilot.in) to power the AI admission chatbot.

= What the service does =

CampusCopilot is an AI chatbot service built for colleges and universities. The plugin loads the chat widget from CampusCopilot's servers and routes student questions to the AI, which answers using the college's own training data.

= Data sent and when =

* **API key** — sent to `https://campuscopilot.in/api/widget-config` when the WordPress admin saves settings, to verify the key and fetch the bot configuration (bot name, colors, welcome message).
* **Student messages** — sent to `https://campuscopilot.in` when a visitor types a question in the chat widget. This includes the text of the question and an anonymous session ID. No personally identifiable information is sent unless the student voluntarily provides it (e.g. name, phone, email) during the lead capture flow.
* **Widget script** — the file `https://campuscopilot.in/static/widget.js` is loaded on every front-end page of your site to render the chat widget.

= Account required =

A CampusCopilot account and API key are required to use this plugin. Register free at [campuscopilot.in/register](https://campuscopilot.in/register).

= Terms and Privacy =

* Terms of Service: https://campuscopilot.in/terms
* Privacy Policy: https://campuscopilot.in/privacy

== Screenshots ==

1. The chat widget open on a college homepage — students ask questions and get instant AI answers.
2. Lead details captured automatically and shown in the dashboard.
3. Analytics dashboard showing top student questions and daily activity.
4. WordPress Admin → Settings → CampusCopilot — enter your API key and you're live.

== Changelog ==

= 1.0.0 =
* Initial release
* Admin settings page with API key input and live connection status
* Auto-injects widget on all front-end pages
* Setup notice on dashboard and plugins page when API key is missing
* Quick Settings link on the Plugins list page

== Upgrade Notice ==

= 1.0.0 =
Initial release — install and enter your API key to activate.
