Back to blog
·7 min read

WhatsApp for Lovable Apps — Let the AI-Built App Message Real Users

Two plain-English prompts and your Lovable app can text customers on WhatsApp — signup confirmations, order updates, reminders. No code, no setup.

lovablewhatsappai agentsnocodeapi

Lovable lets anyone build a real, working app by just describing what they want. No code, no servers, no developer needed.

But there's one thing every real app needs that Lovable can't do on its own: actually message your customers when something happens. Not in-app banners. Not emails that go to spam. WhatsApp — the app every customer already has open.

This guide shows you how to add WhatsApp messaging to your Lovable app using two plain-English prompts. You'll never see a line of code.

What you'll be able to do by the end

Your Lovable app will automatically send WhatsApp messages when things happen — like:

  • A new customer signs up → "Hi Priya, welcome to YourApp!"
  • An order is placed → "Order #1247 confirmed. We'll text you when it ships."
  • An appointment is booked → "Your appointment is on Tuesday at 3pm. Reply CANCEL to cancel."
  • You manually mark something as done → "Your report is ready. Tap here to view it."

You decide what triggers a message and what it says. Lovable wires it up.

Step 1: Set up your WhatsApp Business Account (10–15 minutes)

Before your app can send a single message, you need to register your business with WhatsApp. Meta runs a separate system for businesses to message customers programmatically — different from the regular WhatsApp app on your phone. This is called a WhatsApp Business Account (WABA). Gavi walks you through it in about 10 minutes.

What is WhatsApp Business actually for? It's for messaging your customers — people who signed up, bought something, booked an appointment, or otherwise opted in to hear from your business. It's not for messaging your friends, family, or random phone numbers. Meta is strict about this: cold-blasting people who didn't opt in, or using a Business number for personal chats, can get your number suspended. If in doubt: would the recipient be expecting a message from your business? If yes, you're good.

What you'll need

  • Your business or brand name — whatever you want customers to see when you message them.
  • A phone number to send messages from. Important: it should not be a number that's currently on regular WhatsApp. The cleanest option is to grab a fresh number — most virtual number services work, or a new SIM. (If you absolutely need to use an existing number, you'll have to delete it from regular WhatsApp first; Meta won't let one number be on both.)
  • A Facebook account — you'll log in with it so Meta can verify you own the business. If you don't have one, create a free personal one. You're not posting anything; it's just for verification.

What you'll do

  1. Sign up at gaviventures.com — free, no card required.
  2. In the Gavi dashboard, click "Connect WhatsApp Business."
  3. A Meta-branded setup popup opens. Log in with your Facebook account when it asks.
  4. Choose or create a "Business" (this is just Meta's name for your business profile — your app name is fine).
  5. Add your phone number. Meta sends a 6-digit verification code via SMS or voice call. Enter it.
  6. Pick your display name — this is what customers see at the top of the WhatsApp chat when your app messages them (e.g. "AcmeBookings" instead of just a phone number). Meta usually approves it within a few hours; you can start sending messages while you wait.
  7. You're back in the Gavi dashboard. Go to Settings → API Keys, click "Create API key," and copy the key. You'll paste it into Lovable in the next step.

That's it. Your business is now wired into WhatsApp, and you have an API key your Lovable app can use.

Heads up — message limits on day one. Brand-new WhatsApp Business Accounts start with a daily message limit (Meta's anti-spam guard). As you send messages and customers don't report you, Meta auto-raises the limit. For most apps, the starting tier is plenty — you'll likely never notice it.

Step 2: Tell Lovable to add WhatsApp

Open your Lovable app's chat and paste this prompt exactly as-is:

Add WhatsApp messaging to my app using Gavi WhatsApp.

Use the official @gaviwhatsapp/whatsapp library from npm. Set everything up on the server side so my API key is never exposed to visitors.

When you've installed it, ask me to paste my Gavi API key — I'll get it from gaviventures.com.

Don't send any messages yet. Just get the connection ready. I'll tell you what messages to send and when, in the next prompt.

Lovable will install the library, set up the connection, and pause to ask you for your API key. Paste the one you copied in Step 1. That's it — your app is now connected to WhatsApp.

Step 3: Tell Lovable when to send messages

Now describe — in plain English — when you want a WhatsApp message to go out and what it should say. Paste this prompt and fill in the bracketed parts:

When [WHEN SHOULD A MESSAGE BE SENT — e.g. someone signs up, a customer completes checkout, I mark an order as shipped, an appointment is booked], send a WhatsApp message to that person.

The message should say: [WHAT THE MESSAGE SHOULD SAY — e.g. "Hi {first name}, thanks for signing up! Your trial starts today." Use {first name} or similar to insert their info.]

If the WhatsApp message fails for any reason, just log it quietly — don't show an error to the user or stop them from continuing.

Submit. Trigger the action in your app (sign up as a test user, place a test order, etc.). The WhatsApp message arrives in about 2 seconds.

You can repeat this prompt for as many message types as you want — order confirmations, shipping updates, appointment reminders, anything.

One important WhatsApp rule to know

WhatsApp doesn't let businesses message customers with arbitrary text whenever they want. There are two situations:

1. The customer messaged your WhatsApp number in the last 24 hours. You can reply with anything — any text, any time, no setup. This is called the "conversation window."

2. The customer hasn't messaged you (or it's been more than 24 hours). You can only send a pre-approved message — Meta calls these "templates." You write the template once (e.g. "Hi {name}, your order #{order_id} has shipped"), submit it, and Meta usually approves it within an hour. Then you can send it to anyone, anytime.

For most apps, you'll need templates — because most of the time you're messaging customers first (welcome, order confirmation, reminder), not replying to them.

How to set up a template

  1. Go to the Gavi templates page
  2. Click "New template"
  3. Write your message with placeholders like {1} for variables (e.g. "Hi {1}, your order is on the way!")
  4. Submit for Meta's approval — usually under an hour
  5. In your Lovable prompt above, mention the template by name: "Send them the welcome_message template with their first name as variable 1"

Once approved, you can send that template to any phone number, anytime.

Things you can build in an afternoon

What you buildWhat Lovable does
Welcome messagesSends a WhatsApp the moment someone signs up
Order confirmationsTexts the customer when they place an order, with order details
Shipping updatesTexts them again when you mark an order as shipped
Appointment remindersSends a reminder 24 hours and 1 hour before the appointment
Login codesSends a 6-digit code to log in (faster and more reliable than SMS)
Abandoned cart nudgeReminds someone the day after they leave items in their cart
Manual broadcastsLets you click a button in your dashboard to text all your customers an update

For each one, just write a Step 3 prompt: "When X happens, send a message that says Y."

What this costs

  • Gavi WhatsApp: $9.99/mo flat. No per-message markup, no setup fee.
  • Meta (WhatsApp): charges you directly for messages your app sends, at their standard rates. Costs vary by country and message type — check Meta's official pricing for your country.
  • Total for most small apps: about $10-30/mo all-in.

That's roughly half what most "WhatsApp Business Suite" platforms charge — and Meta's per-message charges go straight from Meta to you, with zero markup from us.

You're done

Your Lovable app can now message real customers on WhatsApp. No code, no servers, no developer.

If you ever want to do more advanced things later — like let customers reply and have your app respond — that's possible too, but most apps don't need it on day one.


Try it: gaviventures.com · See it in Lovable

Ready to try Gavi WhatsApp?

Send WhatsApp messages from your code, AI agent, or CRM in under 5 minutes.