AutomationFlowsWeb Scraping › Manutenção Diária - Recalcular Ranking E Varrer Líderes Inativos

Manutenção Diária - Recalcular Ranking E Varrer Líderes Inativos

Manutenção diária - Recalcular ranking e varrer líderes inativos. Uses httpRequest. Scheduled trigger; 4 nodes.

Cron / scheduled trigger★★★★☆ complexity4 nodesHTTP Request
Web Scraping Trigger: Cron / scheduled Nodes: 4 Complexity: ★★★★☆ Added:

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 →

Download .json
{
  "name": "Manuten\u00e7\u00e3o di\u00e1ria - Recalcular ranking e varrer l\u00edderes inativos",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "cronExpression",
              "expression": "0 3 * * *"
            }
          ]
        }
      },
      "id": "b2c3d4e5-0001-4000-9000-000000000001",
      "name": "Cron di\u00e1rio 03h",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        240,
        300
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "={{$env.REDE_GUTI_API_URL}}/automation/recalculate",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Accept",
              "value": "application/json"
            }
          ]
        },
        "options": {
          "timeout": 60000,
          "response": {
            "response": {
              "neverError": false,
              "fullResponse": false
            }
          }
        }
      },
      "id": "b2c3d4e5-0002-4000-9000-000000000002",
      "name": "POST recalculate",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        480,
        300
      ],
      "credentials": {
        "httpHeaderAuth": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "method": "POST",
        "url": "={{$env.REDE_GUTI_API_URL}}/automation/scan-inactive",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Accept",
              "value": "application/json"
            }
          ]
        },
        "options": {
          "timeout": 60000,
          "response": {
            "response": {
              "neverError": false,
              "fullResponse": false
            }
          }
        }
      },
      "id": "b2c3d4e5-0003-4000-9000-000000000003",
      "name": "POST scan-inactive",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        720,
        300
      ],
      "credentials": {
        "httpHeaderAuth": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "const recalc = $('POST recalculate').item.json;\nconst scan = $input.item.json;\nconsole.log('[manutencao-diaria]', JSON.stringify({ recalculated: recalc.recalculated, scan }));\nreturn [{ json: { ok: true, recalculated: recalc.recalculated, scan } }];"
      },
      "id": "b2c3d4e5-0004-4000-9000-000000000004",
      "name": "Log resultado",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        960,
        300
      ]
    }
  ],
  "connections": {
    "Cron di\u00e1rio 03h": {
      "main": [
        [
          {
            "node": "POST recalculate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "POST recalculate": {
      "main": [
        [
          {
            "node": "POST scan-inactive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "POST scan-inactive": {
      "main": [
        [
          {
            "node": "Log resultado",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": false,
    "description": "Todo dia \u00e0s 03h chama POST /automation/recalculate (zera/recalcula contadores semanais e mensais, score e ranking) e POST /automation/scan-inactive (dispara leader.inactive_7_days para l\u00edderes parados). Vari\u00e1veis: REDE_GUTI_API_URL. Credential 'Rede Guti Automation Token' = header Authorization: Bearer <AUTOMATION_API_TOKEN do backend>."
  },
  "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.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Manutenção diária - Recalcular ranking e varrer líderes inativos. Uses httpRequest. Scheduled trigger; 4 nodes.

Source: https://github.com/kafune/rede-guti/blob/81ad521d73f1cf7ace8c0f9b9650b27a0d965129/automations/n8n/manutencao-diaria-recalculo-inativos.json — original creator credit. Request a take-down →

More Web Scraping workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Web Scraping

Birthday Automation - Production (Fixed). Uses stopAndError, httpRequest, emailSend, bannerbear. Scheduled trigger; 86 nodes.

Stop And Error, HTTP Request, Email Send +1
Web Scraping

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

Microsoft SharePoint, Microsoft Teams, Microsoft Entra +1
Web Scraping

Jira-Allure-Auto-Qa. Uses httpRequest, jira. Scheduled trigger; 68 nodes.

HTTP Request, Jira
Web Scraping

Spotify-Sync-Surrealdb-V1. Uses httpRequest, n8n-nodes-surrealdb, spotify. Scheduled trigger; 62 nodes.

HTTP Request, N8N Nodes Surrealdb, Spotify
Web Scraping

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

HTTP Request, n8n, N8N Trigger +1