Skip to content

~/services/automation/crm-integration

CRM integration: your website, forms, WhatsApp and other systems feeding the CRM you already use

The contact reaches your CRM the minute they fill out the form or send a message, with the source recorded, no duplicate records and their consent stored.

6 min read

$ cat ./crm-integration/what-you-get.md

  • Website form sending straight to the CRM
  • Lead source recorded (ad, page, campaign)
  • Contact deduplication by email and phone
  • Webhooks with a queue and reprocessing
  • Privacy consent stored with the contact
  • A log of every send to find failures fast

CRM integration means getting contacts into the CRM your company already uses without anyone typing them in: the website form, the ad landing page, the WhatsApp conversation, the order that came into the ERP, the spreadsheet the events team fills out. No one exporting a list every Friday, and no salesperson finding out about a lead three days late.

This page covers one specific case: the CRM already exists and works, it just doesn't receive what it should. If your problem is connecting systems in general, the systems integration page covers the whole topic. If the CRM you use no longer fits, I get to that at the end.

A contact card pulled by wires from a mailbox, a phone and a form into a central drawer
The wires meet at the drawer the way contacts from different channels reach the same CRM.

What Usually Stays Out Of The CRM

  • The website form. It lands in an inbox someone reads when they can, and the contact gets copied by hand, if at all.
  • The ad landing page. The lead comes in without saying which campaign it came from, and nobody knows which ad is paying for itself.
  • WhatsApp. The company's warmest conversations happen on the salesperson's phone and never become a record.
  • The ERP and finance. The customer closed, paid, bought again, and the CRM has no idea.
  • The event spreadsheet. A hundred contacts from a trade show waiting for someone to find time to import them.

CRMs With An API, And What That Means

RD Station (a CRM and marketing platform popular in Brazil), HubSpot and Pipedrive are examples of CRMs with a documented public API: you can create and update contacts, deals and activities from another system, and some of them send a webhook when something changes inside. Each one has its own way of authenticating, its own fields and its own rate limits, and the integration respects that.

How I Build The Integration

Forms And Landing Pages

The form posts to an endpoint of mine, which validates the fields, stores the submission and then sends it to the CRM. If the CRM is down, the contact isn't lost: it sits in a queue and gets sent again. The source page and the campaign parameters go along with it, so the marketing report can tell where each deal came from. If the page doesn't exist yet, landing page design comes with this already wired in.

WhatsApp

A conversation that starts on WhatsApp creates or updates the contact in the CRM and records the source. The provider's webhook arrives signed and is verified before anything else. For the customer service side itself (automatic replies, reminders, handoff to a person), see WhatsApp automation.

ERP, Finance And Spreadsheets

A scheduled job brings into the CRM what happens after the sale: purchases, payments, cancellations. The salesperson sees the customer's real history, and marketing stops sending first-purchase offers to people who are already customers.

Duplicate Contacts, The Problem Nobody Plans For

The same customer fills out the form, then messages on WhatsApp, then shows up on the trade show spreadsheet. Without care, that becomes three contacts, each one assigned to a different salesperson.

CRM lookup by email and phone, updates with field priorities, and a unique key that prevents duplicate webhook notifications.
Lookups and a unique key for each notification prevent duplicates.
  • Lookup key. Before creating, I search by email and by normalized phone number (with area code, no formatting). If there is a match, it updates.
  • A rule for which value wins. If the name on the form differs from the name in the CRM, it is defined which field takes priority.
  • Repeated notifications don't duplicate. The same webhook often arrives twice, and each notification is stored with a unique key. In Rah CRM, the WhatsApp webhook arrives signed with HMAC, and a repeated message hits a unique key instead of being duplicated.

A contact in a CRM is personal data, and Brazil's data protection law, the LGPD (similar to the GDPR), requires a legal basis and a stated purpose. In practice:

CRM contact with agreed text, date and page; a quote request kept separate from newsletter consent, with no automatic opt-in.
Consent stays with the contact; customer service and marketing stay separate.
  • Consent stored with the contact. The text the person agreed to, the date and the page are recorded on the contact, not just a ticked checkbox.
  • Marketing kept separate from service. Someone who asked for a quote did not automatically agree to receive a newsletter.
  • Only the fields you need. The integration doesn't send the CRM data nobody will use.
  • Protected credentials. The CRM API key stays out of the code, with the least access possible.

What I Have Already Integrated

I connect forms to Brevo for sending email, combine GA4 and Search Console into a monthly report, connect to solar inverter manufacturers' APIs and turn time tracking into PDF and Excel reports. With RD Station, HubSpot and Pipedrive the work is the same: read the official documentation, respect the limits and handle failures, duplicates and reprocessing from day one.

When Integration Isn't The Answer

If your current CRM forces the team to work in a way that isn't yours, if you pay per seat and use half of it, or if sales needs to connect with contracts, hours and billing, replacing it may be worth more than integrating it. I wrote about that on the custom CRM page.

Tell me which CRM you use and where your contacts come from, and I will tell you how to connect each end.

Frequently Asked Questions

Do you integrate with RD Station, HubSpot and Pipedrive?

All three have a documented public API, and the integration follows each one's official documentation. Before we agree on anything, I check whether your plan includes API access and what limits it has.

Can't I just use a ready-made connector tool?

For a simple flow, sometimes you can, and I will tell you when. Integration in code pays off when there is deduplication, business logic, high volume or data that shouldn't pass through yet another vendor.

What if the CRM goes down?

The send waits in a queue and is retried later. If it keeps failing, it goes to an error list that someone checks. No contact gets lost along the way.

How much does a CRM integration cost?

It depends on how many sources will feed the CRM and on the deduplication rules. After a short conversation I send a proposal with scope, timeline and price.

Where This Is Already Live

Related Services

Next step

Didn't Find Your Case in the List?

Tell me about the problem through the form. If I'm not the right person, I'll say so and point you to someone who is.