=== Email Funnel AI - Email Marketing, Newsletter, Automation, Funnels & Abandoned Cart for WooCommerce ===
Plugin Name: Email Funnel AI - Email Marketing, Newsletter, Automation, Funnels & Abandoned Cart for WooCommerce
Plugin URI: https://emailfunnel.ai
Author: Ratul Hasan
Contributors: ratulhasan
Version: 1.0.1
Tags: email marketing, newsletter, marketing automation, woocommerce, abandoned cart
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.2
Stable tag: 1.0.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.txt

AI email marketing for WordPress & WooCommerce. Auto-sync contacts, send newsletters, automation funnels, drip campaigns & abandoned cart emails.

== Description ==

**Email Funnel AI** is an AI-powered email marketing and marketing automation plugin for WordPress and WooCommerce. It automatically syncs your WordPress users, WooCommerce customers, and comment authors to the [Email Funnel AI](https://emailfunnel.ai) platform — then lets you send newsletters, build automation funnels, run drip campaigns, and recover abandoned carts without ever leaving your WordPress dashboard.

No CSV exports. No Zapier. No manual list cleanup. Every new user, buyer, and commenter flows into your email lists in **real time**, ready for AI-generated campaigns and funnels.

Whether you run a WooCommerce store, a membership site, or a content blog, Email Funnel AI connects your WordPress audience to professional email marketing automation — powered by AI.

= Why Email Funnel AI? =

Most WordPress email marketing plugins make you export contacts, upload CSV files, or pay for third-party connectors. Email Funnel AI syncs your contacts automatically and intelligently, so your newsletter lists and automation funnels are always up to date. Then it adds AI on top: generate email templates, campaigns, and full automation funnels from a single sentence.

= Key Features =

* **Real-Time Contact Sync** — WordPress users, WooCommerce customers, and comment authors sync to your email lists the moment they register, buy, or comment.
* **WooCommerce Abandoned Cart** — Capture abandoned carts automatically and recover lost sales with timed follow-up emails.
* **AI Email Marketing** — Generate email newsletters, drip campaigns, and complete automation funnels from natural language. Spam-aware so your emails land in the inbox.
* **Visual Funnel Builder** — Build node-based email automation funnels with delays, conditions, tags, and true/false branching on the connected platform.
* **Email Campaigns & Newsletters** — Send one-time broadcasts or scheduled newsletters, with A/B testing and open/click tracking.
* **Single Sign-On (SSO)** — Jump from WordPress into the full Email Funnel AI platform with one click. No second login.
* **Built-In Analytics Dashboard** — Track funnel performance, campaign results, and form conversions right inside WordPress.
* **List Management** — Create and manage email contact lists without leaving WordPress.
* **Custom Field Mapping** — Map any WordPress or WooCommerce field (name, role, order value, phone, company) to your email contact fields for personalized campaigns.
* **Auto-Tagging** — Tag contacts automatically by WordPress role, purchase history, or form activity for precise segmentation.
* **Bulk Import & Retry Queue** — Import all existing contacts in batches, and retry any failed syncs from a built-in pending queue.

= Perfect For =

* **WooCommerce stores** — Sync buyers, recover abandoned carts, and run post-purchase drip campaigns automatically.
* **Membership sites** — Segment email contacts by user role or subscription level.
* **Blogs & content sites** — Capture and nurture comment authors and newsletter subscribers.
* **Marketing agencies** — Manage client email lists, funnels, and automation at scale.

= What You Can Do on the Email Funnel AI Platform =

This plugin connects WordPress to the Email Funnel AI platform, which adds:

* AI-generated email templates with a drag-and-drop block builder
* Visual automation funnels (email, delay, condition, tag, list nodes)
* Email campaigns with A/B testing and scheduling
* Dynamic segments and tag-based targeting
* Embeddable lead-capture forms (modal, inline, popup, exit-intent)
* Spam checker and deliverability tools
* Suppression lists, bounce and unsubscribe handling

= How It Works =

1. Install and activate the plugin.
2. Complete the 3-step setup wizard to connect WordPress to your Email Funnel AI account.
3. Choose your sources (users, WooCommerce, comments), map fields, and set auto-tagging rules.
4. Your contacts sync automatically — in real time, every time — and you start sending AI email campaigns and funnels.

= Requirements =

* WordPress 6.0 or higher
* PHP 8.2 or higher
* An active [Email Funnel AI](https://emailfunnel.ai) account
* WooCommerce (optional, for order and abandoned cart sync)

== Installation ==

**Option 1 — WordPress Plugin Directory (Recommended)**

1. Go to **Plugins → Add New** in your WordPress admin.
2. Search for **Email Funnel AI**.
3. Click **Install Now**, then **Activate**.
4. Follow the 3-step setup wizard to connect your account.

**Option 2 — Manual Upload**

1. Download the plugin `.zip` file.
2. Go to **Plugins → Add New → Upload Plugin**.
3. Upload the `.zip` file and click **Install Now**.
4. Activate the plugin and complete the setup wizard.

**Option 3 — FTP**

1. Upload the `email-funnel-ai` folder to `/wp-content/plugins/`.
2. Activate via the WordPress **Plugins** screen.
3. Follow the setup wizard to link your Email Funnel AI account.

== Frequently Asked Questions ==

= Do I need an Email Funnel AI account to use this plugin? =
Yes. This plugin connects your WordPress site to the [Email Funnel AI](https://emailfunnel.ai) email marketing platform. You'll need an active account to sync contacts, send campaigns, and view analytics.

= Is this a free email marketing plugin? =
The WordPress plugin is free. The Email Funnel AI platform offers a free tier for testing plus paid plans (Startup, Pro, Business) and lifetime deals for higher sending volume and AI quota.

= Does it work with WooCommerce? =
Yes. Email Funnel AI automatically syncs WooCommerce customers and order data, and captures abandoned carts so you can send recovery emails. WooCommerce is optional — all WooCommerce features hide automatically if it isn't active.

= Can it recover abandoned carts? =
Yes. The plugin tracks WooCommerce abandoned carts with a configurable timeout, captures the customer's email, and syncs it so you can trigger abandoned cart recovery emails and drip campaigns.

= Is contact sync real-time or scheduled? =
Real time. The moment a user registers, places an order, or leaves a comment, their contact data is pushed to your email list. Existing contacts can be bulk imported at setup.

= Can I build email automation funnels and drip campaigns? =
Yes. On the connected platform you can build visual automation funnels — emails, delays, conditions, tags, and branching — and run drip campaigns and newsletters, including AI-generated ones.

= Does it use AI to write emails? =
Yes. Email Funnel AI generates email templates, newsletters, campaigns, and complete funnels from natural language, with built-in spam awareness for better deliverability.

= Can I control which contacts get synced? =
Yes. Configure per-source sync rules, WordPress role filters, field mapping, and auto-tagging to control exactly which contacts sync and how they're segmented.

= What happens if a contact fails to sync? =
Failed syncs land in a built-in pending queue. You can retry a single contact or batch-retry an entire source at any time.

= Does it support WordPress Multisite? =
Yes. Each subsite connects independently with its own API keys and its own contact sync. Run the setup wizard on each subsite.

= Is Single Sign-On (SSO) secure? =
Yes. SSO uses encrypted, time-limited, single-use token authentication. Your API secret is encrypted at rest, and all admin actions require the `manage_options` capability and nonce verification.

== Screenshots ==

1. **Dashboard** — Contact sync status and email marketing analytics at a glance.
2. **Analytics Dashboard** — Funnel, campaign, and form performance inside WordPress.
3. **Settings Panel** — Manage API credentials, sync rules, and field mappings.
4. **Contact Sync** — Real-time contact sync status and pending retry queue.
5. **Field Mapping** — Map WordPress and WooCommerce fields to Email Funnel AI contact fields.
6. **Auto-Tagging** — Configure automatic tagging rules for contact segmentation.

== Changelog ==

= 1.0.1 =
* New: WooCommerce abandoned cart tracking and capture, with a configurable timeout.
* Fix: Various bug fixes and stability improvements.
* Tested and confirmed compatible with WordPress 7.0.

= 1.0.0 =
* Initial release — real-time contact sync, SSO authentication, analytics dashboard, list management, field mapping, auto-tagging, bulk import, and pending sync retry queue.

== Upgrade Notice ==

= 1.0.1 =
Adds WooCommerce abandoned cart capture, bug fixes, and WordPress 7.0 compatibility. Recommended update.

= 1.0.0 =
Welcome to Email Funnel AI! This is the initial release. Install and complete the setup wizard to start syncing WordPress and WooCommerce contacts and sending AI email campaigns automatically.
