=== AI Chat Bot ===
Contributors: idealwebdesignlk
Donate link: https://idealwebdesign.lk
Tags: chatbot, chatgpt, openai, support
Requires at least: 4.7
Tested up to: 6.8
Stable tag: 1.0
Requires PHP: 7.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
AI Chat Bot is a lightweight WordPress plugin that adds an AI-powered chatbot to your site. It uses OpenAI’s ChatGPT API to provide intelligent.

---

## 🧠 What It Does

- Scans your page content to provide **relevant answers**.
- Displays a **floating chat bubble** on the bottom-left corner of every page.
- Loads **context-aware responses** using the OpenAI API.
- Offers simple **admin controls and customization options**.
- Easy to embed anywhere with a shortcode.

---

## ✨ Features

- 🔐 Admin panel to set your OpenAI API Key
- 🤖 Uses **GPT-3.5 Turbo** for fast, intelligent responses
- 📄 Automatically loads page/post content for context
- 💬 Floating chatbot bubble (bottom-left)
- 🧩 Shortcode support: `[chatgpt_bot]`
- 🎨 Upload or link a custom logo above the chat input
- 🧼 Modular codebase (separate JS and CSS files for easy edits)
- ⚙️ Clean and developer-friendly setup

---

## 🚀 Installation

1. **Upload** the plugin folder to:  
   `/wp-content/plugins/chatgpt-tour-bot`
2. **Activate** the plugin through the WordPress Admin dashboard under **Plugins**.
3. Go to **Settings → ChatGPT Bot** to enter your OpenAI API Key.
4. (Optional) Upload a custom logo or image URL to brand your chatbot.
5. Add the shortcode `[chatgpt_bot]` anywhere on a post or page.

---

## ⚠️ Requirements

- WordPress 5.0 or higher
- PHP 7.4 or higher
- A valid OpenAI API key from [https://platform.openai.com/account/api-keys](https://platform.openai.com/account/api-keys)

---

## 💡 Usage Tips

- Use meaningful, structured content in your pages for best chatbot results.
- Avoid hiding critical info in images or JavaScript-only areas — the chatbot reads visible text.
- Great for use on:
  - Tour operator sites
  - Travel agencies
  - FAQ and knowledgebase pages
  - Local business contact & service info pages

---

## 🔧 Customization

You can customize the chatbot appearance by:

- Replacing the default avatar/logo above the input box
- Editing `chatgpt.css` and `chatgpt.js` in the plugin directory
- Styling via your theme’s custom CSS

---

## 🧑‍💻 Author

**Developed by:** Idealwebdesign.lk
Based in Sri Lanka  
Skilled in WordPress, PHP, HTML/CSS, jQuery, MySQL, JavaScript  

---

## 📬 Support

This is an open project — feel free to submit issues, improvements, or questions.  
Future updates may include multi-language support (via WPML), advanced context settings, and response logging.

---

## 📝 License

This plugin is licensed under the [MIT License](https://opensource.org/licenses/MIT).

---

