Blog/Guides & Know-how

How to send website form leads to your CRM and WhatsApp instantly

Get website and landing-page form leads into your CRM in seconds: webhooks, a server-side REST API key, Zapier or Make, or Google Sheets as a stopgap.

LinkModus team · · 6 min read

Short answer

To get website and landing-page form leads into your CRM and WhatsApp instantly, have your website’s server send each submission to the CRM the moment it is saved, either to a webhook URL or a REST API using an API key. Keep the API key on the server, never in browser JavaScript. If you cannot touch the code, use a connector such as Zapier or Make. Google Sheets works only as a temporary stopgap. Whatever you choose, test it end to end and make sure the lead gets a WhatsApp reply within minutes.

A surprising number of Indian businesses still get website leads by email. The landing page sends “New enquiry from website” to an inbox someone checks twice a day, and then a person copies the details into a spreadsheet or the CRM. By the time anyone calls, the lead has filled three other forms. This is one of the most common leaks we find in a lead leakage audit.

The fix is a direct, automatic connection from the form to the CRM. Here are the four ways to build it, from most to least robust.

What are the ways to connect a website form to a CRM?

There are four common routes, and the right one depends on who controls your website’s code.

MethodNeeds a developer?SpeedBest for
Server-side API callYesInstantCustom sites, Next.js, PHP, Node, Django
Webhook from form toolLittleInstantForm builders and landing page tools that offer webhooks
Zapier / Make style connectorsNoSeconds to minutesWordPress plugins, Typeform, no-code sites
Google SheetsNoDepends on someone checkingA short-term stopgap only

How does a server-side REST API connection work?

When the visitor submits, your website’s server saves the form and then makes one HTTPS call to the CRM’s API with the lead’s details and a secret API key.

This is the most reliable option because nothing depends on a third party, and your developer controls exactly what is sent. A typical flow on a Next.js or Node site:

  1. The browser posts the form to your own endpoint, for example /api/enquiry.
  2. Your server validates it (phone present, not spam) and saves a copy.
  3. Your server calls the CRM API with the API key from an environment variable.
  4. If the CRM call fails, your server retries later from its saved copy, so no lead is lost.
// runs on YOUR server, never in the browser
const res = await fetch('https://linkmodus.com/api/v1/leads', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer ' + process.env.MODUS_API_KEY,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    name: form.name,
    phone: form.phone,          // with country code, e.g. 919876543210
    email: form.email,
    city: form.city,
    source: 'website',
    utm_source: form.utm_source,
    utm_campaign: form.utm_campaign,
  }),
});

Pass the UTM parameters through hidden fields so the CRM knows which campaign brought the lead. Our UTM parameters guide covers how to capture them on the landing page.

Why must the API key never be in the browser?

Anything in browser JavaScript can be read by any visitor, so a key placed there is effectively public.

Open any website, press F12, and you can see every script and every network request. If your CRM key is in the page, someone can copy it and create fake leads, read your contacts, or worse, depending on what the key allows. Rules to follow:

  • Keep keys in server environment variables, not in code committed to Git.
  • Create a separate key per website or integration, with only the scopes it needs (for example “write leads” and nothing else).
  • Rotate the key if a developer or agency leaves.
  • Add basic spam protection on your own endpoint: a hidden honeypot field, rate limiting by IP, and phone validation.
If your site is fully static with no server, use a small serverless function (Vercel, Netlify, Cloudflare Workers, Google Cloud Run) as the in-between. It holds the key; the page talks only to the function.

When should you use webhooks or Zapier and Make?

Use a webhook when your form tool can post submissions to a URL, and a connector like Zapier or Make when it cannot but is supported by one.

Many landing page builders and form tools have a “send to webhook” setting. You paste the CRM’s inbound URL, map the fields once, and each submission is posted immediately. Check whether the URL needs a secret token, and test what happens if a field is empty.

Zapier and Make sit between two apps: “when a new WordPress form entry arrives, create a lead in the CRM”. They are quick to set up without code. The trade-offs are a monthly subscription that grows with volume, polling delays on some triggers and plans, and one more account that can break silently when a password changes. Turn on failure alerts.

Is Google Sheets good enough for leads?

Google Sheets is acceptable for a week while you set up something proper, and a poor system after that.

A sheet does not alert anyone, assign the lead to a salesperson, send a WhatsApp reply, stop duplicates or remind anyone to follow up. Leads collect there unanswered. If you must use it for now, at least turn on notifications for changes, check it at fixed times, and plan the move to a proper CRM. Meta lead form leads in particular should not go through a sheet; see Instant Form leads.

How do you get the lead a WhatsApp reply instantly?

Once the lead is in the CRM with a phone number and consent, the CRM can send an approved WhatsApp template within seconds.

Because the person has not messaged you first, the first message must be an approved template, for example: “Hi Ananya, thanks for your enquiry about our Koramangala studio. Want me to share batch timings here?” When they reply, the free 24-hour service window opens and the conversation can continue normally. Add a consent line on the form, such as “I agree to be contacted on WhatsApp about my enquiry”, and store it with the lead. Read why response time matters for the reasoning.

How do you test a form-to-CRM connection?

Submit real test entries from a phone, on mobile data, and check every hop.

  1. Fill the form with a test name and your own number, from a phone on 4G, not office Wi-Fi.
  2. Confirm the lead appears in the CRM within a minute, with source and campaign set.
  3. Confirm the WhatsApp message arrives and the reply lands in the inbox.
  4. Submit the same number again: it should update the existing lead, not create a duplicate.
  5. Submit with the phone as 09876543210 and as +91 98765 43210: both should match one person.
  6. Break it on purpose (wrong key) and check that someone is alerted.

How LinkModus helps

LinkModus has a public REST API with scoped API keys, including POST /api/v1/leads for website and portal enquiry forms. It matches on phone then email so repeat enquiries update one person, stores every form answer on the lead, and outgoing webhooks tell your other systems when a lead is captured. From there the lead lands in the CRM and WhatsApp inbox, gets assigned, and the AI agent can pick up the conversation. If you would rather not run a form at all, the website chat widget captures leads directly.

Frequently asked questions

How do I send website form leads to my CRM automatically?+

The most reliable way is to have your website’s server post each submission to the CRM’s API or webhook URL the moment it is saved. If you cannot change the website code, a connector tool such as Zapier or Make can watch the form and pass entries across.

Can I call a CRM API directly from JavaScript in the browser?+

No, not with a secret API key. Anything in browser code can be read by any visitor, so the key would be public. Send the form to your own server, and let the server call the CRM with the key.

Is Google Sheets a good way to collect leads?+

It is fine as a temporary stopgap, because many form tools write to Sheets for free. It is weak as a long-term system: nobody is alerted, leads sit unanswered, duplicates pile up, and there is no follow-up.

How fast should a form lead get a WhatsApp reply?+

Within minutes. Someone who has just filled your form is still on their phone and thinking about you. A reply the next morning reaches a person who has already enquired with two competitors.

Do I need the customer’s consent to message them on WhatsApp after a form fill?+

Yes. Add a clear, unticked-by-default consent line on the form saying you will contact them on WhatsApp, and record it with the lead. This follows WhatsApp’s opt-in policy and the spirit of the DPDP Act.

Answer every enquiry, see which ad paid for it

LinkModus replies on WhatsApp in seconds, qualifies the lead and traces each sale back to its ad. First week free.