This workflow automates data enrichment using the Clearbit API in n8n. Key nodes include Enrichment Request Webhook for receiving POST requests, Validate Request to extract input data, Check Enrichment Type to route requests, Enrich Company and Enrich Person for API calls, and Process Company/Person Data to format results. Setup Requirements: Install n8n by downloading from n8n.io for local setup or sign up at cloud.n8n.io for cloud access. For Clearbit, visit clearbit.com, sign up, and obtain an API key from the dashboard. In n8n, go to Credentials > Add Credential > HTTP Basic Auth, name it 'clearbitApi', and enter the API key as the password (leave username blank). Configure the Enrichment Request Webhook node with a unique path (e.g., 'enrich-webhook'). Ensure Enrich Company and Enrich Person nodes use the correct URLs and reference the 'clearbitApi' credential. Missing credentials trigger an authentication error; verify the API key. Invalid inputs (e.g., missing domain/email) result in a 'found: false' response. Testing and Deployment: Import the JSON into n8n’s workflow editor. Test the webhook with a POST request (e.g., curl -X POST http://your-n8n-instance/enrich-webhook -d '{"type":"company","domain":"example.com"}' or '{"type":"person","email":"user@example.com"}'). Validate outputs in Process Company Data or Process Person Data nodes, checking fields like name, industry, or job_title. Ensure 'found: true' for successful enrichments. Handle errors like invalid domains/emails, which return empty fields. Deploy by activating the workflow in n8n and integrating the webhook URL into your application. Monitor logs for issues like failed API calls or missing inputs to ensure reliable data enrichment and robust error handling.
$5.49
Workflow steps: 9
Integrated apps: webhook, set, if