=== AI Form Builder for Gravity Forms Lite ===
Contributors: sorenpro
Donate link: https://www.sorenpro.ir/gf-ai-builder.html
Tags: gravity forms, ai, artificial intelligence, form builder, gpt, openai, form automation, chatgpt, ai form builder
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.2.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Build Gravity Forms automatically with AI. Just describe your form in plain text, and AI creates it with all fields, labels, and placeholders in seconds.

== Description ==
**AI Form Builder for Gravity Forms Lite** is a powerful WordPress plugin that automatically creates Gravity Forms using artificial intelligence. Simply describe the form you need in plain text, and the AI will build it for you with all the necessary fields, labels, and placeholders in seconds.

**How it works:**
1. Describe your form (e.g., "Contact form with name, email, and message")
2. Click "Build Form with AI"
3. The AI creates a complete Gravity Form in seconds
4. Edit and customize the form in Gravity Forms as needed

**Features:**
- 🤖 AI-powered form generation using OpenAI GPT
- 🌐 Bilingual support (English & Persian/Farsi)
- 🎯 Smart field type detection (Text, Email, Phone, Select, Checkbox, Date, etc.)
- 📝 Automatic placeholder and label generation
- 🔌 Compatible with OpenAI and other OpenAI-compatible APIs (GapGPT, CafeAPI, etc.)
- 🌍 Full RTL support for Persian language
- 🎁 Free and unlimited: Build unlimited forms without any license
- ⚙️ Demo mode for testing without API key
-  Secure API key storage on your own server
- 📱 Responsive admin interface

**Why AI Form Builder for Gravity Forms Lite?**
Creating forms manually can be time-consuming. With AI, you can describe what you need in natural language, and the plugin handles the technical details. Perfect for developers, designers, and business owners who want to save time.

**Demo Mode:**
The plugin includes a built-in Demo mode that works without any API key. In Demo mode, the plugin generates pre-defined sample forms based on your description. This is perfect for testing the plugin before configuring your own API key.

**API Key Required for Real AI:**
To use the real AI features (OpenAI GPT-4o-mini), you need your own OpenAI API key. You can get one from [platform.openai.com](https://platform.openai.com). The cost of using the API is on the user.

**Upgrade to Pro:**
This is the Lite version. For advanced features like multi-step forms, form templates, smart notifications, advanced fields (file upload, calculation, address), and priority support, check out the [Pro version](https://www.sorenpro.ir/gf-ai-builder.html).

**Pro Features Include:**
- Multi-step forms
- Form templates (save and reuse)
- Smart notifications (auto-configure email notifications)
- Advanced fields (file upload, calculation, address, name)
- Multi-site license (up to 5 sites)
- Priority support (under 24 hours)
- White-label option

== Installation ==

1. Upload the plugin files to your `/wp-content/plugins/gf-ai-builder-lite` directory, or install the plugin through the 'Plugins' screen in WordPress.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Ensure that **Gravity Forms** is installed and activated on your site.
4. Go to the "AI Form Builder" menu in your WordPress dashboard.
5. Enter your OpenAI API key in Settings (or leave it empty to use Demo Mode).
6. Start building forms with AI!

**Requirements:**
- WordPress 5.8 or higher
- PHP 7.4 or higher
- Gravity Forms 2.5 or higher (required)

== Frequently Asked Questions ==

= Do I need an OpenAI API key? =
No, you can use the built-in Demo mode without an API key to test the plugin. However, Demo mode only generates pre-defined sample forms. For real AI-generated forms based on your description, you need an OpenAI API key from [platform.openai.com](https://platform.openai.com).

= How many forms can I build for free? =
Unlimited! The Lite version allows you to build unlimited forms without any license or restrictions. There is no limit on the number of forms you can create.

= Is my data secure? =
Yes. Your API key is stored only on your own server. All communication with OpenAI is encrypted via HTTPS. Your forms and data never leave your server.

= Can I edit the AI-generated forms? =
Absolutely! The AI creates a standard Gravity Form. You can edit, add, or remove any fields using the native Gravity Forms editor after the form is created.

= Does it support Persian (Farsi) language? =
Yes! The plugin fully supports Persian (Farsi) language with RTL support. You can write your form descriptions in Persian, and the AI will generate forms in Persian.

= What if I don't have Gravity Forms? =
This plugin is an add-on for Gravity Forms. You must have Gravity Forms installed and activated on your site for this plugin to work.

= Can I use other AI services besides OpenAI? =
Yes! The plugin supports any OpenAI-compatible API. You can change the API Base URL in settings to use services like GapGPT, CafeAPI, or any other compatible service.

= What's the difference between Lite and Pro? =
The Lite version is free and unlimited but uses basic AI features. The Pro version includes advanced features like multi-step forms, form templates, smart notifications, advanced fields (file upload, calculation), multi-site license, and priority support. [Learn more about Pro](https://www.sorenpro.ir/gf-ai-builder.html).

= Is there a free trial? =
The Lite version is completely free with no limitations. You can build unlimited forms and test all basic features without any cost.

== Screenshots ==

1. AI Form Builder main interface - describe your form and build it with one click
2. Settings page - configure your OpenAI API key and API Base URL
3. Successfully generated form with all fields, labels, and placeholders
4. Form preview in Gravity Forms editor

== Changelog ==

= 1.2.0 =
* Added professional license system for Pro version
* Improved checkbox and select field handling
* Added API base URL configuration for custom endpoints (GapGPT, CafeAPI, etc.)
* Enhanced bilingual support (English & Persian)
* Optimized code for WordPress standards
* Improved error handling and user feedback
* Added Demo mode for testing without API key

= 1.0.0 =
* Initial release
* AI-powered form generation using OpenAI
* Bilingual support (English & Persian)
* Demo mode for testing without API key
* Full Gravity Forms integration
* Smart field type detection
* Automatic placeholder generation

== Upgrade Notice ==

= 1.2.0 =
This version adds support for custom API endpoints and improves bilingual support. If you're using a non-OpenAI service, you can now configure the API Base URL in settings. Upgrade recommended for all users.

== Arbitrary section ==

**Developed by SorenPro**
Website: [https://www.sorenpro.ir](https://www.sorenpro.ir)
Support: [support@sorenpro.ir](mailto:support@sorenpro.ir)

**Like this plugin?**
If you find this plugin useful, please consider [upgrading to Pro](https://www.sorenpro.ir/gf-ai-builder.html) for advanced features and priority support.