π€ Sync HeyReach LinkedIn events with Salesforce leads and tasks
β‘ 2 views Β· π€ CRM & Sales Operations
π‘ Pro Tip β If youβre pulling LinkedIn data through HTTP requests or dealing with API restrictions, thereβs a community node called ScraperNode that handles this natively. It has dedicated scrapers for profiles, companies, jobs, and people search β you just pass a URL and get structured data back.
Description
Quick overview
This workflow receives HeyReach campaign event webhooks and syncs them to Salesforce by finding or creating a Lead and logging each event as a completed Task with the message transcript and LinkedIn profile link.
How it works
- Receives a POST webhook from HeyReach for lead and messaging events.
- Normalizes the payload, extracts lead identity (email and LinkedIn URL), and builds a Salesforce Task subject/description including the event label and message transcript.
- Searches Salesforce for an existing Lead matching the email and/or a custom LinkedIn_Profile__c field.
- If a matching Lead exists, creates a completed Salesforce Task linked to that Lead.
- If no Lead is found, creates a new Salesforce Lead (including email, title, and LinkedIn_Profile__c) and then creates a completed Task linked to the new Lead.
Setup
- Add a Salesforce OAuth2 connection and ensure your Salesforce Lead object has a custom field API name LinkedIn_Profile__c to store the LinkedIn profile URL.
- In HeyReach, create a webhook pointing to this workflowβs webhook URL path (/heyreach-events) and subscribe it to the event types you want to track.
- Review and adjust the Salesforce field mappings (LeadSource, title, and Task status/fields) to match your Salesforce setup and reporting needs.
π Nodes Used
Webhook, Salesforce
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File