# Automate Subscription Billing with AI Intelligence

> Manage subscription plans, usage-based billing, and revenue operations with AI-powered automation. Handle upgrades, downgrades, trials, and complex pricing models across 100+ payment providers. Optimize revenue with intelligent pricing recommendations and churn prevention.

Canonical: https://plans.do/

## In code

```ts
import { Plans } from 'plans.do'

// Manage subscriptions with AI optimization
on.Subscription.created($ => {
  Plans.provision.Resources({ customer: $.customerId, plan: $.plan })
  Plans.track.Usage({ customer: $.customerId, metrics: $.plan.features })
  const churnRisk = $.AI.predict.ChurnRisk($)
  if (churnRisk > 0.6) $.Agent.engage.Customer({ strategy: 'high-touch' })
})

// AI optimizes pricing weekly
Plans.every.week($ => $.AI.optimize.RevenueStrategy())
```

## Frequently asked questions

### What pricing models does plans.do support?

Plans.do supports all common pricing models including flat-rate subscriptions, usage-based billing, tiered pricing, per-seat pricing, hybrid models, and custom enterprise pricing. Handle metered features with flexible aggregation (sum, max, unique count). Support for graduated tiers, volume discounts, commitment contracts, and overages. Automatic proration for mid-cycle changes. Multi-currency billing with automatic conversion. Trial periods, freemium models, and add-ons. All pricing is configurable via TypeScript with full type safety.

### How does AI help with revenue optimization?

AI analyzes usage patterns, customer behavior, and market data to recommend optimal pricing strategies. Identifies customers ready to upgrade based on usage trends and engagement. Predicts churn risk and suggests targeted retention interventions. Recommends discount strategies that maximize conversion without sacrificing margin. A/B tests pricing changes with statistical significance. Optimizes trial-to-paid conversion by personalizing trial length and features. Forecasts MRR, ARR, and churn with 90%+ accuracy for planning.

### What about payment provider integrations?

Native integrations with 100+ payment providers including Stripe, Paddle, Chargebee, Recurly, Braintree, and regional providers. Automatic webhook handling, dunning management, and failed payment recovery. Support for multiple payment methods per customer with intelligent routing. PCI compliance handled automatically—never touch card data. Multi-provider setup allows geographic optimization and redundancy. Migrate between providers with zero downtime. Unified API across all providers with provider-specific features when needed.

### How does churn prevention and retention work?

AI continuously monitors customer health scores based on usage, engagement, support tickets, and payment history. Predicts churn 30-90 days in advance with specific risk factors. Automatically triggers retention campaigns via email, in-app messages, or account manager outreach. Offers personalized discounts, plan downgrades, or feature adjustments based on customer needs. Identifies customers to save vs. customers to let go. Full attribution of retention efforts to revenue saved. Retention playbooks learn from outcomes and improve over time.

### Can plans.do handle complex enterprise subscriptions?

Yes. Support for multi-year contracts, custom pricing, volume commitments, and enterprise SLAs. Hierarchical billing for parent-subsidiary relationships. Multi-seat management with automatic provisioning and deprovisioning. Usage pooling across organizational units. Invoice customization with PO numbers, custom line items, and NET terms. Contract amendments and renewals with auto-renewal management. Integration with Salesforce, HubSpot, and CRM systems for quote-to-cash workflows. Support for channel partners and reseller agreements.

## Part of Platform.do

plans.do is one of the primitives of Platform.do, in the Business layer (goals, plans and the work itself). Every .do shares one grammar, Business-as-Code, and one SDK.

- What is Business-as-Code? https://platform.do/business-as-code
- Platform.do: https://platform.do/
- Docs: https://docs.platform.do
