ViablyViably

Capture WhatsApp enquiries as contacts you can follow up

For a lot of teams WhatsApp is the busiest sales channel on the site, and nothing records it. When a visitor taps the button your tracking ends, and your team gets a stranger saying hello with no page or campaign behind them. Add one script tag and the widget asks for a name, an email and what they need before the handoff, so the enquiry becomes a contact with its campaign attached before the chat starts. The conversation stays in WhatsApp, and you don't need the Business API or number registration.
Trigger
POST /relay
Lands in
The Contacts dashboard
Setup
10 min
Needs
A website where you can add a script tag
#sales
ViaApp9:14 AM

WhatsApp enquiry about corporate training

Budi Santoso asked about a team of 40 in Jakarta

Page
/corporate-training
Campaign
brand-id-2026 · google / cpc
Reference
K7Q4XM
Open the contact

The chat continues in WhatsApp. The reference in the prefilled message ties that conversation to this record.

What this guide produces, as it appears in Slack.

Why WhatsApp goes uncounted

The usual fix is a click counter, which tells you how many people pressed the button but not who they were.

Take a WhatsApp button on a training company's site, the ordinary kind that opens a chat with a generic hello. Over a month visitors press it forty-six times, and every press reaches the team as the same line of text. The team can't tell the person comparing two courses from the person asking whether the office is open on Saturday, or follow up with either afterwards.

Pipeline reporting suffers too. None of those clicks carries an email address, so none of them becomes a contact. The sales that come out of those conversations get credited to whatever touch did carry an address, usually the contact form or the payment itself.

Adding three fields in front of the handoff changes what the same forty-six presses produce. Fewer of them go through, and the ones that do arrive as named contacts with a question attached, matched to the page they were reading, the campaign that brought them there, and any payment they have ever made.

The campaign survives the handoff

Send the landing URL with its query string intact and Viably reads the UTM tags off it, so a WhatsApp enquiry carries its campaign, network and medium the same way a form fill does. You can see which enquiries your Click to WhatsApp ads produced.

One contact per person

The email address is the identity key, so a WhatsApp enquiry in March and a payment in June under the same address land on one contact.

The salesperson opens the chat briefed

The first message says what the visitor is looking at and what they want, and the contact record already holds their email, the page they were reading and the campaign that brought them. Your team can skip the round of qualifying questions.

Revenue stops being credited elsewhere

When a WhatsApp click goes untracked, the sale it eventually produces gets attributed to whatever later touch carried an email, usually your contact form or the payment itself. WhatsApp's revenue then shows up under other channels.

Set up in 3 steps

Setup takes around ten minutes, most of it on the widget. You don't need a Slack workspace or anything from Meta.

Step 1Turn the widget on

In the Viably dashboard, open Webhook Relay settings and find the WhatsApp widget section. Enter your WhatsApp number, pick the Slack channel enquiries post to, and list the sites it may run on.

Step 2Paste one script tag

Copy the tag from the same section and paste it before the closing body tag on your site. Greeting, hours, colors and page topics are edited in the dashboard, so changing them never means a redeploy.

Step 3Send a test enquiry

Open your site, submit the panel and check that the contact appears in Needs reply. Every enquiry from then on is a contact with its page and campaign attached.

Content security policy
If your site sends a strict policy, allow hq.viably.app for the script and the submit request. The tag carries a public widget id and no secret.

Posting from your own server

The hosted widget sends this payload for you. If you build your own, post it from your server to a Webhook Relay endpoint and keep the endpoint token out of browser code, since anyone holding it can write to your contact list. Only type and emailare required. Everything else makes the contact more useful, and Viably keeps any field it doesn't read on the contact as captured data you can promote into a field later.

POST to your relay endpoint
Send the URLs with their query strings
Keep the query string when you put a URL in the payload. Viably reads the campaign from it and strips it separately for the source label, so a cleaned URL loses the attribution.

The handoff reference

After submitting the form, the visitor still has to press send inside WhatsApp, and only WhatsApp knows the number they send from. A short reference in the prefilled message lets you match the two.

The prefilled message
Explain the reference in the message
Visitors often delete a bare code before sending, and then you can't tie the conversation to its enquiry. A short note in brackets, like the one above, keeps most codes intact.
Make it easy to read aloud
Your team will read this off a phone screen. Leave out the characters that get misread: I and 1, O and 0, S and 5, and B and 8. Six characters from the rest is plenty.
Two things it tells you later
Whether the enquiry became a real conversation, so you can spot form submissions that never turned into a message. And the phone number behind the contact, which only WhatsApp has.

What lands in the CRM

Each submission opens a full contact record.

Matched to the existing contact
The email address is the identity key, so a WhatsApp enquiry joins whatever leads, signups and payments already exist under that address. Someone who bought from you last year and now asks a question on WhatsApp shows up as a returning customer.
The source and the campaign
The widget's own label becomes the source, and the campaign, network and medium are read from the landing URL. WhatsApp appears in acquisition by source and in lifetime value by source as a channel of its own, beside your forms and your paid campaigns.
The enquiry itself, in their words
What the visitor typed is kept in full on the contact's timeline, dated by when they sent it.
The rest, as captured data
The landing page, the referrer, the device, the page title and the handoff reference are all kept on the contact under captured data. If one of them turns out to matter on every contact, promote it into a field and it fills in retroactively on everyone who ever carried it.
It joins the reply queue
These contacts land in Needs reply, so a WhatsApp question sits in the same work queue as an email one.

Improve form completion

Asking for three fields in front of a one-tap action costs you some conversions. A well designed panel wins most of them back. These tips are roughly in order of impact.

Seed the message box

An empty textarea is where a pre-chat form loses most visitors. Prefill it with a sentence based on the page they are on, left unfinished, so the visitor only has to edit it. Even a message sent almost unchanged tells you more than a bare click.

Put the prefilled field first

Visitors judge the effort of a form before they read it. Lead with the mostly written message and the form looks nearly done.

Say why you want the email

They are about to share a phone number, so give them a reason to add an email too. One line under the field is enough, such as offering to send anything that won't fit in a chat.

Show when your team is available

Show your office hours instead of an estimated reply time. Say you are open now, or that you will pick it up the next working day.

Remember a returning visitor

Keep the name and email in the browser after a successful enquiry and prefill them next time. Returning visitors, the people most likely to buy, then only need to type their question.

Acknowledge the handoff

Keep the panel open with a confirmation after submit. On desktop the link opens WhatsApp Web, which asks anyone without a linked session to sign in, and popup blockers often stop the window entirely. Confirm what happened, offer the link again, and tell the visitor you have their message either way.

Measure the completion rate
Count panel opens as well as submissions, then watch the completion rate as you change the copy.

Common questions

What teams ask before putting a form in front of their busiest channel.

Why can't I track WhatsApp clicks properly today?

Your tracking ends at the wa.me link. The visitor leaves a page you instrumented, with a URL, a referrer and a campaign, and arrives in WhatsApp as a phone number with none of that context. Every press of a plain WhatsApp button produces the same event, so you can count them but can't tell them apart or follow any of them up.

Does this replace WhatsApp with a chat widget?

No. The conversation still happens in WhatsApp, on the visitor's own phone. The widget asks for a name, an email and what they need, then opens WhatsApp with that message prefilled, and the enquiry is in your CRM before the chat begins.

Won't asking for details before the chat cost me conversions?

Yes, some. A form in front of a one-tap action always costs some volume, but twenty enquiries with a name, an email and a question are worth more to a sales team than fifty anonymous clicks. Viably instruments both ends of the funnel, so you can measure the cost. Prefilling the message box does the most to keep it low.

Do I need the WhatsApp Business API?

No. It works with an ordinary WhatsApp number and a wa.me link, so you skip Meta app review, number registration and template message approvals. Your sales team keeps using the WhatsApp app on their phones.

How does WhatsApp show up in my revenue attribution?

As its own source. Viably reads the UTM tags from the landing URL the widget sends and files the campaign, network and medium on the contact, as it does for a form fill. WhatsApp is its own event type, so it gets its own row in acquisition by source and in lifetime value by source, and any payment that follows is credited to the page and campaign that started the conversation.

What is the reference code in the prefilled message for?

It matches a WhatsApp conversation to the enquiry that started it. After submitting the form, the visitor still has to press send inside WhatsApp, and only WhatsApp knows the number they send from. The code appears in the message your team receives and in the contact's captured data, so you can join the two.

Will this fill my contacts with junk?

The widget has a honeypot field and a timing check that stop most form bots, and the server rate limits each address and each widget. Email addresses are checked for format but not verified, so treat a WhatsApp contact like any contact form submission until they reply.

Which sites can run my widget?

Only the origins you list in its settings, up to ten. The server checks where every submission came from.

Start capturing the channel you already have

Add the widget to the WhatsApp button you already have and you find out who is pressing it.

Open Webhook Relay settings, turn on the WhatsApp widget and paste the script tag. The next person who taps your WhatsApp button becomes a contact in your CRM, and the free plan includes the full contacts workspace.

Add Viably to Slack
See it in actionWhatsApp widget