Mayank Tiwari

Integration · Case study

NowCerts & HawkSoft ↔ HubSpot Sync

Real-time sync between insurance agency management systems and HubSpot CRM for US agencies.

The challenge

Insurance agencies kept clients, companies and policies in NowCerts or HawkSoft, but sales and service teams worked in HubSpot, so data was re-typed and drifted out of sync.

What I built

Built a webhook- and queue-driven sync on n8n and MySQL that serves multiple agencies, with per-agency config, a field-mapping table, policies modeled as a HubSpot custom object, merge and alternate-ID handling, and safe forced re-sync.

Results

  • In production for 2+ years, syncing data for 10+ insurance agencies
  • Companies, contacts and policies kept in sync automatically
  • Multi-agency setup with per-agency config and tokens
  • Handles merges, ID changes, renewals and "Client Since" logic
  • Error alerts and safe re-sync instead of silent data loss

Tech stack

  • n8n
  • HubSpot API
  • NowCerts API
  • HawkSoft
  • MySQL
  • Webhooks

Code sketch

A simplified illustration of the core logic, not production code.

// Real-time AMS to HubSpot Sync
const syncAMSToHubSpot = async (amsData) => {
  // Transform AMS data format
  const transformedData = transformAMSData(amsData);
  
  // Check for existing HubSpot contact
  const existingContact = await hubspot.contacts.getByEmail(
    transformedData.email
  );
  
  if (existingContact) {
    // Update existing contact
    await hubspot.contacts.update(existingContact.id, transformedData);
  } else {
    // Create new contact
    await hubspot.contacts.create(transformedData);
  }
  
  // Update sync metrics
  await updateSyncMetrics({
    timestamp: Date.now(),
    operation: existingContact ? 'update' : 'create',
    status: 'success'
  });
};

Related services

More Integration case studies

Need something similar?

Tell me which systems are involved and what should happen between them.