=== YakWP — AI Chatbot for WordPress ===
Contributors: howtomakebest
Tags: chatbot, ai, gemini, openai, live chat, lead generation, rag
Requires at least: 5.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.5.0
License: GPLv2 or later

Self-hosted AI chatbot for WordPress. RAG from your content, conversation memory, lead capture, n8n integration. Bring your own API key — no subscription fees.

== Description ==

YakWP is a self-hosted, privacy-first AI chatbot plugin that uses Google Gemini or OpenAI to answer visitor questions about your website content.

**Features:**

* **Bring Your Own API Key** — Use Google Gemini (free tier: 500 requests/day) or OpenAI. No subscription, no per-conversation fees.
* **RAG (Retrieval-Augmented Generation)** — Automatically searches your WordPress posts and pages for relevant content to include in AI responses.
* **Conversation Memory** — Remembers the last 10 messages in each conversation for context-aware responses.
* **Lead Capture** — Detects buying intent and human handoff requests, asks for email, and sends you a notification.
* **Quick Reply Buttons** — Clickable suggested questions after each response.
* **Helpful Rating** — Thumbs up/down after each bot response for quality monitoring.
* **Dark Mode** — Automatically switches based on visitor's system preference.
* **n8n Integration** — Forward messages to n8n webhook for CRM, email, or ticketing automation.
* **Analytics Dashboard** — Track total messages, sessions, leads, response time, and satisfaction rating.
* **Conversation Log** — View recent conversations in the admin panel.
* **Rate Limiting** — Prevents API cost overruns.
* **Customizable** — Color, position, welcome message, quick replies, and system prompt.

**Privacy:**

Your API key is stored in the WordPress database and never exposed to visitors. All AI processing happens server-side. Conversation logs are stored in your own database.

== Installation ==

1. Upload `yakwp.zip` to Plugins > Add New > Upload Plugin
2. Activate the plugin
3. Go to YakWP in the admin menu
4. Enter your Google Gemini API key (get one free at https://aistudio.google.com/apikey)
5. Customize your system prompt, colors, and quick replies
6. The chat widget appears on your site automatically

== Frequently Asked Questions ==

= Is there a monthly fee? =

No. The plugin is a one-time purchase. You bring your own API key. Google Gemini has a free tier with 500 requests per day.

= Does it work with OpenAI? =

Yes. Select OpenAI as your provider and enter your OpenAI API key.

= Can I customize what the bot knows? =

Yes. The system prompt field lets you describe your business, products, services, and pricing. RAG also automatically pulls relevant content from your WordPress posts.

= Can I connect it to my CRM? =

Yes. Enable n8n integration and enter your n8n webhook URL. Messages will be forwarded to n8n for CRM, email, or ticketing automation.

== Changelog ==

= 1.5.0 =
* Rebrand: AI Chatbot for WordPress → YakWP
* New brand identity, domain, and license key prefix
* License key format: YAK-XXXX-XXXX-XXXX-XXXX
* Updated license server to yakwp.com
* All internal references updated (database tables, REST routes, CSS classes)

= 1.4.1 =
* License key system with Lemon Squeezy integration
* Chatbot modes (sales, explain, support, custom)
* Premium feature gating
* Enhanced spam protection
* GDPR notice option

= 1.0.0 =
* Initial release
* Gemini and OpenAI support
* RAG from WordPress content
* Conversation memory
* Lead capture with email notifications
* Quick reply buttons
* Dark mode support
* n8n webhook integration
* Analytics dashboard
* Conversation logging