n8n and workflows

CRM automation in n8n without duplicate contacts

Reading time
13 minutes
Updated
Published
Topic guide
n8n automation
Written by
modernagents editorial teammodernagents is an AI automation agency from Austria for SMEs, based in the Vienna region.
AI-generated image: Business card embosser with an indigo lever grip on concrete

An enquiry comes in through the form on your website, and the next morning the same customer appears twice in the CRM, once with the old phone number and once with the new one. If you connect n8n with HubSpot or Pipedrive so that enquiries land in the CRM without retyping, this is exactly the worry: duplicate contacts, duplicate callbacks or a callback that nobody gets.

An n8n integration with HubSpot or Pipedrive is useful when it turns an incoming enquiry into a case that is clearly assigned to one contact and that someone can act on. Creating a contact is usually the easy part. Contacts that already exist, fields with conflicting values, enquiries that arrive more than once and the question of which program may decide on changes need more thought. So your CRM workflow needs a written agreement on the fields (a field contract) and a clear definition of when an enquiry is done.

An example: a building-services planning office in Klaipėda with 20 employees receives consulting enquiries through a form on its website. Today Rūta in the back office reads each enquiry, looks up the customer in Pipedrive, creates the customer if needed and writes a callback task for the responsible salesperson. Afterwards, n8n, a program that automates work between other programs, should take over these steps.

This covers contacts, companies and follow-up tasks. The text describes how to plan such a connection and is not a claim that a connection has been tested in your account. Product documentation and API information were checked on 26 September 2026. Which functions you can use also depends on your plan, your permissions and the installed node version.

Key takeaways

  • Before launch, write down where each field comes from and when an enquiry counts as done.
  • Look for a contact first by its stored CRM ID. If there is none, use an agreed identifier that does not change.
  • Every search ends in one of three ways. One unambiguous match is updated according to the field rules, no match creates a new contact with only the approved minimum information, and with ambiguous matches a person reviews the case instead of the system merging.
  • If the connection drops, the workflow writes to the CRM again only once it is clear what has already arrived there. That way one technical timeout does not create two callback tasks.

01 / 12

What do the n8n nodes for HubSpot and Pipedrive cover?

Before Rūta's office builds anything, the question is whether n8n can do what is needed with its CRM at all. In n8n, the ready-made building blocks for a specific program are called nodes.

According to the n8n documentation for the HubSpot node, it offers operations for contacts, companies, deals (sales opportunities) and other CRM objects. The Pipedrive node includes people, organisations, activities and deals.

Having an object in this list does not mean that every operation of the vendor API is available in the node. The API is the interface through which other programs talk to the CRM. Check the specific operation and its input fields in the version you will run. What to do when a field is missing is described below in the section for your IT team.

02 / 12

Which business outcome should the first workflow deliver?

A useful first brief for Rūta's office is: "Assign new consulting enquiries from the website form to a contact and create exactly one task for the responsible salesperson." A poor brief is: "Synchronise all customer data everywhere." It is too vague. With the small brief, you can judge concretely which fields are required, which exceptions occur and what it brings.

Also decide whether an enquiry should create a deal at all. If someone only asks about opening hours, that is not automatically a sales opportunity. And creating a contact does not establish permission to add that person to a mailing list. Put these business rules into a separate branch of the workflow that someone has explicitly approved. If AI summarises the enquiry, its summary stays derived information that replaces neither the original message nor an evidenced status.

One direction is often enough at the start, from the source, such as the form, to the CRM. If changes should also flow back, add that only once it is clear which changes the source genuinely needs and how you will prevent loops. A loop happens when two programs keep writing the same change back and forth. With only one direction you need less technology, and there are fewer conflicts about who is responsible for which data.

03 / 12

What belongs in the field contract?

Customers sometimes leave out the phone number in the form. What should then happen to the number that is already in the CRM? The field contract answers questions like this. For every transferred field, it sets out what the field means, who owns it and what happens when a value is missing. At the same time, the contract should make sense to both sales and the person who builds the workflow.

For a pilot, a field contract with eight fields can look like this, each with its authoritative source and a suggested rule:

Field Authoritative source Suggested pilot rule
External enquiry ID Intake system Preserve unchanged; identifies the enquiry
CRM contact ID CRM Keep the reference after successful matching
Email address Confirmed input Normalise for search; preserve original separately if needed
Company relationship Reviewed CRM reference Send ambiguous matches for review
Responsible person CRM assignment rule Assign only valid, active users
Phone number Agreed source An empty form field does not erase an existing number
Communication permission System holding the evidence Never infer permission merely from having an address
Processing status Process owner Permit only defined transitions

For each field, distinguish three situations: the field is absent from the enquiry, the customer deliberately cleared it, or it contains a new value. If the workflow treats all three cases as an empty field, an incomplete form can erase reliable data in the CRM.

Selection fields, such as "Interest: heating, ventilation or solar", also need the CRM's internal values rather than the label shown on screen. HubSpot points out in its contacts documentation that the API expects internal names for enumeration properties.

04 / 12

How do you match contacts without creating duplicates or wrong merges?

A customer who has asked before writes again. Does the workflow find her, or does it create her a second time? If a contact has been matched before, start with the stored CRM ID, the identifier under which the CRM keeps the contact. Without a stored ID, fall back to the agreed stable identifier.

A verified email address can help, but it does not always belong to one person permanently. Several people write from a shared inbox such as office@, employees change jobs, and some customers have several addresses.

A practical search ends in one of three ways:

  1. One unambiguous match: The workflow updates the existing contact according to the field rules.
  2. No match: It creates a new contact with only the approved minimum information.
  3. Ambiguous matches: It merges nothing automatically and creates a review case for Rūta instead.

Similar names are a hint for Rūta but should not, by themselves, authorise merging two contacts. Two people called Alex Berger may be different people. On the other hand, a corrected spelling should not automatically create a new contact. Record the decision and the IDs used, without copying unnecessary contact details into error messages.

Enquiries that arrive almost at the same time are a special case, for instance when a customer submits the form twice in quick succession. Both enquiries may find no match in the search, and then two contacts can result. A search immediately before creation is therefore not always sufficient. How your IT team can prevent this is described below in the section for your IT team.

05 / 12

How do you connect companies, contacts and activities?

In the form, a customer writes "Jūra Bakery" in the company field, but a company name in a text field is not the same as a link to the company record in the CRM. HubSpot and Pipedrive keep people and companies as separate records that are linked to each other. The integration must therefore handle both the records and their links correctly. The sources for this are in the section for your IT team.

Define the order. First the workflow identifies the company, then the person, then it links the two, and only at the end does it create the callback task. Store what came out of each step. If only the task creation fails, the next attempt must not create the company and the contact again. Conversely, a contact without the matching task is not yet a fully processed enquiry.

Also decide whether a contact may belong to several companies. An external consultant may write on behalf of several businesses. If the system replaced the consultant's existing company automatically just because a new email domain appears, that would be wrong. The CRM should show the real situation rather than force every enquiry into a seemingly simple model.

06 / 12

Worked example: enquiry and callback task

In this example, which does not describe a customer deployment, Rūta's office receives enquiry REQ-4802. The person already exists in the CRM, and so does the company. The form contains a new phone number but no permission for additional marketing.

The workflow checks the enquiry ID first. If that enquiry has already been fully processed, it returns the stored outcome. Otherwise it finds the contact through the existing mapping, reads the relevant current fields and applies the phone-number rule. If the form is an approved source, it updates the number and records the enquiry. Whether the customer may receive marketing stays unchanged.

Next, the workflow creates a callback task with the enquiry ID as its reference. Who is responsible comes from a maintained assignment table. Suppose the responsible salesperson has left the office and his user is disabled. Then the task goes to a designated team queue, or the workflow stops and Rūta reviews the case. An arbitrary default user is not a reliable solution and would hide the assignment problem rather than solve it.

Now the connection drops right after the task was created, and the workflow cannot tell whether its last write reached the CRM. When processing resumes, it looks for the saved task reference or another unique identifier designed for this. It writes again only once it is clear what is in the CRM. That way one network timeout does not create two callback tasks.

The enquiry is done when the contact is matched, the permitted fields are updated, exactly one task exists and the responsible salesperson is notified. A green n8n run without checking these points is not sufficient evidence of completion.

Got a workflow like this?

Tell me about it. Honest take and a rough price, usually within a day.

07 / 12

How do you backfill existing data safely?

Rūta's office also has an old customer list that should go into the CRM, and such an import differs from processing new enquiries. Begin with a comparison that only reads and changes nothing. Which customers are missing from the CRM, which have conflicting identifiers, which are archived? The first deliverable is a list of proposed changes, not immediate edits to the production CRM.

For the import you need a point from which you can resume after an interruption, a controlled batch size and a result for each individual record. If a batch only partly succeeds, only the unfinished items are processed again. A single overall status of "failed" must not recreate records that were already written successfully. Check request limits, search visibility delays and API permissions against your actual account.

New events, such as new enquiries, keep arriving while the import runs, and they must remain accounted for. Agree a cutoff or change marker from which continuous processing takes over. Afterwards, reconcile the records in the source with the successfully matched records, the exceptions and the intentionally excluded records. Give every difference a category. That way "almost all imported" does not hide unresolved customer data.

Plan the backfill with the sales team. Large imports of old data can trigger CRM automations, notifications or assignment rules that have nothing to do with the import. Suppose every new contact triggers a welcome task in Pipedrive. After the import, the salesperson would then find a pile of tasks for customers he has known for years. Identify these effects in advance and start with a limited, approved sample before you increase the volume. Even a technically successful import can disrupt staff if nobody watches its side effects.

08 / 12

How do you resolve conflicts before two-way synchronisation?

Later the office may want changes to flow in the other direction as well. With two writing directions, the rule "newest value wins" is rarely adequate. A phone number that a program reformatted automatically may be newer than the number Rūta checked by hand, but not necessarily more accurate. Instead, decide for each field which program is in charge. For example, master data comes from the ERP, sales ownership from the CRM and the enquiry status from the intake system.

Have the integration mark its own changes where the API permits it, and avoid unnecessary return updates. Before changing a value, it reads or compares the value in the target system to check whether it actually differs. Deletions and merges need a separate rule. A contact that Rūta archived in the CRM should not silently reappear during the next import.

Put conflicts into a manageable review list showing the original value, the proposed value and the decision. Approving that list is business work. Broad administrator permissions do not resolve uncertainty about which information is correct.

09 / 12

Which awkward cases should acceptance cover?

Before the workflow writes to the real CRM, Rūta tests the CRM integration with approved test data. At least these cases belong in it:

  • a new contact
  • an existing contact
  • an ambiguous match
  • duplicate delivery
  • two simultaneous enquiries
  • a disabled owner
  • missing required values
  • invalid selection options
  • a timeout after a possible write
  • a changed company relationship

For each case, record what the CRM should look like afterwards, not only what the node outputs. In daily work, other figures are more useful than the number of API calls. What matters is unprocessed enquiries, duplicate activities, unresolved matches and the delay until a person can act.

Include existing CRM automations in acceptance. A status change may trigger additional tasks or messages. Identify these effects with the person who owns your CRM before the workflow writes to the live system.

Start with one source, a clear contact model and one follow-up task. Once that path remains understandable under repetition and failures, you can expand it to deals, additional teams or other programs. You can start this week. Sit down with the person who owns your CRM and write the field contract together. A comparison of the data that only reads comes next.

10 / 12

For your IT team

If a field is missing in the node, it may be accessible through an HTTP Request. This requires that the official API supports the field and that the credentials have the necessary permissions. That creates a separate implementation that needs its own maintenance. It does not establish support for an undocumented use case.

Check the API version and retirement notices, especially before following older tutorials. HubSpot, for example, announced the retirement of its V1 Lists API for 30 April 2026, according to its official retirement notice.

The field contract also states the maximum length, data type and handling of special characters for each field. Preserve accents and umlauts in names. Phone numbers are not numerical quantities. A customer number with leading zeros must not become a number during an intermediate export.

Against near-simultaneous enquiries from the same person, investigate unique keys or a controlled creation path that prevents concurrent processing of the same identity. The implementation depends on the API and the storage used.

For the link between contact and company, HubSpot provides Associations. In Pipedrive, Persons are separate objects, and Pipedrive also manages Organizations as separate objects, apart from persons.

11 / 12

Take the worksheet

Worksheet

Download the editable CSV table

InputDecisionControl
Known email, new requestInspect existing contactCreate task, not duplicate person
Shared company addressKeep association uncertainDo not merge people blindly
Unknown contactCapture minimum fieldsDo not invent company
Repeated eventRecognise existing requestStable source key
Missing employee ownerTeam queueNo unowned task

Columns to fill in, in the file: Your value / observation, Owner, Next action.

Download the editable CSV table (CSV). Add your own values, owners and open actions. This worksheet contains no measured client results.

12 / 12

These pages cover the service overview and the related decisions for CRM automation with n8n:

For a workflow review, start with a short description of how enquiries reach you today, the systems involved and typical exceptions. Discuss it with modernagents.

ShareEmail

Related reading

n8n automation

Got a workflow like this?

Tell me about it. Honest take and a rough price, usually within a day.

Robert Van Ysendyck · Founder & Managing Director