{ "name": "Automated Brazil B2B CNPJ, Partners (QSA) & CNAE Lead Enricher — Daily B2B Data & Compliance Pipeline", "nodes": [ { "parameters": { "content": "## Automated Brazil B2B CNPJ, Partners (QSA) & CNAE Lead Enricher Pipeline (Daily B2B M2M Workflow)\n\n**Overview:**\nMathematical Modulo 11 validator and batch B2B company lead enricher for Brazilian CNPJs via BrasilAPI and OpenCNPJA. Extracts Razao Social, Nome Fantasia, Situacao Cadastral, CNAEs, Capital Social, Simples Nacional/MEI status, partners (QSA), and contact details.\n\n**Powered by Apify Actor:** [b2b-quant-apis/brazil-b2b-cnpj-qsa-lead-enricher](https://apify.com/b2b-quant-apis/brazil-b2b-cnpj-qsa-lead-enricher)\n\n### Quick Setup (2 Minutes):\n1. Create a free Apify account and copy your personal token from **Settings -> Integrations**.\n2. Open the **Apify Engine: brazil-b2b-cnpj-qsa-lead-enricher** HTTP Request node and configure a **Header Auth** credential with:\n - **Name:** `Authorization`\n - **Value:** `Bearer `\n3. Customize the JSON input payload in the HTTP Request node and set your destination Webhook/Slack URL.\n4. Toggle the workflow **Active** to run automatically every morning at 07:00 AM!", "height": 380, "width": 520, "color": 4 }, "id": "a6340fee-7595-5c58-b9ef-b4db93499c45", "name": "Setup Instructions & Architecture", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, "position": [ 180, 80 ] }, { "parameters": { "rule": { "interval": [ { "field": "cronExpression", "expression": "0 7 * * *" } ] } }, "id": "ded0998b-5da3-5715-b522-a4acfa36dc92", "name": "Daily 07:00 AM Schedule Trigger", "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.2, "position": [ 220, 520 ] }, { "parameters": { "method": "POST", "url": "https://api.apify.com/v2/acts/b2b-quant-apis~brazil-b2b-cnpj-qsa-lead-enricher/run-sync-get-dataset-items", "authentication": "genericCredentialType", "genericAuthType": "httpHeaderAuth", "sendBody": true, "specifyBody": "json", "jsonBody": "{\n \"cnpjs\": [\n \"00000000000191\",\n \"33000167000101\"\n ],\n \"include_qsa\": true\n}", "options": { "timeout": 300000 } }, "id": "24828bbd-89c4-558e-8db4-d8d8ac436be3", "name": "Apify Engine: brazil-b2b-cnpj-qsa-lead-enricher", "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.2, "position": [ 500, 520 ] }, { "parameters": { "conditions": { "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict" }, "conditions": [ { "id": "ba69f79b-92fe-54e1-899d-8fbcf5d8df47", "leftValue": "={{ Object.keys($json).length }}", "rightValue": 0, "operator": { "type": "number", "operation": "gt" } } ], "combinator": "and" } }, "id": "2730e8db-850d-533e-9556-0940fab015ff", "name": "Validate Structured Dataset Output", "type": "n8n-nodes-base.filter", "typeVersion": 2, "position": [ 780, 520 ] }, { "parameters": { "method": "POST", "url": "https://api.example.com/v1/b2b-compliance-webhook-receiver", "sendBody": true, "specifyBody": "json", "jsonBody": "={{ JSON.stringify({ actor: 'brazil-b2b-cnpj-qsa-lead-enricher', timestamp: $now, record: $json }) }}", "options": { "timeout": 30000 } }, "id": "fa55d457-93bf-5bff-bead-3d15ceb0e227", "name": "Dispatch to Enterprise CRM / Slack Webhook", "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.2, "position": [ 1060, 520 ] } ], "connections": { "Daily 07:00 AM Schedule Trigger": { "main": [ [ { "node": "Apify Engine: brazil-b2b-cnpj-qsa-lead-enricher", "type": "main", "index": 0 } ] ] }, "Apify Engine: brazil-b2b-cnpj-qsa-lead-enricher": { "main": [ [ { "node": "Validate Structured Dataset Output", "type": "main", "index": 0 } ] ] }, "Validate Structured Dataset Output": { "main": [ [ { "node": "Dispatch to Enterprise CRM / Slack Webhook", "type": "main", "index": 0 } ] ] } }, "pinData": {}, "meta": { "templateCredsSetupCompleted": false, "apifyStoreActor": "b2b-quant-apis/brazil-b2b-cnpj-qsa-lead-enricher", "estimatedPpeUsdPerEvent": 0.015 }, "settings": { "executionOrder": "v1" }, "staticData": null }