Help

Lead sources: ad forms and form tools

Open in the app
On this page

Leads from ad forms and form tools can come in by themselves: Meta Lead Ads (Facebook and Instagram), Google Ads lead forms, TikTok lead forms, Tally and Typeform, and any other form tool that can send a webhook (see Any form tool). Each new submission becomes a lead and gets your normal welcome inside contact hours. Only an Admin manages lead sources.

Turn a lead source on

  1. Open Settings, then the Lead sources tab.
  2. On the card of your tool, click Turn on.
  3. Copy the Address and the secret. The secret is shown only once: copy it now. If you lose it, click New address and secret, then update the tool.
  4. In the tool's webhook setting, paste the address and the secret. Each card says where they go.

Turn off stops the address at once: the tool's submissions are no longer accepted.

TikTok lead forms

TikTok signs every lead with the App Secret of your own TikTok app, so the TikTok card has no secret to copy. Instead:

  1. Click Turn on on the TikTok lead forms card and copy the Address.
  2. Whoever manages your TikTok app subscribes it to leads in TikTok API for Business (Subscription API), with this address as the callback URL. TikTok has no screen for this; it is done once.
  3. Paste the app's App Secret (in TikTok: My Apps, App Detail, Basic Information) into TikTok App Secret and click Save App Secret. It is stored encrypted and never shown again.

Until the App Secret is saved, TikTok leads are refused. On the TikTok card the button is New address: it gives a new address only, and the App Secret stays.

A large TikTok batch is added in the background. If an unexpected fault stops it after every retry, the TikTok card says so for 7 days, with the time and how many of the batch's leads were not added; find those in TikTok and add them by hand under Leads.

Any form tool (webhook)

A form on your own website (WordPress, Elementor, Jotform, a Google Form with the script below) or a tool such as Zapier or Make can send its submissions to the Any form tool (webhook) card:

  1. Click Turn on on the card and copy the Address and the secret.
  2. In the tool's webhook setting, paste the address. Send the secret in the header X-Lead-Secret. A tool that sends from its own server (Zapier, Make, a form plugin's server-side webhook) and cannot add a header can send it as a field named lead_secret instead. Never put the secret in your web page, such as a hidden field of a form that visitors' browsers send: anyone could read it there. A post from a browser with the secret in a field is refused.
  3. Send the answers as JSON or as form fields, named like the columns of a lead file: name (or nama), phone (or no hp, whatsapp), email, and any others. A field named like one of your Playbook questions counts as its answer; the rest goes to the lead's notes. A tool that sends its answers as a list of pairs, such as "form_fields": [{"label": "Nama", "value": "Ana"}, …] (also under fields, answers or data, with name, key, title or question for the label and answer for the value), is read the same way.
  4. To see how your fields are read before a real lead arrives, open Check a submission on the card and paste what your tool sends (JSON or form fields, for example from its test or history screen), then click Check. The card shows the name, phone, email, source, campaign, the answers to your Playbook questions and what would go to the notes, and whether it would be added. It also checks the person against your portal as a real post would: someone who is already a lead or a customer would be saved as a duplicate (the card names them), and someone on the do-not-contact list would not be added. So when you test with your own number, the card tells you why no new lead appears. Nothing is saved and no message is sent.

Optional fields: source (the tool's name, shown as the lead's source; otherwise Website form), utm_campaign, utm_source, form_name, a submission_id (a post sent twice with the same id makes one lead; without one, the same answers sent twice make one lead), and test set to true for a test post (shown as Test, no lead). Files sent with the form are not read.

Google Forms

A Google Form can send each answer to the card by itself, with a short script that runs in your Google account (not in the page, so the secret stays private):

  1. Turn on the Any form tool (webhook) card and copy the Address and the secret.
  2. Open your form, click the three dots at the top, then Apps Script. Delete what is there and paste the script below. Put the address and the secret between the quotes on the first two lines, then click Save.
  3. In Apps Script, open Triggers (the clock on the left), click Add trigger, choose onFormSubmit, From form and On form submit, then Save and allow the access Google asks for. On a personal Google account Google first says it hasn't verified this app: click Advanced, then the project's name, then Allow (it is your own script).
  4. Send one answer through the form. It shows under Recent submissions on the card, and as a lead with the source Google Forms. Nothing on the card? In Apps Script, open Executions (on the left): it shows each run and any error, such as a wrong address or secret.
const LEAD_ADDRESS = "paste the address here";
const LEAD_SECRET = "paste the secret here";

function onFormSubmit(e) {
  const answers = {};
  for (const item of e.response.getItemResponses()) {
    const value = item.getResponse();
    answers[item.getItem().getTitle()] = Array.isArray(value) ? value.join(", ") : String(value);
  }
  const email = e.response.getRespondentEmail();
  if (email) answers.email = email;
  const post = { source: "Google Forms", form_name: e.source.getTitle(), submission_id: e.response.getId(), fields: answers };
  UrlFetchApp.fetch(LEAD_ADDRESS, {
    method: "post",
    contentType: "application/json",
    headers: { "X-Lead-Secret": LEAD_SECRET },
    payload: JSON.stringify(post),
    muteHttpExceptions: true,
  });
}

The answers are read by their question titles, so name the questions as you would name the columns of a lead file: Nama or Name, No HP, Nomor WhatsApp or Phone, Email; the other questions go to the lead's notes. When the form collects email addresses (form Settings, Responses), that address is sent as the lead's email. Give editor access to the form only to people you trust: an editor can see the secret in the script.

Click-to-WhatsApp ads

Ads on Facebook and Instagram can open a WhatsApp chat with your business. When your portal's WhatsApp number is connected, a person who writes to you from such an ad becomes a lead with the source WhatsApp ad. The ad's headline becomes the campaign, and the ad's id and link are kept in the lead's notes. Nothing needs to be turned on: it works for every new number that writes from an ad.

  • A message from a boosted post gets the source WhatsApp post. A message that came from no ad stays WhatsApp.
  • Meta sends the ad details with the first message only. A number your portal already has keeps its own source.
  • The do-not-contact list, duplicates and the limits for new numbers work exactly as for any WhatsApp message.
  • To see the cost per warm lead of these ads on the Dashboard, enter their spend under the source WhatsApp ad (and the campaign, if you want it per ad) on Enter ad spend and baseline. See Overview and ad spend.

Listing portal e-mails

Listing portals often send each inquiry to you by e-mail. In a property portal, Listing portal e-mail on Lead sources turns such an e-mail into a lead:

  1. Paste the forwarded e-mail into Inquiry e-mail, or drop .eml files on the area under Or upload .eml files (or click it to choose them). A file over 200 KB is refused.
  2. Click Read e-mail. What was read shows the name, phone, e-mail, listing and message, and says what is missing. A phone number or e-mail that was found only inside the message is marked Check this: make sure it is the person's own, not the portal's. When the e-mail has no Listing line, the listing is read from the subject or a sentence (for example "Pertanyaan baru untuk iklan Villa 3 kamar, Canggu") and is marked Check this too. Under the listing, Catalog item names the item of your catalog it matches: the lead is linked to it, so the assistant can answer with its price. When none matches, it says so: add the listing to the catalog first, or create the lead as it is.
  3. Check it, then click Create lead.

The lead's source is the portal when the e-mail's sender or subject names it: Rumah123, 99.co, Rumah.com, Lamudi, OLX or Pinhome. What was read shows it as Source. Otherwise the source is Listing portal. Only the sender and the subject count, never what the person wrote. In a pasted forward, its own From and Subject lines count. So the Dashboard and the source filter show which portal brings your leads, and ad spend can be entered per portal. The listing is the lead's campaign. The message goes to the lead's notes. The e-mail can be in English or Indonesian (for example Name or Nama, Phone or No. HP).

  • A person who is already a lead or a customer is saved as a duplicate and gets no second welcome. A person on your do-not-contact list is not added. The same person from portal e-mails (from any portal) more than 3 times in 24 hours is not added again.
  • Links, pictures and attachments in the e-mail are ignored. What the e-mail says is kept as text and never changes how the lead is handled.
  • Several e-mails at once: drop or choose up to 20 .eml files. Each is read the same way and listed with its name, source, listing and whether it is Ready. Create N leads adds the ready ones one by one, with the same checks as a single e-mail. Each then says Created, Saved as a duplicate of … or Not added with the reason. Nothing is saved before you click it.
  • No mailbox is connected: each e-mail is pasted or uploaded here.
  • In a sample portal, Try a sample fills in a made-up e-mail: one forwarded in English, one .eml in Indonesian, or one that names the listing only in its subject (to see the listing read from the subject and marked Check this).

Find leads

The Find leads card finds people who fit your customer and adds them as cold leads (Admin only). It says how many cold leads were added in the last 30 days, and Open Find leads opens the page. Cold leads are sent nothing until an Admin approves a message. See Find leads.

What happens with a submission

  • The name, phone number and email are read from the form. The lead's source is the tool (for example Instagram lead form or Typeform) and the campaign is kept when the tool sends it.
  • A form answer to one of your Playbook questions counts as the answer, so the assistant does not ask it again. The form's question does not need the same words. A question that names the point in your business type's words counts too, for example Kisaran budget or Price range for the budget, Kapan rencana beli? for the timing, or (for a services business) Kebutuhan utama for the need. For such a question, only an answer the warm rule can use counts: an amount for the budget, a time for the timing. A question about an ad budget, a time to call you back or meet, a visit, an office address or other needs stays in the notes, and so does one that names two points, a point your Playbook does not ask, or an answer such as "Belum tahu". Everything else is kept in the lead's notes. So the lead reaches warm with fewer questions; it still needs to reply and agree on a next step.
  • A person who is already a lead or a customer is marked as a duplicate and gets no second welcome. When they are already a lead, their form answers to Playbook questions that lead has no answer for yet are added to that lead, so the assistant does not ask them again; an answer the lead already has stays as it is. A person on your do-not-contact list is not added.
  • A form with a consent question answered "no" is not added, and one answered "yes" records Explicit opt-in. Without a consent question, the lead counts as a person who asked to be contacted (Lead contacted us). This is also true for the Any form tool (webhook) card, because it is your own form. A lead sent straight through the API without a consent value is different: it gets Unknown (no automated messages) until someone records how they agreed.
  • The same submission sent twice makes one lead.

Each card shows the last submission, the counts of the last 30 days (Added, Duplicate, Do not contact, Test, Not added, Waiting) and the recent submissions. Leads by campaign, last 30 days shows which campaigns brought the leads this source added, most leads first (for example Ramadan promo (8) · Open house (4) · no campaign (2)). The campaign is the one the ad or form sent: the ad's campaign for Meta and TikTok, Google Ads campaign and its number for Google, and utm_campaign (or utm_source) for Tally and Typeform; the Any form tool address takes utm_campaign or a campaign field. Up to five are named; the rest are counted as other campaigns.

Try it

In a sample portal, Send a sample submission sends a made-up submission through the same path. The lead is marked Sample. Demo Client, Demo General and Demo Agency (Sample) already show Meta Lead Ads and Tally as connected, with a few leads that came in through them. A sample portal's addresses take no submission from outside.

Common problems

The tool says the address was refused

Check that the card says On, that you pasted the newest address and secret, and that the tool sends to the address exactly as copied. When a tool keeps posting with an old or wrong secret, the card says so in a yellow note: how many posts were refused in the last 24 hours because the secret did not match (for TikTok, the signature: check the App Secret saved on the card). Posts refused for another reason get their own note: more than 300 in an hour, or a post that could not be read (not the tool's format, too many leads in one post, or too large). The tool itself only gets a plain refusal.

Nothing arrives

A card that is On says so in a yellow note when nothing comes in: No submission for N days after a week without a submission, or Turned on N days ago and nothing has arrived since from the day after you turned it on (also after turning it off and on again: the count starts afresh). Check that the form or ad still runs and that it still sends to the address on the card, exactly as copied: a copied or moved form, or a changed connection in your ad account, can stop it. Then send a test: fill in your own form once (for Meta lead ads, Meta's lead ads testing tool sends one). Recent submissions shows it when it arrives, and the note goes away. A card that is off says nothing, and sample portals never show this note.

A lead got no welcome

Welcomes go out on the channels turned on in the Playbook (Hours & follow-ups): WhatsApp by default. With WhatsApp only, a lead that came in with only an e-mail address, or with a landline number, got no welcome: under Recent submissions it says no welcome: no WhatsApp number, and the card says how many of the last 30 days' leads had no WhatsApp number. With e-mail on too, only a lead with neither gets none (no welcome: no WhatsApp number or e-mail). Ask for a WhatsApp number on your form; Check a submission on the Any form tool card shows it before a real lead arrives.

A submission shows "Not added"

The reason is next to it, for example no phone number or email in the submission.