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)
ConnectedStores customers, events, playbooks and audits, and receives the PayPal webhook.
NEXT_PUBLIC_CONVEX_URLPayPal sandbox
Set on the serverReal subscription events from your sandbox app.
PAYPAL_CLIENT_ID, PAYPAL_CLIENT_SECRET, PAYPAL_WEBHOOK_IDJev decisions
Set on the serverChurn probability, likely cause and tone from the Jev model.
TYPESAFE_API_KEYAI email drafts
Set on the serverNatural-language recovery emails from OpenAI (or Claude). Templates are used without a key.
OPENAI_API_KEY (or ANTHROPIC_API_KEY), AI_MODEL optionalPayFlow mail
Set on the serverSends approved recovery emails from PayFlow, with replies going to the merchant. Nothing for a merchant to set up.
RESEND_API_KEY, PF_MAIL_FROMSend webhook (optional)
Set on the serverPosts approved emails to your own tool, such as Make, Zapier or n8n, if you prefer to send from there.
SEND_WEBHOOK_URL
Setup steps are in docs/ACCOUNTS_SETUP.md in the repository.