=== AI Chat for Elementor ===
Contributors: alextselegidis
Tags: ai, elementor, page builder, ai assistant, landing page
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Edit Elementor pages, build whole pages and add custom widgets by chatting with AI inside the editor.

== Description ==

AI Chat for Elementor adds a chat panel to the Elementor editor. Describe what you want in your own words - "make this hero section darker and tighten the spacing", "add a three-column feature row", "rewrite this text shorter" - and the change appears on the page you have open.

**This plugin needs a paid subscription to the AI Chat for Elementor service.** The AI runs on our servers, not on your site, so the plugin does nothing on its own. There is no free plan, but you can try it once with 50,000 free tokens (no card). See "Plans and pricing" below.

= What you can do =

* **Edit by describing it.** Change text, colours, spacing, fonts, layouts and images on the whole page or on the element you have selected.
* **Build a whole page from one description.** Start from the AI Chat home screen, from "Create page with AI" on the Pages screen, or in the editor. You first get a short plan of the sections; nothing is built until you click "Build it".
* **Start from ideas.** The home screen has ready-made ideas for landing pages, portfolios, about pages, pricing sections, FAQs and more.
* **Show, don't tell.** Attach a screenshot or a sketch and ask for a section that looks like it.
* **Custom widgets without code.** Ask for something Elementor does not have, like a team slider or an image reveal menu. AI Chat writes it as an "AI Snippet" (HTML, CSS and JavaScript, never PHP) that starts in test mode, visible only to administrators, until you make it live.
* **Site tasks.** Create pages, add them to a menu, set the homepage, update the site title, set Elementor global colours and fonts, or install a plugin or theme from WordPress.org. Every site task is shown as a card first and runs only when you click it.
* **Write in your language.** Prompts and generated text work in most languages.

= Safe to try =

* Every change goes through Elementor's own history, so Ctrl+Z or the Undo button in the chat reverses it.
* A change that would replace the whole page layout asks first.
* Your work is saved automatically after each AI change: drafts stay drafts, and published pages get an autosave rather than a new public version.
* Sample photos are placeholders. Replace them with your own before publishing.

= Plans and pricing =

* **Standard** - 1,000,000 tokens a month.
* **Pro** - 3,500,000 tokens a month.
* **Top-ups** for when you run out before the monthly refill.
* **Free tokens** - 50,000 tokens once, to try it before paying. One claim per person, email address and site; standard model only.

Current prices are shown on the plugin's Billing screen before you pay. Prices exclude VAT, which is added at checkout. Payment is handled by Stripe. Cancel any time from the plugin's settings screen.

= Independence notice =

Elementor is a trademark of Elementor Ltd. AI Chat for Elementor is an independent product, developed and operated by Alex Tselegidis. It is not affiliated with, endorsed by, or sponsored by Elementor Ltd.

= AI notice =

Responses are produced by a large language model and can be wrong, incomplete, or unsuitable for your site. Review generated content before publishing it, and do not present it as human-authored where that matters. You are responsible for what you publish.

== External services ==

This plugin sends data to services outside your site. Nothing is sent until an administrator clicks "Agree and continue" on the AI Chat screen, and switching it back off stops all requests.

**1. AI Chat for Elementor service (operated by us) - https://wpelementorai.com**

Used for licensing, quota accounting, billing support and AI request handling. Sent:

* your site address, and a one-way SHA-256 hash of your site URL and WordPress authentication keys - this identifies the installation;
* your licence key;
* when you send a prompt: the prompt text, the title of the page being edited, that page's structure and content, and any images you attach;
* when a prompt is about the site (pages, menus, plugins, themes, snippets): your page titles, menu names, installed plugins and themes with their status, and your site title, tagline and homepage setting;
* when you contact support or report an error: your email address, WordPress display name and message;
* your IP address, for rate limiting and fraud prevention.

Terms: https://wpelementorai.com/legal/terms - Privacy Policy: https://wpelementorai.com/legal/privacy

**2. OpenAI - https://openai.com**

Our sub-processor for generating responses. Your prompt, the page content and any attached images are forwarded to OpenAI (United States) by our server. Your site never contacts OpenAI directly, and no OpenAI API key is stored on your site. Your prompts and page content are not used to train AI models.

Terms: https://openai.com/policies/row-terms-of-use - Privacy: https://openai.com/policies/row-privacy-policy

**3. Stripe - https://stripe.com**

Payment processing when you subscribe or buy a top-up. Checkout is hosted by Stripe; your email address, billing address, VAT ID and payment details are handled by Stripe. Card numbers never reach our server or your site.

Terms: https://stripe.com/legal/ssa - Privacy: https://stripe.com/privacy

**4. Lorem Picsum - https://picsum.photos (in generated content only)**

When the AI adds an image it does not have, it inserts a free sample photo from `https://picsum.photos/` (photos from Unsplash). That URL ends up in your page, so visitors' browsers request it from that third party until you replace it with your own image. Nothing is sent there by the plugin itself. Replace sample photos before publishing if you do not want that request on your pages.

Privacy: https://picsum.photos/ - Unsplash licence: https://unsplash.com/license

**5. WordPress.org (only when you approve an install)**

When you approve a "install plugin" or "install theme" card, WordPress downloads it from WordPress.org exactly as Plugins → Add New does.

= Retention =

Prompt excerpts (first 160 characters) and page titles kept for billing support are deleted after 30 days. Usage records are deleted after 24 months. Support messages are deleted after 24 months. Invoices and accounting records are kept as long as tax law requires. You can request a copy of your data, or its erasure, from the plugin's settings screen.

== Installation ==

1. Install and activate Elementor (version 3 or later), then this plugin.
2. Go to AI Chat in the admin menu, read the short data notice and click "Agree and continue".
3. Click "Try it free" to get 50,000 free tokens by email (paste the key and click Activate), or choose a plan.
4. Open any page with Elementor and click the AI Chat button at the bottom right, or start from AI Chat → Home.

== Frequently Asked Questions ==

= Can I try it for free? =

Yes, once. Click "Try it free" on the AI Chat page and we email you a licence key with 50,000 free tokens, enough for a few edits. No card needed. Free tokens are limited to one claim per person, email address and site, do not refill, and run on our standard model only.

= Does it work with the free version of Elementor? =

Yes. Elementor Pro is not required.

= Can it create a whole page from scratch? =

Yes. Use AI Chat → Home, or "Create page with AI" on the Pages screen. You describe the page, approve a short plan, and the sections are built into a new draft.

= What is a token, and how many edits do I get? =

Tokens measure how much text the AI reads and writes. A small edit on a short page uses a few thousand; a whole new page uses more. The settings screen and the chat panel show how many tokens you have left.

= What are AI Snippets? =

Custom widgets and site-wide effects written as HTML, CSS and JavaScript. They start in test mode, so only administrators see them, and you make them live when you are happy. Only users allowed to add unfiltered HTML can save them. No PHP is ever stored or run.

= Can the AI break my page? =

It can change it in ways you did not want. Every change goes through the editor's undo history, layout-replacing changes ask for confirmation, and your last saved version remains in the revision history. Keep backups as you would for any editing session.

= Is my content used to train AI? =

No. Prompts and page content are used only to answer your request.

= How do I cancel? =

Click "Cancel subscription" on the AI Chat settings page. AI Chat keeps working until the end of the period you paid for, then stops, and you are not charged again. You can undo it before then with "Keep my subscription".

= Can I get a refund? =

Within 14 days of a purchase, email support@wpelementorai.com with your licence key and we refund the unused part. Unused top-ups are normally refunded in full.

= Can I use my own OpenAI API key? =

No. Requests are proxied through our service, which is what meters your quota.

= What happens if I withdraw consent? =

The plugin stops contacting our service immediately and AI editing stops working. Your licence and remaining quota are untouched, so re-enabling restores the feature.

= Is the plugin free software? =

Yes - the plugin code is GPL v2 or later, and you may study, modify and redistribute it. A subscription pays for access to the hosted service, not for the code.

== Screenshots ==

1. Describe a change in the chat panel and it is applied to the page, with one-click undo.
2. Building a new page: approve a short plan before anything is built.
3. A section from a page built from one description.
4. The AI Chat home screen with ideas for pages, sections and custom widgets.
5. "Create page with AI" on the Pages screen.
6. AI Snippets: custom widgets that start in test mode.
7. Usage, plan and recent activity on the settings screen.

== Changelog ==

= 1.0.3 =
* New elements match your site's colours and fonts, and only use widgets your Elementor version has.

= 1.0.2 =
* Try it free with 50,000 tokens, receipts in your purchase history, usage shown in tokens, and tighter security.

= 1.0.1 =
* More tokens in every plan and top-up, at the same prices.

= 1.0.0 =
* First release.

== Upgrade Notice ==

= 1.0.3 =
New elements match your site's colours and fonts, and only use widgets your Elementor version has.

= 1.0.2 =
Try it free with 50,000 tokens. Updated terms: you will be asked to accept them once.

= 1.0.1 =
More tokens in every plan and top-up, at the same prices.

= 1.0.0 =
First release.
