Skip to main content

Lovable + Dreamlit

By default, Lovable’s AI recommends using a simple email API service like Resend to add email to your Lovable app. But a simple API service is exactly that: a simple API service. It only helps you with the email delivery part, and it’s up to you to stitch it into your app. This is where Dreamlit comes in. Dreamlit is an AI-powered email automation platform that handles everything for you - from triggering emails to building them, sending them, and tracking them.
Dreamlit sits on top of your Supabase (or Postgres) database, rather than integrating with your app code. This means there’s no API key or anything to prompt in Lovable to set up your emails. Simply plug your database into Dreamlit and you’re off to the races.

Why use Dreamlit instead of just doing it in Lovable?

Lovable + some email API solution like Resend gives you a decent starting point for sending emails. But there’s a lot of functionality that’s still missing and that you’d need to build out yourself.
ChallengeWith Lovable aloneWith Dreamlit
Email blasts, recurring emails, and drip sequencesNo easy way to send one-off blasts, digests, or drip sequences. You’d need to export user data to another platform, and there’s no good UX to understand or safely verify recurring workflows before publishing.AI-powered workflow builder goes from prompt to end-to-end email workflow in seconds. Fully preview and test every step with live data before going live.
Full visibilityDig through code logs to check if emails sent. Aggregate raw data yourself to understand performance. Email logic scattered across your codebase makes it hard to see your communication strategy.Complete visibility into email delivery, performance, and workflow previews, all in one place.
Vendor lock-inThe more email infra you build in Lovable (edge functions, crons, webhooks), the harder it is to migrate away.Decouples email from app code, so you can move your app’s infra to a different provider while keeping all email workflows intact.
Lovable credit usageEvery email feature you build burns valuable Lovable credits.Offload email to Dreamlit so you can focus your credits on building your app.
Our recommendation: Use Lovable for what it does best: building your app. Use Dreamlit to help you manage your email strategy so you can maximize engagement, reduce churn, and grow your business.

Who this guide is for

  • Lovable builders who want a premium all-in-one email solution for their apps
  • Vibe coders who don’t to think about infra and just want to build their core app
  • Anyone using Lovable + Supabase who wants to avoid vendor lock-in and conserve their Lovable credits

Prerequisites

  • A Lovable app connected to your own Supabase project (not Lovable Cloud)
  • 5 minutes
Heads up: If you started your Lovable project with Lovable Cloud, currently you have no way of connecting directly to your own database, so you cannot connect your app to external services like Dreamlit. You’ll need to migrate your Lovable Cloud to your own Supabase project first (see below).As such if you’re starting a new Lovable project, we highly recommend connecting your own Supabase account rather than using Lovable Cloud as your backend so you can avoid vendor lock-in and get the full suite of features that Supabase offers including direct database access.

Using Lovable Cloud?

If you started with Lovable Cloud (their managed backend), you’ll need to migrate to use Dreamlit. Your options:
  1. Migrate to your own Supabase (recommended for production)
  2. Start fresh with your own Supabase
  3. Wait for Lovable to improve Lovable Cloud
    • Lovable Cloud is a relatively new offering, so there’s a good chance they make it easier to access your database in the future
Planning to launch soon? Migrate to your own Supabase project now. The longer you wait, the more data and configuration you’ll need to move.

Connect Dreamlit to your Supabase

1

Create a Dreamlit account

Go to app.dreamlit.ai and sign up.
2

Connect your Supabase project

Click Connect Supabase and authorize the connection. This connects to the same Supabase project your Lovable app uses.
Connecting Supabase via OAuth
That’s it. Two clicks and you’re connected. You’re ready to create end-to-end email workflows with Dreamlit.
Need auth emails? These include password resets, magic links, and email verification. Check out our Supabase Auth Emails guide for one-click setup.

Example: Welcome email workflow

Suppose you want to setup a welcome email campaign that sends an email when a new user signs up. Let’s walk through how you can do this with Dreamlit.

Step 1: Create the workflow or broadcast in Dreamlit

Click Create Workflow (or Create Broadcast) and describe what you want:
“Send a welcome email when a new user signs up”
The AI Agent builds you a workflow, end-to-end: from trigger, email template, and copy. No need to prompt anything in Lovable or configure anything manually in your database. Take a look at the preview and if all looks good, you can click Publish to take the workflow live.
AI generating a welcome email workflow

Step 2: Update your Lovable app (if needed)

Chances are your database already stores the data you need to build your workflow. If not, and you need to add a field or table for Dreamlit to watch, simply prompt Lovable to persist the events or data you need (a good practice anyway so your database is the source of truth). For example:
“When a user clicks the Like button, add a row to the comment_likes table”
Or for something like order confirmations:
“When a user completes checkout, insert a row into the orders table with the order details”
If you’re using Lovable’s default user management (Supabase Auth), then users are automatically added to the auth.users table when they sign up. No extra table needed.

Step 3: Analyze workflow runs, email engagement, and optimize engagement

You can navigate to the Workflows page to check the status of recent workflow runs, inspect emails that went out as a result of those runs, as well as engagement metrics by recipient and workflow.

How Lovable works with Dreamlit

Dreamlit triggers emails based on database changes. When prompting Lovable, focus on getting data into your database. Dreamlit handles the rest. Good prompts for Lovable:
You want…Prompt Lovable with…
Order confirmations”Insert order details into orders when checkout completes”
Comment notifications”Save comments to a comments table with the post_id and author”
Activity alerts”Log user actions to an activity table”
You don’t need to prompt Lovable about emails at all. Just make sure the data lands in your database, and Dreamlit takes it from there.

More workflow ideas

Looking for inspiration? Check out our use cases for example prompts across welcome emails, order confirmations, reminders, internal alerts, and more.

Send from your own domain

By default, emails send from Dreamlit’s domain. To send from your own domain (like [email protected]), you can set up a custom email domain in minutes.
1

Add your domain

Go to Settings → Email Domains and click Add domain. Enter your domain (we recommend a subdomain like mail.yourapp.com).
2

Verify automatically

Dreamlit can automatically configure your DNS records for you. Just click Verify with your DNS provider, sign in to your provider, and authorize the changes.
Automated DNS verification flow
If your DNS provider isn’t supported for automatic setup, you can add the records manually. Dreamlit shows you exactly what to add.
3

Start sending

Once verified, select your domain when creating email workflows. Your emails will now come from your own brand.
This improves deliverability and looks more professional to your users. Full domain setup guide →

FAQ

Dreamlit needs direct access to your database, which Lovable Cloud doesn’t currently provide. Use our free Lovable Cloud to Supabase Exporter to migrate to your own Supabase project, or see Using Lovable Cloud? above for all options.
A few things to check:
  1. Is your workflow published? Saved workflows don’t run until you click Publish.
  2. Is the trigger table correct? Lovable might have named tables differently than you prompted. Check your Supabase dashboard to see the actual table names.
  3. Is data being written? Check your Supabase dashboard to confirm rows are being created when users take actions.
  4. Try the preview. Use the preview to test with sample data and verify the workflow runs.
Usually no. Dreamlit watches your database for changes, so if your app already writes the data you need, you’re all set. If you need to track something new (like order completions), just prompt Lovable to add the database write.
Yes, that’s one of the benefits. Your email workflows live in Dreamlit, separate from your Lovable app. Change copy, tweak templates, adjust triggers, all without touching your app code or prompting Lovable again.
Yes. Dreamlit supports Slack alongside email. Just describe what you want: “Notify our team on Slack when a new order comes in.” Learn more about Slack →
Use the preview feature to send test emails to yourself with real data from your database. Your workflow won’t email actual users until you publish it.
Dreamlit works alongside traditional email providers. Since we take a fundamentally different approach (database-driven, AI-generated workflows), you don’t need to migrate off your existing setup. Try Dreamlit for your next workflow and keep using your current provider for everything else.

You’re all set

Describe what you want. Dreamlit builds it. Now go ship your next workflow.

Supabase Auth emails

Set up password reset, magic links, and more

Email domain setup

Send from your own domain

Use cases

More workflow examples

Get support

We’re here to help