Skip to main content

Automate HubSpot to Salesforce lead creation with Explorium AI enrichment

Workflow preview

Workflow preview
100%
Automate HubSpot to Salesforce lead creation with Explorium AI enrichment preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Automatically enrich prospect data from HubSpot using Explorium and create leads in Salesforce This n8n workflow streamlines the process of enriching prospect information by automatically pulling d...

Best for

  • Lead Generation automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.merge, n8n-nodes-base.hubspottrigger, n8n-nodes-base.hubspot, n8n-nodes-base.salesforce, n8n-nodes-base.filter, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by explorium.

Original n8n.io source

1.1 Workflow description

Title
Automate HubSpot to Salesforce lead creation with Explorium AI enrichment
Workflow name
Automate HubSpot to Salesforce lead creation with Explorium AI enrichment

Automatically enrich prospect data from HubSpot using Explorium and create leads in Salesforce

This n8n workflow streamlines the process of enriching prospect information by automatically pulling data from HubSpot, processing it through Explorium's AI-powered tools, and creating new leads in Salesforce with enhanced prospect details.

Credentials Required

To use this workflow, set up the following credentials in your n8n environment:

HubSpot

  • Type: App Token (or OAuth2 for broader compatibility)
  • Used for: triggering on new contacts, fetching contact data

Explorium API

  • Type: Generic Header Auth
  • Header: Authorization
  • Value: Bearer YOUR_API_KEY

Get explorium api key

Salesforce

  • Type: OAuth2 or Username/Password
  • Used for: creating new lead records

Go to Settings → Credentials, create these three credentials, and assign them in the respective nodes before running the workflow.

Workflow Overview

Node 1: HubSpot Trigger

This node listens for real-time events from the connected HubSpot account. Once triggered, the node passes metadata about the event to the next step in the flow.

Node 2: HubSpot

This node fetches contact details from HubSpot after the trigger event.

  • Credential: Connected using a HubSpot App Token
  • Resource: Contact
  • Operation: Get Contact
  • Return All: Disabled

This node retrieves the full contact details needed for further processing and enrichment.

Node 3: Match prospect

This node sends each contact's data to Explorium's AI-powered prospect matching API in real time.

The request body is dynamically built from contact data, typically including: full_name, company_name, email, phone_number, linkedin. These fields are matched against Explorium's intelligence graph to return enriched or validated profiles.

Response Output: total_matches, matched_prospects, and a prospect_id. Each response is used downstream to enrich, validate, or create lead information.

Node 4: Filter

This node filters the output from the Match prospect step to ensure that only valid, matched results continue in the flow. Only records that contain at least one matched prospect with a non-null prospect_id are passed forward.

Status: Currently deactivated (as shown by the "Deactivate" label)

Node 5: Extract Prospect IDs from Matched Results

This node extracts all valid prospect_id values from previously matched prospects and compiles them into a flat array. It loops over all matched items, extracts each prospect_id from the matched_prospects array and returns a single object with an array of all prospect_ids.

Node 6: Explorium Enrich Contacts Information

This node performs bulk enrichment of contacts by querying Explorium with a list of matched prospect_ids.

Node Configuration:

Returns enriched contact information, such as:

  • emails: professional/personal email addresses
  • phone_numbers: mobile and work numbers
  • professions_email, professional_email_status, mobile_phone

Node 7: Explorium Enrich Profiles

This additional enrichment node provides supplementary contact data enhancement, running in parallel with the primary enrichment process.

Node 8: Merge

This node combines multiple data streams from the parallel enrichment processes into a single output, allowing you to consolidate data from different Explorium enrichment endpoints. The "combine" setting indicates it will merge the incoming data streams rather than overwriting them.

Node 9: Code - flatten

This custom code node processes and transforms the merged enrichment data before creating the Salesforce lead. It can be used to:

  • Flatten nested data structures
  • Format data according to Salesforce field requirements
  • Apply business logic or data validation
  • Map Explorium fields to Salesforce lead properties
  • Handle data type conversions

Node 10: Salesforce

This final node creates new leads in Salesforce using the enriched data returned by Explorium.

  • Credential: Salesforce OAuth2 or Username/Password
  • Resource: Lead
  • Operation: Create Lead

The node creates new lead records with enriched information including contact details, company information, and professional data obtained through the Explorium enrichment process.

Workflow Flow Summary

  1. Trigger: HubSpot webhook triggers on new/updated contacts
  2. Fetch: Retrieve contact details from HubSpot
  3. Match: Find prospect matches using Explorium
  4. Filter: Keep only successfully matched prospects (currently deactivated)
  5. Extract: Compile prospect IDs for bulk enrichment
  6. Enrich: Parallel enrichment of contact information through multiple Explorium endpoints
  7. Merge: Combine enrichment results
  8. Transform: Flatten and prepare data for Salesforce (Code node)
  9. Create: Create new lead records in Salesforce

This workflow ensures comprehensive data enrichment while maintaining data quality and providing a seamless integration between HubSpot prospect data and Salesforce lead creation. The parallel enrichment structure maximizes data collection efficiency before creating high-quality leads in your CRM system.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Match_prospect

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 2 - Extract Prospect IDs from Matched Results

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 3 - Explorium Enrich Contacts Information

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.1

Block 5 - HubSpot Trigger

Type / Role
n8n-nodes-base.hubspotTrigger - hubspotTrigger
Config choices
Version 1

Block 6 - HubSpot

Type / Role
n8n-nodes-base.hubspot - hubspot
Config choices
Version 2.1

Block 7 - Salesforce

Type / Role
n8n-nodes-base.salesforce - salesforce
Config choices
Version 1

Block 8 - Code - flatten

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - Filter - non matched

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 10 - Explorium Enrich Profiles

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 11 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Automate HubSpot to Salesforce lead creation with Explorium AI enrichment
Complexity intermediate
Nodes 13
Categories Lead Generation, AI Summarization
Author explorium
Published 10 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4836/4836.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automate HubSpot to Salesforce lead creation with Explorium AI enrichment do?

Automatically enrich prospect data from HubSpot using Explorium and create leads in Salesforce This n8n workflow streamlines the process of enriching prospect information by automatically pulling d...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Generation, AI Summarization use case.