Skip to main content
Lovable now lets you integrate Cello user referrals entirely through chat. Just ask Lovable to “Add user referrals to your app” and it will do the rest - no manual coding required.

Prerequisites

Before integrating Cello, ensure the following prerequisites are met:
  • The project must be connected to Supabase. Learn more about Supabase
  • User signup and authentication via Supabase is functional
  • Stripe subscription flow is functional
  • You have a Cello account and API keys at hand.
Make sure to use Cello Sandbox environment when developing and testing

Cello user referrals integration (No‑code chat flow)

Lovable now does all Cello integration steps for you. Once your Cello API keys and Secrets are configured via the in-chat Add API Key form and your project meets all the prerequisits, simply tell Lovable what you need.
For a step-by-step technical implementation (source of truth + acceptance criteria), follow the detailed guide:
1

Step 1

Prep your project
  • Signup and authentication flow with Supabase is functional
  • Stripe subsctiption flow is functional
  • Cello API keys are handy
2

Step 2

Add Cello Webhook Endpoint to Stripe
  • Get your webhook URL from Cello Portal
  • Add a Webhook endpoint in Stripe (Log into your Stripe Dashboard -> Go to Developer Mode -> Add a Webhook endpoint and enter endpoint URL -> Select the events to send -> Click “Add endpoint”)
  • Secure the Webhook with “Signing secret”
Events to send:
  • charge.refunded, charge.succeeded, charge.updated
  • customer.created, customer.deleted, customer.updated
  • customer.subscription.created, customer.subscription.deleted, customer.subscription.updated
  • invoice.paid
See Stripe Webhook Integration for more details.
3

Step 3

Prompt Lovable to add User Referrals to your appSwitch Lovable to Plan mode, then paste this prompt (includes the detailed guide):
I now want to add user referrals. I chose platform Cello for this.

I added a Cello integration guide according to which you should do the implementation. parsed the documentation more carefully from the start rather than assuming standard patterns would work. create a thorough implementation plan based on guidance, patterns and AC from the provided guide. Don't skip any content, it is all relevant

Guide: https://docs.cello.so/resources/cello-lovable-detailed-integration
Lovable asks you guiding questions and creates an implementation plan based on your answers.
4

Step 4

Confirm executing the planReview the plan carefully. If it looks correct, tell Lovable to proceed and start implementing it.
5

Step 5

Publish & TestYou cannot try the full end-to-end flow in the Preview mode. Publish your changes to test.If everything was implemented correctly, you should see events coming in to Cello Dashboard.