# About SetupFlow

SetupFlow is a serverless, database-free e-commerce operations engine built directly on top of Google Sheets and WhatsApp. It is designed to empower online merchants, digital content creators, custom shops, and teachers to run high-performance storefronts without platform commission taxes, high subscription fees, or complex server operations.

---

## 🛠️ How It Works

1. **Google Sheet Backend**: Keep your inventory, descriptions, variations, prices, and image URLs in a standard Google Spreadsheet. No database knowledge required.
2. **Instant Web Storefront**: SetupFlow builds a responsive, high-performance web catalog directly from your sheet's API.
3. **Automated WhatsApp Checkout**: When a customer clicks buy, the order details are written to the sheet in real-time and a WhatsApp link launches a pre-filled invoice draft to finalize payment.
4. **Programmatic Modeless Auto-Deployment**: Activating the storefront is handled from a spreadsheet menu via clasp/API. It deploys itself as a Google Web App and links with the central database. If the scripting API is disabled, a modeless helper window guides the merchant through manual setup.

---

## 👥 Audience Segments & Features

### 🏪 Physical & Custom Shops
- Manage custom item variants, details, sizes, colors, and dimensions dynamically.
- Cut down operational hours by logging checkout details automatically to a centralized sheet dashboard.
- Includes a **Media Upload Manager** to drop files and save them directly to Google Drive, returning URL paths for catalog image mapping.

### 🎓 Teachers & Digital Creators
- Escape the **10%-30% platform tax** from services like Gumroad, Patreon, or Etsy. Keep 100% of your earnings.
- Storefront preset matching matches terms like `teacher`, `course`, `class`, `tutor`, `academy`, `school`, `lesson`, and `study` to generate a tailored digital creator interface.
- Automate product downloads or email delivery when successful payments are logged on the sheet.

---

## 📈 Recovery & Operations Trust

- **Abandoned Cart Recovery**: Tracks incomplete sessions. Generates direct WhatsApp follow-up templates and checkout recovery links with pre-filled promotional discount tags (e.g. `&promo=RECOVER10`).
- **Input Sanitization**: Utilizes **DOMPurify** to sanitize user checkout information (names, emails, addresses) and promoter variables, preventing Cross-Site Scripting (XSS).
- **Store Status Checking**: Validates the sheet's `isActive` setting before processing orders. Webhooks return clean errors if the storefront has been deactivated.

---

## 💰 Pricing & Savings
SetupFlow charges flat rates with crossed-out base rates and special Launch offers:
- **Growth Plan**: **$299/mo** (was `$499`) or **₹9,999/mo** (was `₹16,999`).
- **Pro Plan**: **$699/mo** (was `$1,199`) or **₹24,999/mo** (was `₹39,999`).

By utilizing the integrated **SetupFlow ROI & Savings Calculator**, merchants can calculate:
*   **Operational Time Cost**: Monthly hours wasted manual copy-pasting customer details times your hourly wage.
*   **SaaS Stack Cost**: Average cost of subscription tools replaced by SetupFlow.
*   **Net Monthly Savings**: Total time and platform savings minus the SetupFlow flat subscription.
*   **Opportunity Value**: Reinvesting saved operational hours into business scaling at a realistic `1.5x` leverage.
