Skip to main content

Lovable + Dreamlit

You’ve been prompting Lovable to build your app. Now you need to send emails: welcome new users, confirm orders, remind people about expiring trials. You could prompt Lovable to add email… but should you? Good news: Dreamlit speaks the same language. Describe what you want, and AI builds the workflow. No code to write, no infrastructure to manage. The key concept: Dreamlit watches your Supabase database for changes. When a new row appears (new signup, new order, new comment), Dreamlit triggers the email automatically. Your app writes data. Dreamlit sends the email.

Who this guide is for

  • Lovable builders adding email to their apps
  • Vibe coders who don’t want to think about SMTP, templates, or deliverability
  • Anyone using Lovable + Supabase who wants emails that match their brand

Why can’t I just ask Lovable to build email?

You could. Prompt Lovable to send a welcome email when someone signs up. It’ll wire up Resend or SendGrid. But then:
  1. How do you preview that email with real user data before it goes out?
  2. How do you track who opened it? Who clicked?
  3. What happens when emails bounce?
  4. Are you setting up DKIM and SPF records for deliverability?
  5. What about retry logic when the provider has an outage?
  6. What about scheduled emails? Recurring digests? Drip sequences?
  7. After you’ve built a few workflows, how do you see how they’re all performing in one place?
  8. How do you tweak email copy without re-prompting Lovable?
Or just use Dreamlit and skip all of that. We handle it end-to-end.

Prerequisites

Starting a new Lovable project? We recommend connecting your own Supabase account rather than using Lovable Cloud. This gives you direct database access, which Dreamlit needs to watch for changes.
  • A Lovable app connected to your own Supabase project (not Lovable Cloud)
  • 5 minutes

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)
    • Lovable’s docs note this “is technically possible since you own the code in GitHub, but not straightforward”
    • They’re “looking into making this easier”
  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 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. 2 clicks and you’re connected. Dreamlit can now see your database and you’re ready to create workflows.
Need auth emails? (password reset, magic links, email verification) Check out our Supabase Auth Emails guide for one-click setup.

Example: Welcome email workflow

Let’s walk through creating a welcome email that sends when someone signs up. You can use this pattern to create any workflow where you record data in your database.

Step 1: Create the workflow in Dreamlit

Click Create Workflow and describe what you want:
“Send a welcome email when a new user signs up”
The AI generates everything: the database trigger, email template, and copy.
AI generating a welcome email workflow

Step 2: Update your Lovable app (if needed)

Here’s the key insight: Dreamlit watches your database, not your code. When a new row appears in your users or auth.users table, Dreamlit sends the email automatically.
If you’re using Supabase Auth, users are automatically added to the auth.users table when they sign up. No extra table needed.
If your Lovable app already creates user records on signup, you’re done. No code changes needed. If you need to add a field or table for Dreamlit to watch, prompt Lovable:
“When a user signs up, add a row to the user_signups table with their email and name”
Or for something like order confirmations:
“When a user completes checkout, insert a row into the orders table with the order details”

Step 3: Preview and publish

Preview your email with real data from your database, then click Publish.

Prompting Lovable to work 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…
Welcome emails”Store new signups in a user_signups table”
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. See Using Lovable Cloud? above for your 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.