Skip to main content

Enrich CRM contact data with LinkedIn profiles using GPT & multi-CRM support

Workflow preview

Workflow preview
100%
Enrich CRM contact data with LinkedIn profiles using GPT & multi-CRM support preview
Open on n8n.io

Important notice

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

1. Workflow Overview

️ DISCLAIMER: This workflow uses the AnySite LinkedIn community node, which is only available on self hosted n8n instances. It will not work on n8n.cloud. Ove...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.pipedrivetool, n8n-nodes-base.hubspottrigger, n8n-nodes-base.if, n8n-nodes-base.pipedrivetrigger, @n8n/n8n-nodes-langchain.agent, n8n-nodes-hdw.hdwlinkedintool, n8n-nodes-base.hubspottool

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Enrich CRM contact data with LinkedIn profiles using GPT & multi-CRM support
Workflow name
Enrich CRM contact data with LinkedIn profiles using GPT & multi-CRM support

⚠️ DISCLAIMER: This workflow uses the AnySite LinkedIn community node, which is only available on self-hosted n8n instances. It will not work on n8n.cloud.

Overview

This n8n workflow automates the enrichment of CRM contact data with professional insights from LinkedIn profiles. The workflow integrates with both Pipedrive and HubSpot CRMs, finding LinkedIn profiles that match your contacts and updating your CRM with valuable information about their professional background and recent activities.

Key Features

  • Multi-CRM Support: Works with both Pipedrive and HubSpot
  • AI-Powered Data Enrichment: Uses an advanced AI agent to analyze and summarize professional information
  • Automated Triggers: Activates when new contacts are added or when enrichment is requested
  • Comprehensive Profile Analysis: Captures LinkedIn profile summaries and post activity

How It Works

Triggers

The workflow activates in three scenarios:

  1. When a new contact is created in CRM
  2. When a contact is updated in CRM with an enrichment flag

LinkedIn Data Collection Process

  1. Email Lookup: First tries to find the LinkedIn profile using the contact's email
  2. Advanced Search: If email lookup fails, uses name and company details to find potential matches
  3. Profile Analysis: Collects comprehensive profile information
  4. Post Analysis: Gathers and analyzes the contact's recent LinkedIn activity

CRM Updates

The workflow updates your CRM with:

  • LinkedIn profile URL
  • Professional summary (skills, experience, background)
  • Analysis of recent LinkedIn posts and activity

Setup Instructions

Requirements

  1. Self-hosted n8n instance with the HDW LinkedIn community node installed
  2. API access to OpenAI (for GPT-4o)
  3. Pipedrive and/or HubSpot account
  4. AnySite API key https://AnySite.io

Installation Steps

  1. Install the HDW LinkedIn Node:

    npm install n8n-nodes-hdw
    
  2. Configure Credentials:

    • OpenAI: Add your OpenAI API key
    • Pipedrive: Connect your Pipedrive account (if using)
    • HubSpot: Connect your HubSpot account (if using)
    • AnySite LinkedIn: Add your API key from https://AnySite.io
  3. CRM Custom Fields Setup:

    For Pipedrive:

    • Go to Settings → Data Fields → Contact Fields → + Add Field
    • Create the following custom fields:
      • LinkedIn Profile: Field type - Large text
      • Profile Summary: Field type - Large text
      • LinkedIn Posts Summary: Field type - Large text
      • Need Enrichment: Field type - Single option (Yes/No)

    Detailed instructions for creating custom fields in Pipedrive: https://support.pipedrive.com/en/article/custom-fields

    For HubSpot:

    • Go to Settings → Properties → Create property
    • Create the following properties for Contact object:
      • linkedin_url: Field type - Single-line text
      • profile_summary: Field type - Multi-line text
      • linkedin_posts_summary: Field type - Multi-line text
      • need_enrichment: Field type - Checkbox (Boolean)

    Detailed instructions for creating properties in HubSpot: https://knowledge.hubspot.com/properties/create-and-edit-properties

  4. Import the Workflow:

    • Import the "HDW_CRM_Enrichment.json" file into your n8n instance
  5. Activate Webhooks:

    • Enable the webhook triggers for your CRM to ensure the workflow activates correctly

Customization Options

AI Agent Prompts

You can modify the system prompts in the "Data Enrichment AI Agent" nodes to:

  • Change the focus of profile analysis
  • Adjust the tone and detail level of summaries
  • Customize what information is extracted from posts

CRM Field Mapping

The workflow is pre-configured to update specific custom fields in Pipedrive and HubSpot. Update the field/property mappings in:

  • "Update data in Pipedrive" nodes
  • "Update data in HubSpot" node

Troubleshooting

Common Issues

  • LinkedIn Profile Not Found: Check if the contact's email is their work email; consider adjusting the search parameters
  • Webhook Not Triggering: Verify webhook configuration in your CRM
  • Missing Custom Fields: Ensure all required custom fields are created in your CRM with correct names

Rate Limits

  • Be aware of LinkedIn API rate limits (managed by AnySite LinkedIn node)
  • Consider implementing delays if processing large batches of contacts

Best Practices

  • Use enrichment flags to selectively update contacts rather than enriching all contacts
  • Review and clean contact data in your CRM before enrichment
  • Periodically review the AI-generated summaries to ensure quality and relevance

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 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 2 - Get Company from CRM

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

Block 3 - OpenAI Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 4 - Get Company from CRM1

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

Block 5 - OpenAI Chat Model2

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 6 - HubSpot Trigger

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

Block 7 - If1

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

Block 8 - If2

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

Block 9 - Pipedrive Trigger New Contact

Type / Role
n8n-nodes-base.pipedriveTrigger - pipedriveTrigger
Config choices
Version 1.1

Block 10 - Data Enrichment AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.9

Block 11 - HDW Get LinkedIn profile by Email

Type / Role
n8n-nodes-hdw.hdwLinkedinTool - hdwLinkedinTool
Config choices
Version 1

Block 12 - Update data in Pipedrive

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

Block 13 - HDW Search LinkedIn Profile

Type / Role
n8n-nodes-hdw.hdwLinkedinTool - hdwLinkedinTool
Config choices
Version 1

Block 14 - HDW Get LinkedIn Profile Details

Type / Role
n8n-nodes-hdw.hdwLinkedinTool - hdwLinkedinTool
Config choices
Version 1

Block 15 - HDW Get LinkedIn Profile Posts

Type / Role
n8n-nodes-hdw.hdwLinkedinTool - hdwLinkedinTool
Config choices
Version 1

Block 16 - Pipedrive Trigger Update Data for Existing Client

Type / Role
n8n-nodes-base.pipedriveTrigger - pipedriveTrigger
Config choices
Version 1.1

Block 17 - Enrich Flag is True

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

Block 18 - HDW Get LinkedIn profile by Email1

Type / Role
n8n-nodes-hdw.hdwLinkedinTool - hdwLinkedinTool
Config choices
Version 1

Block 19 - HDW Get LinkedIn profile by Email2

Type / Role
n8n-nodes-hdw.hdwLinkedinTool - hdwLinkedinTool
Config choices
Version 1

Block 20 - Data Enrichment AI Agent1

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.9

Block 21 - Data Enrichment AI Agent2

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.9

Block 22 - Update data in Pipedrive1

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

Block 23 - Update data in HubSpot

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

Block 24 - HDW Search LinkedIn Profile1

Type / Role
n8n-nodes-hdw.hdwLinkedinTool - hdwLinkedinTool
Config choices
Version 1

Showing the first 24 of 42 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Enrich CRM contact data with LinkedIn profiles using GPT & multi-CRM support
Complexity advanced
Nodes 42
Categories Lead Generation, AI Summarization
Author Andrey
Published 20 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4242/4242.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 Enrich CRM contact data with LinkedIn profiles using GPT & multi-CRM support do?

️ DISCLAIMER: This workflow uses the AnySite LinkedIn community node, which is only available on self hosted n8n instances. It will not work on n8n.cloud. Ove...

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.