12 · Advanced
Enriches records in parallel, then sends VIPs to HubSpot and standard leads to Sheets.
Webhook
HTTP
Set
Merge
IF
HubSpot
Sheets
n8n canvas preview
Merge Enrich Route
Canvas via n8n-demo · import JSON into n8n.io → Workflows → Import from File
Writeup
POST /enrich fans into HTTP Enrich + Set Profile (tier=standard) → Merge combineByPosition → IF tier===vip → HubSpot deal else Sheets append → Respond { ok: true }.
Step by step — how to build it
01
Add Webhook
POST, Path enrich. Respond using Respond to Webhook node.
02
Fan out two branches
From Webhook add HTTP Request (GET foobar.thenionic.com) AND Set (tier = standard). Both leave the Webhook in parallel.
03
Add Merge
Connect both branches into Merge. Mode: Combine → Combine By Position.
04
Add IF VIP
Merge → IF. Condition: {{$json.tier}} equals vip.
05
True → HubSpot, false → Sheets
True: HubSpot create deal. False: Google Sheets append. Attach credentials + fill required fields.
06
Join into Respond
Both HubSpot and Sheets → Respond to Webhook → JSON { "ok": true }.
07
Test standard vs vip
With tier standard → Sheets path. Change Set (or body) to vip → HubSpot path. Both return { ok: true }.
How it functions
1 · Webhook
POST path enrich, responseMode responseNode. Two outgoing branches start in parallel.
2 · HTTP Enrich + Set Profile
HTTP Enrich GETs https://foobar.thenionic.com/. Set Profile assigns tier="standard" (demo).
3 · Merge
mode combine, combineByPosition — waits for both branches, then continues.
4 · IF VIP → HubSpot or Sheets → Respond
IF {{$json.tier}} equals "vip" → HubSpot VIP deal; else Sheets Std append. Both paths end at Respond { "ok": true }.
Setup notes
Credentials
HubSpot + Google Sheets. Point HTTP Enrich at a real enrichment API when ready.
Drive the VIP flag
Export defaults tier to standard — set tier from enrich data or webhook body to reach HubSpot.
Merge mode
Keep combineByPosition unless your branch item counts differ — then switch combine strategy.
Activate & test both paths
POST …/webhook/enrich with tier standard vs vip; confirm Sheets vs HubSpot + { ok: true }.
Tips
With demo Set Profile always standard, the HubSpot branch never runs until you change tier.
Respond after both CRM paths so the HTTP client doesn’t hang on slow HubSpot.
Import into n8n.io → Workflows → Import from File, attach credentials, activate.