The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "LeadCapture Pro \u2014 Boas-vindas WhatsApp",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "lead-criado",
"responseMode": "onReceived",
"options": {}
},
"id": "webhook-trigger",
"name": "Webhook \u2014 Novo Lead",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
240,
300
]
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"categoria\"]}}",
"operation": "isNotEmpty"
}
]
}
},
"id": "check-lead-valid",
"name": "Lead v\u00e1lido?",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
460,
300
]
},
{
"parameters": {
"jsCode": "const lead = $input.first().json;\nconst nome = lead.nome?.split(' ')[0] || 'voc\u00ea';\nconst marca = lead.marca_nome || 'nossa empresa';\nconst emoji = lead.marca_emoji || '\ud83c\udfaf';\n\nreturn [{\n json: {\n ...lead,\n mensagem_whatsapp: `Ol\u00e1, ${nome}! \ud83d\udc4b\\n\\nRecebemos seu interesse em *${marca}* ${emoji}\\n\\nEm breve um de nossos consultores ir\u00e1 entrar em contato com mais informa\u00e7\u00f5es personalizadas para voc\u00ea.\\n\\n_Equipe ${marca}_`\n }\n}];"
},
"id": "montar-mensagem",
"name": "Montar mensagem",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
680,
220
]
},
{
"parameters": {
"method": "POST",
"url": "={{$env.EVOLUTION_API_URL}}/message/sendText/={{$env.EVOLUTION_INSTANCE}}",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "apikey",
"value": "={{$env.EVOLUTION_API_KEY}}"
}
]
},
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "number",
"value": "=55{{$json[\"telefone\"]}}"
},
{
"name": "textMessage",
"value": "={ \"text\": \"{{$json[\"mensagem_whatsapp\"]}}\" }"
}
]
},
"options": {}
},
"id": "enviar-whatsapp",
"name": "Enviar WhatsApp",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4,
"position": [
900,
220
]
},
{
"parameters": {
"jsCode": "const lead = $input.first().json;\nconsole.log('[Automa\u00e7\u00e3o] Lead inv\u00e1lido ignorado:', lead.id);\nreturn [];"
},
"id": "ignorar-lead",
"name": "Ignorar lead inv\u00e1lido",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
680,
400
]
}
],
"connections": {
"Webhook \u2014 Novo Lead": {
"main": [
[
{
"node": "Lead v\u00e1lido?",
"type": "main",
"index": 0
}
]
]
},
"Lead v\u00e1lido?": {
"main": [
[
{
"node": "Montar mensagem",
"type": "main",
"index": 0
}
],
[
{
"node": "Ignorar lead inv\u00e1lido",
"type": "main",
"index": 0
}
]
]
},
"Montar mensagem": {
"main": [
[
{
"node": "Enviar WhatsApp",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1"
},
"meta": {
"description": "Envia mensagem de boas-vindas no WhatsApp assim que um novo lead \u00e9 capturado.",
"version": "1.0.0",
"author": "Zafal\u00e3o Tech",
"tags": [
"leadcapture",
"whatsapp",
"comunicacao"
]
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
LeadCapture Pro — Boas-vindas WhatsApp. Uses httpRequest. Webhook trigger; 5 nodes.
Source: https://github.com/juzafalao/leadcapture-pro/blob/d243e1d06f3e3b1bdba757646dc47f960c05caba/automacao/workflows/boas-vindas-whatsapp.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Ad agencies needing automated lead capture. Sales teams fighting fraud and scoring leads. B2B SaaS companies nurturing prospects. Marketing pros boosting sales pipelines. Captures leads via Webhook fr
Store leads in a SQL Server database via REST API with automatic scoring and Slack notifications.
This workflow captures shoe-shopping leads via a Tally form webhook, matches products from Google Sheets, uses a local Llama model (Ollama HTTP API) to score the lead and draft recommendations, then e
This workflow captures real estate leads via a webhook, uses an OpenAI-compatible Chat Completions API call to qualify and draft a reply, then sends emails through Gmail and logs the lead to Google Sh
Instantly reach new leads on WhatsApp when they submit a form (Typeform, JotForm, Google Forms, or any webhook-enabled form) using MoltFlow (https://molt.waiflow.app). Leads are also logged to Google