Settings

Demo data + live PayPal sandbox

The app runs in demo mode on synthetic data until these are connected. Each one is optional and adds a real capability. Values are set in the Convex dashboard and your hosting environment, never in the browser.

  • Backend (Convex)

    Stores customers, events, playbooks and audits, and receives the PayPal webhook.

    NEXT_PUBLIC_CONVEX_URL
    Connected
  • PayPal sandbox

    Real subscription events from your sandbox app.

    PAYPAL_CLIENT_ID, PAYPAL_CLIENT_SECRET, PAYPAL_WEBHOOK_ID
    Set on the server
  • Jev decisions

    Churn probability, likely cause and tone from the Jev model.

    TYPESAFE_API_KEY
    Set on the server
  • AI email drafts

    Natural-language recovery emails from OpenAI (or Claude). Templates are used without a key.

    OPENAI_API_KEY (or ANTHROPIC_API_KEY), AI_MODEL optional
    Set on the server
  • PayFlow mail

    Sends approved recovery emails from PayFlow, with replies going to the merchant. Nothing for a merchant to set up.

    RESEND_API_KEY, PF_MAIL_FROM
    Set on the server
  • Send webhook (optional)

    Posts approved emails to your own tool, such as Make, Zapier or n8n, if you prefer to send from there.

    SEND_WEBHOOK_URL
    Set on the server

Setup steps are in docs/ACCOUNTS_SETUP.md in the repository.