{"product_id":"n8n-error-workflow-retry-failed-executions-gmail-alerts","title":"n8n Error Workflow: Retry Failed Executions + Gmail Alerts","description":"\u003ch3\u003eAutomatically retry failed n8n executions and notify you via Gmail\u003c\/h3\u003e\n\u003cp\u003eIf your n8n workflows occasionally fail due to transient issues like timeouts, rate limits, or temporary server errors, this \u003cstrong\u003en8n Error Workflow: Retry Failed Executions + Gmail Alerts\u003c\/strong\u003e helps you “auto-heal” those failures by detecting retryable errors, retrying once through the n8n API, and sending clear Gmail notifications for success or failure.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDetects failed executions\u003c\/strong\u003e using the \u003cstrong\u003en8n Error Trigger\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAnalyzes the error message\u003c\/strong\u003e and classifies it as retryable (e.g., timeouts, rate limits, and \u003cstrong\u003e429\/502\/503\u003c\/strong\u003e responses), while also preventing retry loops.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWaits 30 seconds\u003c\/strong\u003e before attempting recovery.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRetries the failed execution once\u003c\/strong\u003e via an \u003cstrong\u003eHTTP request\u003c\/strong\u003e to the n8n REST API (using an \u003cstrong\u003en8nApi\u003c\/strong\u003e credential with permission to retry executions).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSends Gmail notifications\u003c\/strong\u003e:\n    \u003cul\u003e\n      \u003cli\u003eAn “auto-healed” email if the retried execution succeeds.\u003c\/li\u003e\n      \u003cli\u003eAn alert email if the error is not retryable or if the retry attempt fails.\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eReduce manual intervention when n8n runs fail intermittently due to \u003cstrong\u003erate limits\u003c\/strong\u003e or temporary \u003cstrong\u003e5xx\u003c\/strong\u003e responses.\u003c\/li\u003e\n  \u003cli\u003eMonitor production workflows by sending \u003cstrong\u003eGmail alerts\u003c\/strong\u003e whenever an execution can’t be recovered.\u003c\/li\u003e\n  \u003cli\u003eImprove reliability for SaaS operators running time-sensitive automations that should recover automatically when possible.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eNodes\/tech stack: \u003cstrong\u003eif\u003c\/strong\u003e, \u003cstrong\u003ecode\u003c\/strong\u003e, \u003cstrong\u003ewait\u003c\/strong\u003e, \u003cstrong\u003egmail\u003c\/strong\u003e, \u003cstrong\u003esticky note\u003c\/strong\u003e, \u003cstrong\u003ehttp request\u003c\/strong\u003e\n\u003c\/li\u003e\n  \u003cli\u003eKey integrations: \u003cstrong\u003en8n Error Trigger\u003c\/strong\u003e, \u003cstrong\u003en8n REST API\u003c\/strong\u003e retry endpoint, \u003cstrong\u003eGmail\u003c\/strong\u003e notifications\u003c\/li\u003e\n  \u003cli\u003eSetup highlights:\n    \u003cul\u003e\n      \u003cli\u003eConfigure \u003cstrong\u003en8nApi\u003c\/strong\u003e credential and your n8n base URL in the retry API request.\u003c\/li\u003e\n      \u003cli\u003eProvide a \u003cstrong\u003eGmail\u003c\/strong\u003e credential and recipient address in both Gmail nodes.\u003c\/li\u003e\n      \u003cli\u003eActivate the workflow and set it as the \u003cstrong\u003eError workflow\u003c\/strong\u003e for workflows you want to monitor.\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45895376011443,"sku":"N8N-18644","price":51.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/Pn59TiTIsBoCffZF6O3YZ_bWw6g8Pt.png?v=1787649311","url":"https:\/\/buyflowscripts.com\/products\/n8n-error-workflow-retry-failed-executions-gmail-alerts","provider":"N8N Commerce","version":"1.0","type":"link"}