# Upgrade to Hyperchat 1.12.0

Back up your source, configuration and database. Extract this release into a separate folder and merge the changes into your customized installation. Do not replace your working folder or rerun fresh-install setup.

## What is new

Agencies can now run Hyperchat as a white-label, self-serve client SaaS with their own Stripe or Whop billing keys, custom business name, logo URL and accent color, a cross-client Performance rollup tab (enquiries, sessions, per-currency spend and blended CPL), subscription plans plus one-time AI credit top-up packs, reusable or personal client onboarding links with optional Agency Niche Snapshot starter campaigns, automatic Zernio profile/webhook provisioning, guided client self-setup, monthly managed AI credit pools with agency and client activity logs, and a default Leads sales pipeline on signup.

Campaign Studio adds URL-to-campaign website import, 8 instant ad layouts, multi-placement ad previews and 4-size batch PNG exports (4:5, 1:1, 9:16, 16:9), channel-specific tracked links with printable SVG/PNG QR codes, AI UGC scripts and video generation (with MCP/REST/OpenAPI parity), optional BYO HeyGen lip-synced spokesperson avatars, AI ad hook remixing, inline funnel publishing and Meta ad creation/launch, inline Lead follow-up with optional consented welcome SMS + timed Step-2 check-in SMS, unified Campaign Results (variation conversion rates, strict winner highlighting, synced Meta ad spend/clicks/CTR/CPL, AI next-hook insights, downloadable white-label scorecards and revocable `/report/[token]` share links), and Campaign + Ad Variation attribution badges inside the Inbox sidebar and Sales pipeline. Workspaces also gain Zernio SMS text messaging (US A2P 10DLC registration, opt-out handling, and SMS starter templates), basic HighLevel contact sync, and a guide-grounded in-app Help assistant.

## Merge and validate

1. Follow the intermediate upgrade guides if your installation predates 1.11.0.
2. Merge the new backend modules (`clientModel`, `clientAgency`, `clientSignup`, `clientOnboarding`, `clientProvision`, `clientBilling`, `billingProviders`, `siteImport`, `texting*`, `highlevel*`, `help*`, `heygen*`, `campaignMedia`), schema tables and HTTP webhook routes (`/webhooks/billing/stripe`, `/webhooks/billing/whop`, and SMS Zernio webhook events). Preserve your existing auth, workspace, provider and deployment configuration.
3. Merge the updated frontend components, `/start/[token]` signup route, `client-accounts.css`, Help drawer and Campaign Studio upgrades while keeping custom routes or branding overrides intact.
4. Run `pnpm check` and `pnpm doctor`. Deploy your Convex backend first, then build and deploy the matching Next.js frontend against that same backend.
5. In the agency console (`Client accounts`), save your business name, accent color and support email; connect your own Stripe or Whop keys and register the displayed billing webhook URL; configure a managed OpenRouter key (and optional HeyGen key); create at least one plan and test a client onboarding link end to end before inviting customers.
6. For SMS texting, configure a Zernio-backed number and complete US A2P 10DLC brand/campaign approval before enabling welcome SMS on funnel forms or sending customer texts.

Meta ad activation, funnel publication, welcome SMS delivery, billing webhooks and paid AI/HeyGen generation remain explicit, reviewed actions. Automated tests verify these flows with synthetic fixtures; run live provider checks in your own deployment before customer onboarding.

Guides: `docs/CLIENT_ACCOUNTS.md`, `docs/BILLING_PROVIDERS.md`, `docs/TEXT_MESSAGING.md`, `docs/HIGHLEVEL.md`, `docs/HELP_ASSISTANT.md`.
