Look up Brazilian company data by CNPJ with forms and Minha Receita API
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This workflow has 11 nodes and runs when someone submits an n8n form (“CNPJ”). It uses only n8n's built-in nodes.
How it runs
Trigger: When someone submits an n8n form (“CNPJ”).
- Set API URL Parameters (Edit Fields (Set)): sets 2 fields: url, api_base_url
- Prepare CNPJ Format (Edit Fields (Set)): sets 1 field: CNPJ
- Check CNPJ Completeness (If): checks a condition and branches into true / false
- Fetch CNPJ Data (HTTP Request): calls an HTTP API
- Handle Form (n8n Form): shows the next form page
- Handle Form (n8n Form): shows the next form page
- Handle Form (n8n Form): shows the next form page
- Handle Form (n8n Form): shows the next form page
- Handle Form (n8n Form): shows the next form page
- Handle Form (n8n Form): shows the next form page
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (5)
- n8n Form Trigger
n8n-nodes-base.formTrigger - n8n Form
n8n-nodes-base.form - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if
From the author
Quick overview This workflow hosts an n8n form that accepts a Brazilian CNPJ, validates and normalizes the input, then queries the public Minha Receita API to fetch company registration details and displays either a formatted results page or an error page…