{ "name": "LGM — Enrich a lead via webhook (request/response)", "nodes": [ { "parameters": { "httpMethod": "POST", "path": "lgm-enrich-lead", "responseMode": "responseNode", "options": {} }, "id": "webhook", "name": "Webhook (POST leadId)", "type": "n8n-nodes-base.webhook", "typeVersion": 2, "position": [0, 260], "webhookId": "lgm-enrich-lead" }, { "parameters": { "resource": "lead", "operation": "enrich", "enrichType": "FULL_ENRICH", "identifiers": { "leadId": "={{ $json.body.leadId }}" }, "mode": "sync" }, "id": "lgm-enrich", "name": "Enrich lead (full, sync)", "type": "@lagrowthmachine/n8n-nodes-lagrowthmachine.laGrowthMachine", "typeVersion": 1, "position": [260, 260], "credentials": { "laGrowthMachineApi": { "id": "REPLACE_ME", "name": "La Growth Machine account" } } }, { "parameters": { "respondWith": "allIncomingItems", "options": {} }, "id": "respond", "name": "Return result to caller", "type": "n8n-nodes-base.respondToWebhook", "typeVersion": 1, "position": [520, 260] }, { "parameters": { "content": "## Enrich on demand\n\nPOST `{ \"leadId\": \"<24-char LGM lead id>\" }` to the webhook URL → the lead is enriched (LinkedIn profile + pro email) and the full result is returned synchronously.\n\n**Notes**\n- `FULL_ENRICH` requires a **Lead ID**. For a raw contact (name/email only), first use *Lead → Create or Update*, then enrich, or use `EMAIL_ENRICH` which works without an id.\n- **sync** mode waits for the result; for very large jobs switch to **polling** and add *Lead → Get Enrich Result*.\n- Enrichment consumes LGM credits (Email 5 / LinkedIn 1 / Full 5).", "height": 300, "width": 420 }, "id": "note", "name": "Setup", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, "position": [0, -80] } ], "connections": { "Webhook (POST leadId)": { "main": [[{ "node": "Enrich lead (full, sync)", "type": "main", "index": 0 }]] }, "Enrich lead (full, sync)": { "main": [[{ "node": "Return result to caller", "type": "main", "index": 0 }]] } }, "settings": { "executionOrder": "v1" }, "meta": { "templateCredsSetupCompleted": false } }