AutomationFlowsWeb Scraping › Birthday Retry Runner

Birthday Retry Runner

Birthday Retry Runner. Uses httpRequest, stopAndError, emailSend. Scheduled trigger; 14 nodes.

Cron / scheduled trigger★★★★☆ complexity14 nodesHTTP RequestStop And ErrorEmail Send
Web Scraping Trigger: Cron / scheduled Nodes: 14 Complexity: ★★★★☆ Added:

This workflow follows the Emailsend → HTTP Request recipe pattern — see all workflows that pair these two integrations.

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": "Birthday Retry Runner",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes",
              "minutesInterval": 10
            }
          ]
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        240,
        300
      ],
      "id": "retry-trigger",
      "name": "Every 10 Minutes"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "backend-url",
              "name": "backend_url",
              "value": "http://127.0.0.1:4000",
              "type": "string"
            },
            {
              "id": "service-token",
              "name": "service_token",
              "value": "dev_n8n_service_token_0123456789abcdef0123456789abcdef",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        460,
        300
      ],
      "id": "set-vars",
      "name": "Set Variables"
    },
    {
      "parameters": {
        "url": "={{ $('Set Variables').first().json.backend_url }}/api/system/config",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "x-service-token",
              "value": "={{ $('Set Variables').first().json.service_token }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        680,
        300
      ],
      "id": "check-system",
      "name": "Check System Status"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "paused",
              "leftValue": "={{ $json.system_paused }}",
              "rightValue": true,
              "operator": {
                "type": "boolean",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        900,
        300
      ],
      "id": "system-paused",
      "name": "System Paused?"
    },
    {
      "parameters": {
        "errorMessage": "System is paused, retry worker stopped"
      },
      "type": "n8n-nodes-base.stopAndError",
      "typeVersion": 1,
      "position": [
        1120,
        200
      ],
      "id": "stop-paused",
      "name": "Stop (Paused)"
    },
    {
      "parameters": {
        "url": "={{ $('Set Variables').first().json.backend_url }}/api/retry-queue/due",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "x-service-token",
              "value": "={{ $('Set Variables').first().json.service_token }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        1120,
        400
      ],
      "id": "fetch-due-retries",
      "name": "Fetch Due Retries"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "loose",
            "version": 2
          },
          "conditions": [
            {
              "id": "has-retries",
              "leftValue": "={{ $json.retries?.length || 0 }}",
              "rightValue": 0,
              "operator": {
                "type": "number",
                "operation": "gt"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        1340,
        400
      ],
      "id": "has-retries",
      "name": "Has Retries?"
    },
    {
      "parameters": {
        "jsCode": "const retries = $json.retries || [];\nreturn retries.map(r => ({ json: r }));"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        1560,
        400
      ],
      "id": "split-retries",
      "name": "Split Retries"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "is-email",
              "leftValue": "={{ $json.channel }}",
              "rightValue": "EMAIL",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        1780,
        400
      ],
      "id": "channel-split",
      "name": "Channel?"
    },
    {
      "parameters": {
        "fromEmail": "info@diplomaticresidences.in",
        "toEmail": "={{ $json.payload.email }}",
        "subject": "={{ $json.payload.subject || 'Birthday Greetings' }}",
        "message": "={{ $json.payload.message || 'Happy Birthday!' }}",
        "options": {}
      },
      "type": "n8n-nodes-base.emailSend",
      "typeVersion": 2.1,
      "position": [
        2000,
        300
      ],
      "id": "retry-email",
      "name": "Retry Email Send",
      "credentials": {
        "smtp": {
          "name": "<your credential>"
        }
      },
      "continueOnFail": true
    },
    {
      "parameters": {
        "method": "POST",
        "url": "={{ $json.payload.whatsapp_url || 'https://live-mt-server.wati.io/304793/api/v1/sendTemplateMessage' }}",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify($json.payload.whatsapp_body || {}) }}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        2000,
        500
      ],
      "id": "retry-whatsapp",
      "name": "Retry WhatsApp Send",
      "credentials": {
        "httpHeaderAuth": {
          "name": "<your credential>"
        }
      },
      "continueOnFail": true
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "loose",
            "version": 2
          },
          "conditions": [
            {
              "id": "success",
              "leftValue": "={{ $json.messageId || $json.result }}",
              "rightValue": "",
              "operator": {
                "type": "string",
                "operation": "notEmpty"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        2220,
        400
      ],
      "id": "retry-success",
      "name": "Retry Success?"
    },
    {
      "parameters": {
        "method": "DELETE",
        "url": "={{ $('Set Variables').first().json.backend_url }}/api/retry-queue/{{ $json.id }}",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "x-service-token",
              "value": "={{ $('Set Variables').first().json.service_token }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        2440,
        300
      ],
      "id": "delete-retry",
      "name": "Delete Retry Job"
    },
    {
      "parameters": {
        "method": "PUT",
        "url": "={{ $('Set Variables').first().json.backend_url }}/api/retry-queue/{{ $json.id }}/increment",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "x-service-token",
              "value": "={{ $('Set Variables').first().json.service_token }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        2440,
        500
      ],
      "id": "increment-retry",
      "name": "Increment Retry Count"
    }
  ],
  "connections": {
    "Every 10 Minutes": {
      "main": [
        [
          {
            "node": "Set Variables",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Variables": {
      "main": [
        [
          {
            "node": "Check System Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check System Status": {
      "main": [
        [
          {
            "node": "System Paused?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "System Paused?": {
      "main": [
        [
          {
            "node": "Stop (Paused)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Fetch Due Retries",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Due Retries": {
      "main": [
        [
          {
            "node": "Has Retries?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Has Retries?": {
      "main": [
        [
          {
            "node": "Split Retries",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Retries": {
      "main": [
        [
          {
            "node": "Channel?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Channel?": {
      "main": [
        [
          {
            "node": "Retry Email Send",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Retry WhatsApp Send",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Retry Email Send": {
      "main": [
        [
          {
            "node": "Retry Success?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Retry WhatsApp Send": {
      "main": [
        [
          {
            "node": "Retry Success?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Retry Success?": {
      "main": [
        [
          {
            "node": "Delete Retry Job",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Increment Retry Count",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1"
  }
}

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

Birthday Retry Runner. Uses httpRequest, stopAndError, emailSend. Scheduled trigger; 14 nodes.

Source: https://github.com/teampuriofficial-svg/wish/blob/d58805afedfdd9731b45b5f404c71fcb8db18276/n8n-workflows/Birthday_Retry_Runner.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

What To Eat. Uses httpRequest, emailSend, stopAndError. Scheduled trigger; 10 nodes.

HTTP Request, Email Send, Stop And Error
Web Scraping

This workflow is an improvement of this workflow by Greg Brzezinka.

HTTP Request, Email Send, XML +1
Web Scraping

N8N-Self-Updater. Uses ssh, emailSend, httpRequest. Scheduled trigger; 27 nodes.

Ssh, Email Send, HTTP Request
Web Scraping

&gt; An automated n8n workflow originally built for DigitalOcean-based n8n deployments, but fully compatible with any VPS or cloud hosting (e.g., AWS, Google Cloud, Hetzner, Linode, etc.) where n8n ru

Ssh, Email Send, HTTP Request
Web Scraping

What if you could spot a major sales problem—or a winning campaign—the very next morning, instead of weeks later? Imagine receiving a beautiful, data-rich alert directly in your inbox the moment your

QuickBooks, HTTP Request, Email Send