{
  "name": "Auto-retry engine: error recovery workflow",
  "nodes": [
    {
      "id": "ca8badce-4a43-4e86-acb8-6a3939ffa597",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        580,
        740
      ]
    },
    {
      "id": "7867cbd1-bf14-488d-9bbf-11d4478f93f2",
      "name": "n8n",
      "type": "n8n-nodes-base.n8n",
      "position": [
        1160,
        860
      ]
    },
    {
      "id": "b9826e10-43b9-4a21-b2f8-f91fdee3e6a2",
      "name": "Log into n8n",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        960,
        860
      ]
    },
    {
      "id": "1ca0527f-ccc4-4b3f-b585-94550987e0d3",
      "name": "retry workflow automatically",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2080,
        980
      ]
    },
    {
      "id": "b0b2f473-e12c-4377-80d3-46b18faa09b9",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        1380,
        860
      ]
    },
    {
      "id": "6ea6fe2c-de31-4628-87b1-69e7ba867030",
      "name": "No Operation, do nothing",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1620,
        680
      ]
    },
    {
      "id": "851277e1-5b0e-4391-8174-2c118aacfa30",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        100,
        780
      ],
      "parameters": {
        "width": 383.5091496232509,
        "height": 285.0376749192681,
        "content": "- ## check for failed executions hourly.\n- ## filter out those that have successful reexecution ids.\n- ## log into n8n and get the session ids.\n- ## retry the executions.\n\n- h\n"
      }
    },
    {
      "id": "5b8bf8c1-f505-42da-936d-637394e71b34",
      "name": "login_details",
      "type": "n8n-nodes-base.set",
      "position": [
        760,
        860
      ]
    },
    {
      "id": "74716a90-25a2-48b6-b342-197fe3807a3d",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1620,
        940
      ]
    },
    {
      "id": "6439f486-68d4-4f9e-8e7f-3df909e32324",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        580,
        980
      ]
    },
    {
      "id": "882c03ea-d9e0-4d00-b4c6-5a1c55994fb0",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        740,
        740
      ],
      "parameters": {
        "width": 349.5813953488373,
        "height": 278.232558139535,
        "content": "## Set the login credential details in the set node, and login to n8n via api."
      }
    },
    {
      "id": "bcc4d7e3-a91e-4c90-a018-56c6321f6ae2",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1140,
        740
      ],
      "parameters": {
        "width": 343.81395348837225,
        "height": 263.8139534883721,
        "content": "## Get all `Error` executions.\n- ### Filter out those that have been successfully retried\n"
      }
    },
    {
      "id": "9219f2a8-8b71-45e0-a987-7e8c1a6364fe",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1780,
        880
      ],
      "parameters": {
        "width": 444.7441860465116,
        "height": 268.139534883721,
        "content": "## Retry the executions.\n- ### Feel free to add notifications error messages for failed one to  email or slack"
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "n8n": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log into n8n": {
      "main": [
        [
          {
            "node": "n8n",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "execution_id": {
      "main": [
        [
          {
            "node": "retry workflow automatically",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "login_details": {
      "main": [
        [
          {
            "node": "Log into n8n",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "execution_id",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "login_details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "retry workflow automatically": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "login_details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}