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": "Engajamento - Resumo semanal para cada lideran\u00e7a",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "cronExpression",
"expression": "30 8 * * 1"
}
]
}
},
"id": "d4e5f6a7-0001-4000-9000-000000000001",
"name": "Cron segunda 08h30",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.2,
"position": [
240,
300
]
},
{
"parameters": {
"method": "GET",
"url": "={{$env.REDE_GUTI_API_URL}}/automation/weekly-leader-summaries",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Accept",
"value": "application/json"
}
]
},
"options": {
"timeout": 30000,
"response": {
"response": {
"neverError": false,
"fullResponse": false
}
}
}
},
"id": "d4e5f6a7-0002-4000-9000-000000000002",
"name": "GET resumos semanais",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
480,
300
],
"credentials": {
"httpHeaderAuth": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"jsCode": "// Uma mensagem personalizada por lideran\u00e7a com WhatsApp cadastrado.\nconst data = $input.item.json;\nconst out = [];\n\nfor (const s of data.summaries || []) {\n const rank = s.rankingPosition\n ? `${s.rankingPosition}\u00ba no ranking geral`\n : 'ainda sem posi\u00e7\u00e3o no ranking';\n const message =\n `Bom dia, ${s.userName}! \u2600\ufe0f Resumo da sua semana na Rede Guti:\\n\\n` +\n `\u2b50 ${s.weeklyPoints} pontos conquistados\\n` +\n `\ud83d\udc65 ${s.weeklyIndications} indica\u00e7\u00f5es na semana (total: ${s.totalIndications})\\n` +\n `\ud83c\udfc6 Voc\u00ea est\u00e1 em ${rank}, com ${s.score} pts\\n\\n` +\n `Nova semana, novas oportunidades \u2014 compartilhe seu link e bora pra cima! \ud83d\udcaa`;\n out.push({ json: { phone: s.phone, message, userId: s.userId } });\n}\n\nreturn out;"
},
"id": "d4e5f6a7-0003-4000-9000-000000000003",
"name": "Montar mensagens",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
720,
300
]
},
{
"parameters": {
"method": "POST",
"url": "={{$env.WHATSAPP_API_URL}}",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
}
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n \"number\": \"{{$json.phone}}\",\n \"text\": {{JSON.stringify($json.message)}}\n}",
"options": {
"timeout": 10000,
"batching": {
"batch": {
"batchSize": 1,
"batchInterval": 2000
}
},
"response": {
"response": {
"neverError": true,
"fullResponse": true
}
}
}
},
"id": "d4e5f6a7-0004-4000-9000-000000000004",
"name": "Enviar WhatsApp",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
960,
300
],
"credentials": {
"httpHeaderAuth": {
"name": "<your credential>"
}
},
"onError": "continueRegularOutput"
}
],
"connections": {
"Cron segunda 08h30": {
"main": [
[
{
"node": "GET resumos semanais",
"type": "main",
"index": 0
}
]
]
},
"GET resumos semanais": {
"main": [
[
{
"node": "Montar mensagens",
"type": "main",
"index": 0
}
]
]
},
"Montar mensagens": {
"main": [
[
{
"node": "Enviar WhatsApp",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1"
},
"meta": {
"templateCredsSetupCompleted": false,
"description": "Toda segunda \u00e0s 08h30 busca GET /automation/weekly-leader-summaries e envia o resumo individual (pontos, indica\u00e7\u00f5es, ranking) no WhatsApp de cada L\u00edder Regional com n\u00famero cadastrado. Vari\u00e1veis: REDE_GUTI_API_URL, WHATSAPP_API_URL. Credentials: 'Rede Guti Automation Token' e 'WhatsApp API Header Auth'. Complementa o resumo do coordenador (workflow separado)."
},
"tags": []
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
httpHeaderAuth
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Engajamento - Resumo semanal para cada liderança. Uses httpRequest. Scheduled trigger; 4 nodes.
Source: https://github.com/kafune/rede-guti/blob/81ad521d73f1cf7ace8c0f9b9650b27a0d965129/automations/n8n/engajamento-resumo-semanal-lider.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.
Birthday Automation - Production (Fixed). Uses stopAndError, httpRequest, emailSend, bannerbear. Scheduled trigger; 86 nodes.
This template runs two scheduled workflows to govern Microsoft Entra ID (Azure AD) guest accounts by detecting stale users via Microsoft Graph, staging deletions in SharePoint with a 72-hour window, n
Jira-Allure-Auto-Qa. Uses httpRequest, jira. Scheduled trigger; 68 nodes.
Spotify-Sync-Surrealdb-V1. Uses httpRequest, n8n-nodes-surrealdb, spotify. Scheduled trigger; 62 nodes.
As n8n instances scale, teams often lose track of sub-workflows—who uses them, where they are referenced, and whether they can be safely updated. This leads to inefficiencies like unnecessary copies o