<script data-pm-proxy="intercept"></script><?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[n8n Explained]]></title><description><![CDATA[n8n, explained.]]></description><link>https://n8nexplained.substack.com</link><image><url>https://substackcdn.com/image/fetch/$s_!1Fky!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e97b4ee-3c4b-401a-88bd-d3f0044cb00c_260x260.png</url><title>n8n Explained</title><link>https://n8nexplained.substack.com</link></image><generator>Substack</generator><lastBuildDate>Sat, 05 Sep 2026 02:37:04 GMT</lastBuildDate><atom:link href="/__u/n8nexplained.substack.com/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[Minashi]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[n8nexplained@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[n8nexplained@substack.com]]></itunes:email><itunes:name><![CDATA[Sepideh Tajik]]></itunes:name></itunes:owner><itunes:author><![CDATA[Sepideh Tajik]]></itunes:author><googleplay:owner><![CDATA[n8nexplained@substack.com]]></googleplay:owner><googleplay:email><![CDATA[n8nexplained@substack.com]]></googleplay:email><googleplay:author><![CDATA[Sepideh Tajik]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[The One Workflow Every n8n Setup Is Missing]]></title><description><![CDATA[The Error Trigger nobody sets up, and the silent failure it would have caught.]]></description><link>https://n8nexplained.substack.com/p/the-one-workflow-every-n8n-setup</link><guid isPermaLink="false">https://n8nexplained.substack.com/p/the-one-workflow-every-n8n-setup</guid><dc:creator><![CDATA[Sepideh Tajik]]></dc:creator><pubDate>Sun, 30 Aug 2026 19:04:44 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!UDzU!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7e90ae32-6c38-459d-b5e6-7f41c0297de1_1672x941.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!UDzU!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7e90ae32-6c38-459d-b5e6-7f41c0297de1_1672x941.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!UDzU!, /__u/n8nexplained.substack.com/w_424, /__u/n8nexplained.substack.com/c_limit, /__u/n8nexplained.substack.com/f_webp, /__u/n8nexplained.substack.com/q_auto:good, /__u/n8nexplained.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7e90ae32-6c38-459d-b5e6-7f41c0297de1_1672x941.png 424w, /__u/substackcdn.com/image/fetch/$s_!UDzU!, /__u/n8nexplained.substack.com/w_848, /__u/n8nexplained.substack.com/c_limit, /__u/n8nexplained.substack.com/f_webp, /__u/n8nexplained.substack.com/q_auto:good, /__u/n8nexplained.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7e90ae32-6c38-459d-b5e6-7f41c0297de1_1672x941.png 848w, /__u/substackcdn.com/image/fetch/$s_!UDzU!, /__u/n8nexplained.substack.com/w_1272, /__u/n8nexplained.substack.com/c_limit, /__u/n8nexplained.substack.com/f_webp, /__u/n8nexplained.substack.com/q_auto:good, /__u/n8nexplained.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7e90ae32-6c38-459d-b5e6-7f41c0297de1_1672x941.png 1272w, /__u/substackcdn.com/image/fetch/$s_!UDzU!, /__u/n8nexplained.substack.com/w_1456, /__u/n8nexplained.substack.com/c_limit, /__u/n8nexplained.substack.com/f_webp, /__u/n8nexplained.substack.com/q_auto:good, /__u/n8nexplained.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7e90ae32-6c38-459d-b5e6-7f41c0297de1_1672x941.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!UDzU!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7e90ae32-6c38-459d-b5e6-7f41c0297de1_1672x941.png" width="1456" height="819" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7e90ae32-6c38-459d-b5e6-7f41c0297de1_1672x941.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:819,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1509502,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://n8nexplained.substack.com/i/213438462?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7e90ae32-6c38-459d-b5e6-7f41c0297de1_1672x941.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!UDzU!, /__u/n8nexplained.substack.com/w_424, /__u/n8nexplained.substack.com/c_limit, /__u/n8nexplained.substack.com/f_auto, /__u/n8nexplained.substack.com/q_auto:good, /__u/n8nexplained.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7e90ae32-6c38-459d-b5e6-7f41c0297de1_1672x941.png 424w, /__u/substackcdn.com/image/fetch/$s_!UDzU!, /__u/n8nexplained.substack.com/w_848, /__u/n8nexplained.substack.com/c_limit, /__u/n8nexplained.substack.com/f_auto, /__u/n8nexplained.substack.com/q_auto:good, /__u/n8nexplained.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7e90ae32-6c38-459d-b5e6-7f41c0297de1_1672x941.png 848w, /__u/substackcdn.com/image/fetch/$s_!UDzU!, /__u/n8nexplained.substack.com/w_1272, /__u/n8nexplained.substack.com/c_limit, /__u/n8nexplained.substack.com/f_auto, /__u/n8nexplained.substack.com/q_auto:good, /__u/n8nexplained.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7e90ae32-6c38-459d-b5e6-7f41c0297de1_1672x941.png 1272w, /__u/substackcdn.com/image/fetch/$s_!UDzU!, /__u/n8nexplained.substack.com/w_1456, /__u/n8nexplained.substack.com/c_limit, /__u/n8nexplained.substack.com/f_auto, /__u/n8nexplained.substack.com/q_auto:good, /__u/n8nexplained.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7e90ae32-6c38-459d-b5e6-7f41c0297de1_1672x941.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p>There&#8217;s a specific way n8n automations fail, and it&#8217;s worse than crashing.</p><p>They just&#8230; stop. An API rotates a token, a schema changes, a rate limit kicks in and the workflow errors out on one execution, then the next, then the next. Nothing tells you. You find out three weeks later when someone asks why they stopped getting the report.</p><p>The fix is a workflow whose only job is to catch other workflows failing. You build it once, point every other workflow at it, and you never silently lose an automation again.</p><p>This one takes about fifteen minutes and needs one credential. Workflow JSON is on GitHub at the bottom.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://n8nexplained.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading n8n Explained! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2>The Error Trigger is different from every other trigger</h2><p>Most n8n triggers fire on an external event a webhook, a schedule, new mail. The <strong>Error Trigger</strong> fires when <em>another workflow on your instance</em> fails.</p><p>That&#8217;s the whole trick. You don&#8217;t add error handling to each workflow. You build one handler, then in each workflow&#8217;s settings set <strong>Error Workflow</strong> to point at it. One handler, all your automations covered.</p><p>The payload it receives contains the execution context: which workflow died, which node it died on, the error message, and a link straight to the failed execution.</p><h2>How it works</h2><p><strong>1. Error Trigger</strong> No configuration. It sits there until something breaks.</p><p><strong>2. Shape Error Data (Code node)</strong> This is where most of the value is. The raw error payload is nested and inconsistent the message can live in <code>execution.error.message</code>, <code>execution.error.description</code>, or <code>trigger.error.message</code> depending on which node type failed. The Code node checks all of them, falls back to a default, and pulls out the fields that actually matter:</p><pre><code><code>const failedNode = e.execution?.lastNodeExecuted || 'unknown node';
const message = String(rawMessage).split('\n')[0].slice(0, 300);
</code></code></pre><p><code>lastNodeExecuted</code> is the single most useful field in the payload. It tells you exactly where in the chain things broke, which is usually enough to diagnose without opening n8n at all.</p><p>The <code>.split('\n')[0].slice(0, 300)</code> matters more than it looks. Stack traces are long, and an alert you have to scroll through on your phone at 2am is an alert you&#8217;ll start ignoring.</p><p><strong>3. Production Only? (IF node)</strong> Checks <code>execution.mode</code>. When you&#8217;re building a workflow and clicking Execute manually, it fails constantly that&#8217;s what building is. You don&#8217;t want a Telegram notification every time.</p><p>Manual failures still get logged. They just don&#8217;t buzz your phone.</p><p><strong>4. Alert Telegram</strong> Workflow name, failed node, trimmed error, and a direct link to the execution. Telegram because a bot token takes two minutes and needs no OAuth swap it for Slack or email, the logic is identical.</p><p><strong>5. Log Error (Google Sheets)</strong> Every failure, manual or production, appended with a timestamp. This turns into the interesting artifact over time: which workflow breaks most, whether failures cluster around a particular API, whether that &#8220;one-off&#8221; error is actually weekly.</p><h2>Gotchas</h2><ul><li><p><strong>Setting the Error Workflow is a per-workflow setting, and it&#8217;s easy to forget.</strong> Building the handler does nothing on its own. Each workflow needs Settings &#8594; Error Workflow &#8594; point at the handler. Make it part of your checklist when you build anything new.</p></li><li><p><strong>The error handler can&#8217;t catch itself.</strong> If your handler has a bug &#8212; bad credential, wrong chat ID &#8212; it fails silently and you&#8217;re back where you started, except now you think you&#8217;re covered. Test it deliberately: build a throwaway workflow with a node that&#8217;s guaranteed to fail, run it, confirm the alert lands.</p></li><li><p><strong>Don&#8217;t alert on everything.</strong> The fastest way to make error alerts useless is to send too many. The manual/production split is the minimum filter. If a workflow is expected to fail sometimes, handle that inside the workflow rather than letting it hit the global handler.</p></li><li><p><code>lastNodeExecuted</code><strong> isn&#8217;t always the culprit.</strong> It&#8217;s where execution stopped, which is usually but not always where the problem started &#8212; a node can fail because an upstream node passed it something malformed. Treat it as a starting point, not a diagnosis.</p></li><li><p><strong>Trigger failures behave differently.</strong> If a trigger node itself can&#8217;t run (expired OAuth on a Gmail trigger, say), the error surfaces differently than a mid-workflow failure, and the message lands in a different part of the payload. That&#8217;s why the Code node checks <code>trigger.error.message</code> too.</p></li></ul><h2>Fork it</h2><p>Import the JSON, add a Telegram bot credential and your chat ID, create a sheet with an <code>Errors</code> tab, then point your existing workflows at it.</p><p>&#128073; [<a href="https://github.com/itsepid/error_handling_workflow">GitHub repo link</a>]</p><p>Then go break something on purpose. An error handler you haven&#8217;t tested is a guess.</p><p><em>Reply and tell me what your worst silent failure was. I collect these.</em></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://n8nexplained.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading n8n Explained! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[AI Inbox Triage + Github Repo: Let GPT Read Your Inbox Before You Do]]></title><description><![CDATA[GPT sorts it. Slack tells you. You just show up!]]></description><link>https://n8nexplained.substack.com/p/ai-inbox-triage-github-repo-let-gpt</link><guid isPermaLink="false">https://n8nexplained.substack.com/p/ai-inbox-triage-github-repo-let-gpt</guid><dc:creator><![CDATA[Sepideh Tajik]]></dc:creator><pubDate>Sun, 16 Aug 2026 16:01:46 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!CiyG!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe626b6c4-42cd-47f4-98bc-8edd54e63de3_1672x941.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!CiyG!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe626b6c4-42cd-47f4-98bc-8edd54e63de3_1672x941.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!CiyG!, /__u/n8nexplained.substack.com/w_424, /__u/n8nexplained.substack.com/c_limit, /__u/n8nexplained.substack.com/f_webp, /__u/n8nexplained.substack.com/q_auto:good, /__u/n8nexplained.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe626b6c4-42cd-47f4-98bc-8edd54e63de3_1672x941.png 424w, /__u/substackcdn.com/image/fetch/$s_!CiyG!, /__u/n8nexplained.substack.com/w_848, /__u/n8nexplained.substack.com/c_limit, /__u/n8nexplained.substack.com/f_webp, /__u/n8nexplained.substack.com/q_auto:good, /__u/n8nexplained.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe626b6c4-42cd-47f4-98bc-8edd54e63de3_1672x941.png 848w, /__u/substackcdn.com/image/fetch/$s_!CiyG!, /__u/n8nexplained.substack.com/w_1272, /__u/n8nexplained.substack.com/c_limit, /__u/n8nexplained.substack.com/f_webp, /__u/n8nexplained.substack.com/q_auto:good, /__u/n8nexplained.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe626b6c4-42cd-47f4-98bc-8edd54e63de3_1672x941.png 1272w, /__u/substackcdn.com/image/fetch/$s_!CiyG!, /__u/n8nexplained.substack.com/w_1456, /__u/n8nexplained.substack.com/c_limit, /__u/n8nexplained.substack.com/f_webp, /__u/n8nexplained.substack.com/q_auto:good, /__u/n8nexplained.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe626b6c4-42cd-47f4-98bc-8edd54e63de3_1672x941.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!CiyG!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe626b6c4-42cd-47f4-98bc-8edd54e63de3_1672x941.png" width="1456" height="819" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e626b6c4-42cd-47f4-98bc-8edd54e63de3_1672x941.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:819,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1149152,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://n8nexplained.substack.com/i/211432776?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe626b6c4-42cd-47f4-98bc-8edd54e63de3_1672x941.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!CiyG!, /__u/n8nexplained.substack.com/w_424, /__u/n8nexplained.substack.com/c_limit, /__u/n8nexplained.substack.com/f_auto, /__u/n8nexplained.substack.com/q_auto:good, /__u/n8nexplained.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe626b6c4-42cd-47f4-98bc-8edd54e63de3_1672x941.png 424w, /__u/substackcdn.com/image/fetch/$s_!CiyG!, /__u/n8nexplained.substack.com/w_848, /__u/n8nexplained.substack.com/c_limit, /__u/n8nexplained.substack.com/f_auto, /__u/n8nexplained.substack.com/q_auto:good, /__u/n8nexplained.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe626b6c4-42cd-47f4-98bc-8edd54e63de3_1672x941.png 848w, /__u/substackcdn.com/image/fetch/$s_!CiyG!, /__u/n8nexplained.substack.com/w_1272, /__u/n8nexplained.substack.com/c_limit, /__u/n8nexplained.substack.com/f_auto, /__u/n8nexplained.substack.com/q_auto:good, /__u/n8nexplained.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe626b6c4-42cd-47f4-98bc-8edd54e63de3_1672x941.png 1272w, /__u/substackcdn.com/image/fetch/$s_!CiyG!, /__u/n8nexplained.substack.com/w_1456, /__u/n8nexplained.substack.com/c_limit, /__u/n8nexplained.substack.com/f_auto, /__u/n8nexplained.substack.com/q_auto:good, /__u/n8nexplained.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe626b6c4-42cd-47f4-98bc-8edd54e63de3_1672x941.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Every morning I open Gmail and do the same three seconds of triage on every email: <em>is this urgent, can it wait, or is it noise?</em> Multiply that by 40 emails and it&#8217;s 10 minutes of my day spent just deciding what deserves attention before I&#8217;ve actually done anything.</p><p>So I built a workflow that does the sorting for me. It watches my inbox, has GPT classify every incoming email, pings Slack if something&#8217;s urgent, and logs everything to a sheet so I have a running record of what&#8217;s landing and how it&#8217;s being handled.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://n8nexplained.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading n8n Explained! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p>This is the kind of workflow you can steal as-is for a personal inbox, or fork for a support/sales inbox with almost no changes. Full JSON is at the bottom  import it straight into n8n.</p><h2>The problem it solves</h2><p>Inbox triage doesn&#8217;t need a human brain &#8212;it needs pattern matching. &#8220;Is this a billing complaint or a sales lead?&#8221; is a classification task, and classification tasks are exactly what LLMs are good at and cheap to run. The workflow doesn&#8217;t reply to anything or make decisions for you  it just does the sorting so you open your inbox already knowing what&#8217;s on fire.</p><h2>How it works</h2><p><strong>1. Gmail Trigger</strong> Polls the inbox every minute for new mail. Nothing fancy just watching for new messages to land.</p><p><strong>2. Extract Email Data (Set node)</strong> Pulls out the fields we actually care about: subject, sender, body text, and the message ID. This keeps the payload clean before it hits the AI step.</p><p><strong>3. Classify Email (OpenAI node)</strong> This is the core of the workflow. A single prompt to <code>gpt-4o-mini</code> with a strict instruction: return <em>only</em> JSON, nothing else.</p><pre><code><code>{"category": "urgent | billing | support | sales | spam", "priority": "high | medium | low", "summary": "one sentence"}</code></code></pre><p>Keeping the model&#8217;s output to a single JSON object (no markdown, no chit-chat) is what makes this reliable enough to route programmatically. If you let the model ramble, you&#8217;ll spend more time parsing its response than it spent classifying the email.</p><p><strong>4. Parse Classification (Code node)</strong> A small JS step that parses that JSON safely and merges it back with the original email fields. I added a fallback (<code>category: "support"</code>) in case the model ever returns something malformed cheap insurance, one line of code.</p><p><strong>5. Route by Category (Switch node)</strong> Splits the flow into three branches: <code>urgent</code>, <code>spam</code> (dropped, does nothing), and everything else (<code>other</code>, falls through to logging).</p><p><strong>6. Notify Slack (Urgent branch only)</strong> Sends a formatted message with sender, subject, and the model&#8217;s one-line summary &#8212; so you get the gist without opening the email.</p><p><strong>7. Log All Emails (Google Sheets)</strong> Every non-spam email (urgent or not) gets appended to a sheet with category, priority, summary, and timestamp. Six months from now, this sheet tells you what kinds of emails actually eat your time.</p><h2>Gotchas worth knowing before you build this</h2><ul><li><p><strong>Force JSON-only output.</strong> The single biggest failure mode with AI classification nodes is the model adding a sentence of preamble before the JSON. Be explicit in the system prompt (&#8221;respond with ONLY a JSON object&#8221;) and still wrap the parsing in a try/catch don&#8217;t trust it blindly.</p></li><li><p><code>gpt-4o-mini</code><strong> is plenty here.</strong> This is a cheap, high-volume classification task, not a reasoning task. Don&#8217;t reach for a bigger model you&#8217;re paying more for zero benefit.</p></li><li><p><strong>Polling vs. push.</strong> Gmail Trigger polls on an interval, which is fine for personal use but adds latency. For a support inbox where minutes matter, look at Gmail&#8217;s push notifications via Pub/Sub instead.</p></li><li><p><strong>The Switch node&#8217;s fallback branch is doing real work.</strong> Anything that isn&#8217;t explicitly <code>urgent</code> or <code>spam</code> falls through to <code>other</code> and still gets logged this is what stops the workflow from silently dropping emails it&#8217;s unsure about.</p></li></ul><h2>Fork it</h2><p>The full workflow JSON is on GitHub &#8212; import it into n8n, drop in your own Gmail, OpenAI, Slack, and Google Sheets credentials, and it&#8217;s live in about five minutes. Swap the categories in the system prompt to match your own inbox (support tickets, sales leads, whatever you&#8217;re drowning in) and the routing logic stays identical.</p><p>&#128073; [<a href="https://github.com/itsepid/AI-inbox-triage">GitHub repo link</a>]</p><p>Next issue, I&#8217;ll cover how to add a second AI step that drafts a reply for the &#8220;support&#8221; category  so triage becomes triage <em>and</em> first-draft response.</p><p><em>If you build on this, reply and tell me what you changed. I read every reply.</em></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://n8nexplained.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading n8n Explained! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[What’s the biggest automation you wish existed?]]></title><description><![CDATA[&#128075; It&#8217;s finally starting: n8n Explained is here]]></description><link>https://n8nexplained.substack.com/p/whats-the-biggest-automation-you</link><guid isPermaLink="false">https://n8nexplained.substack.com/p/whats-the-biggest-automation-you</guid><dc:creator><![CDATA[Sepideh Tajik]]></dc:creator><pubDate>Tue, 12 May 2026 17:48:16 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!riwY!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb88f5d8f-4a27-49fa-ac5b-2aa0ab039742_1408x768.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!riwY!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb88f5d8f-4a27-49fa-ac5b-2aa0ab039742_1408x768.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!riwY!, /__u/n8nexplained.substack.com/w_424, /__u/n8nexplained.substack.com/c_limit, /__u/n8nexplained.substack.com/f_webp, /__u/n8nexplained.substack.com/q_auto:good, /__u/n8nexplained.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb88f5d8f-4a27-49fa-ac5b-2aa0ab039742_1408x768.png 424w, /__u/substackcdn.com/image/fetch/$s_!riwY!, /__u/n8nexplained.substack.com/w_848, /__u/n8nexplained.substack.com/c_limit, /__u/n8nexplained.substack.com/f_webp, /__u/n8nexplained.substack.com/q_auto:good, /__u/n8nexplained.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb88f5d8f-4a27-49fa-ac5b-2aa0ab039742_1408x768.png 848w, /__u/substackcdn.com/image/fetch/$s_!riwY!, /__u/n8nexplained.substack.com/w_1272, /__u/n8nexplained.substack.com/c_limit, /__u/n8nexplained.substack.com/f_webp, /__u/n8nexplained.substack.com/q_auto:good, /__u/n8nexplained.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb88f5d8f-4a27-49fa-ac5b-2aa0ab039742_1408x768.png 1272w, /__u/substackcdn.com/image/fetch/$s_!riwY!, /__u/n8nexplained.substack.com/w_1456, /__u/n8nexplained.substack.com/c_limit, /__u/n8nexplained.substack.com/f_webp, /__u/n8nexplained.substack.com/q_auto:good, /__u/n8nexplained.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb88f5d8f-4a27-49fa-ac5b-2aa0ab039742_1408x768.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!riwY!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb88f5d8f-4a27-49fa-ac5b-2aa0ab039742_1408x768.png" width="1408" height="768" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/b88f5d8f-4a27-49fa-ac5b-2aa0ab039742_1408x768.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:768,&quot;width&quot;:1408,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:696505,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://sepidtajik.substack.com/i/195985785?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb88f5d8f-4a27-49fa-ac5b-2aa0ab039742_1408x768.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="/__u/substackcdn.com/image/fetch/$s_!riwY!, /__u/n8nexplained.substack.com/w_424, /__u/n8nexplained.substack.com/c_limit, /__u/n8nexplained.substack.com/f_auto, /__u/n8nexplained.substack.com/q_auto:good, /__u/n8nexplained.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb88f5d8f-4a27-49fa-ac5b-2aa0ab039742_1408x768.png 424w, /__u/substackcdn.com/image/fetch/$s_!riwY!, /__u/n8nexplained.substack.com/w_848, /__u/n8nexplained.substack.com/c_limit, /__u/n8nexplained.substack.com/f_auto, /__u/n8nexplained.substack.com/q_auto:good, /__u/n8nexplained.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb88f5d8f-4a27-49fa-ac5b-2aa0ab039742_1408x768.png 848w, /__u/substackcdn.com/image/fetch/$s_!riwY!, /__u/n8nexplained.substack.com/w_1272, /__u/n8nexplained.substack.com/c_limit, /__u/n8nexplained.substack.com/f_auto, /__u/n8nexplained.substack.com/q_auto:good, /__u/n8nexplained.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb88f5d8f-4a27-49fa-ac5b-2aa0ab039742_1408x768.png 1272w, /__u/substackcdn.com/image/fetch/$s_!riwY!, /__u/n8nexplained.substack.com/w_1456, /__u/n8nexplained.substack.com/c_limit, /__u/n8nexplained.substack.com/f_auto, /__u/n8nexplained.substack.com/q_auto:good, /__u/n8nexplained.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb88f5d8f-4a27-49fa-ac5b-2aa0ab039742_1408x768.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://n8nexplained.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:&quot;button-wrapper ProseMirror-selectednode&quot;}" data-component-name="ButtonCreateButton"><a class="button primary button-wrapper ProseMirror-selectednode" href="/__u/n8nexplained.substack.com/subscribe"><span>Subscribe now</span></a></p><h2><strong>Hey there &#128075;</strong></h2><p>Welcome to <strong>n8n Explained</strong> where we turn automation ideas into real, working workflows.</p><p>If you subscribed weeks or months ago and thought, <em>&#8220;Is this thing ever going to start?&#8221;</em> it&#8217;s finally happening &#127881;</p><p>I&#8217;m Sepideh, and I run this newsletter together with Amir.</p><p>My background is in data and analytics using AI-Powered solutions, while Amir is a CCNP-certified cloud and DevOps expert. We&#8217;re both deeply interested in AI and AI agents, and we actively use automation and AI tools in our daily work.</p><p>We&#8217;re starting this newsletter to <strong>share practical, easy-to-adapt automation examples</strong> built with <a href="https://n8n.io/">n8n</a>, the open&#8209;source workflow automation tool.</p><p>Each post will walk you through <strong>real use cases</strong>, from simple to advanced, with takeaways you can apply instantly.</p><p>Here&#8217;s what you can expect:</p><ul><li><p>&#129513; <strong>Step&#8209;by&#8209;step breakdowns</strong> of real n8n workflows</p></li><li><p>&#9881;&#65039; <strong>Mini&#8209;automation templates</strong> you can copy and reuse</p></li><li><p>&#128236; One concise email per week &#8212; no spam, only value</p></li></ul><p>To kick things off, I&#8217;d love to hear from you:</p><p>&#128073; <em>What&#8217;s the biggest automation you wish existed?</em></p><p>Hit <strong>reply</strong> and tell me! your answers might shape the next post (and I might even build your idea in n8n).</p><p>Let&#8217;s automate something great together.</p><p>Catch you soon,</p><p><strong>Sepideh Tajik And Amir Soleimani</strong></p><p><em>Creators of n8n Explained</em></p><div><hr></div><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://n8nexplained.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading n8n Explained! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p></p>]]></content:encoded></item><item><title><![CDATA[Coming soon]]></title><description><![CDATA[This is n8n Explained.]]></description><link>https://n8nexplained.substack.com/p/coming-soon</link><guid isPermaLink="false">https://n8nexplained.substack.com/p/coming-soon</guid><dc:creator><![CDATA[Mina Hosseinpour]]></dc:creator><pubDate>Sat, 19 Apr 2025 10:55:39 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!1Fky!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e97b4ee-3c4b-401a-88bd-d3f0044cb00c_260x260.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>This is n8n Explained.</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://n8nexplained.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="/__u/n8nexplained.substack.com/subscribe"><span>Subscribe now</span></a></p>]]></content:encoded></item></channel></rss>