Claire

Click-to-WhatsApp Ads: Setup Guide + How to Build the Backend

Run Instagram/Facebook ads that open WhatsApp, then build the booking and reply logic yourself on Wabery's API. Here's the full setup.

marketingwhatsappinstagramhow-to

What This Is

You run an Instagram or Facebook ad. Instead of a website, clicking opens WhatsApp with a pre-filled message to your business.

Why it works: One tap from “interested” to “messaging you.” No forms, no friction.

The catch: the ad only delivers the conversation. What happens next — the instant reply, the qualification, the booking — is something you build. This guide covers both halves: the ad setup, and how to build the backend that handles every message that lands.


Quick Setup (the ad side)

Prerequisites

  • WhatsApp Business app (free)
  • Facebook Business Page
  • WhatsApp connected to your Page (Page Settings → Linked Accounts → WhatsApp)

Create the Ad

  1. Go to business.facebook.com → Ads Manager → Create
  2. Goal: Engagement
  3. Type: MessagingWhatsApp
  4. Set targeting (your city + 10-15 miles, client age range, relevant interests)
  5. Add your image/video and text
  6. Publish

What Makes a Good Ad

Image: Real photos beat stock. Before/afters, product shots, anything authentic.

Text: Keep it short.

“Spring spots are booking now. Message us to grab yours.”

That’s enough.

Targeting: Start narrow (your city, your typical customer). Expand later if it converts.


The Math

Metric Typical Range
Cost per message $0.50-2.00
Messages → conversions 20-40%
Average order value $75-150

Example: $10/day → 5-10 messages → 2-4 conversions → $150-600 revenue

Solid ROI — if you respond before the interest fades.


The Speed Problem

When someone clicks your ad, they’re interested now. Every minute you don’t respond, interest decays.

If you can reply within 5 minutes by hand: great.

If you can’t — because the ad runs at midnight, or you’re with another customer — you need software handling the first touch. That software is something you build, and Wabery gives you the primitives to build it fast.


Building the Backend on Wabery

Wabery isn’t a packaged “auto-reply bot” you flip on. It’s the messaging API and platform you build your own logic on top of: a unified channels API for WhatsApp, Instagram and Messenger, signed event webhooks, native WhatsApp Flows (in-chat forms), automations, a CLI, and an MCP server.

Here’s the loop you can build in an afternoon.

1. Receive the message

Every inbound message from your ad fires a signed webhook to your endpoint:

// POST /webhooks/wabery
export async function POST(req: Request) {
const event = await verifyWaberySignature(req); // signed events, no spoofing
if (event.type === "message.received") {
await handleInbound(event.data); // your code, your rules
}
return new Response("ok");
}

2. Reply instantly with your own logic

You decide what an instant reply says — pull from your DB, call your own AI model, whatever. Then send through the channels API:

await wabery.messages.send({
channel: "whatsapp",
to: event.data.from,
text: "Hey! Want to grab a spot? Tap below and I'll get you booked.",
});

3. Collect what you need with a WhatsApp Flow

Instead of a clunky back-and-forth, send a native WhatsApp Flow — an in-chat form that collects the service, preferred time, and contact details in one tap. When the customer submits, the answers come back to your webhook as structured data. You insert them straight into your calendar or CRM.

if (event.type === "flow.completed") {
const { service, date, phone } = event.data.responses;
await myCalendar.createBooking({ service, date, phone });
}

The booking happens in your system, on your schedule, using logic you control. Wabery just moves the messages and the structured data reliably.


Quick Wins

Start small: $5-10/day is enough to test the ad.

Test images: Run 2-3 versions. Keep the winner.

Track conversions: Not every message converts. Know your numbers.

Build the instant reply first: Even a simple “got your message, here’s a Flow to book” beats silence at midnight.


Simple Version

  1. Connect WhatsApp to your Facebook Page
  2. Create ad: Engagement → Messaging → WhatsApp
  3. Target your area + ideal customers
  4. Good, real photo
  5. Simple copy
  6. $5-10/day to start
  7. Wire a Wabery webhook so every message gets an instant, structured reply

The Full Loop You Built

When you put it together:

  • Click-to-WhatsApp ads drive the conversations
  • A Wabery webhook catches each message the instant it lands
  • Your reply logic answers right away — even at midnight
  • A WhatsApp Flow collects booking details as structured data
  • Your own calendar/CRM gets the clean record

That’s a client-acquisition system you own end to end, built on infrastructure instead of rented from a black-box product.


Want the webhook + Flow starter code? Grab the CLI and scaffold it in minutes.

Questions or feedback? Reach out anytime

Continue Reading