{"product_id":"n8n-gmail-ooo-critical-email-routing-with-gemini-slack","title":"n8n Gmail OOO Critical Email Routing with Gemini \u0026 Slack","description":"\u003ch3\u003eGmail Out-of-Office? Route only truly critical emails automatically with Gemini, Slack, Sheets, and labels.\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow monitors your Gmail inbox during out-of-office coverage, uses \u003cstrong\u003eGoogle Gemini\u003c\/strong\u003e to classify whether each new unread message is \u003cstrong\u003ecritical\u003c\/strong\u003e, then escalates critical emails to your backup via \u003cstrong\u003eSlack\u003c\/strong\u003e—with an automatic Gmail reply, a \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e audit log, and a Gmail label. Non-critical messages require no further action.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTriggers every minute\u003c\/strong\u003e when a new \u003cstrong\u003eunread Gmail\u003c\/strong\u003e email arrives (excluding \u003cstrong\u003ePromotions\u003c\/strong\u003e and \u003cstrong\u003eSocial\u003c\/strong\u003e categories).\u003c\/li\u003e\n  \u003cli\u003eExtracts key email fields such as \u003cstrong\u003esender\u003c\/strong\u003e, \u003cstrong\u003esubject\u003c\/strong\u003e, \u003cstrong\u003esnippet\u003c\/strong\u003e, \u003cstrong\u003emessage ID\u003c\/strong\u003e, and \u003cstrong\u003ethread ID\u003c\/strong\u003e, then loads out-of-office routing settings.\u003c\/li\u003e\n  \u003cli\u003eSends the email details to the \u003cstrong\u003eGoogle Gemini API\u003c\/strong\u003e (generateContent) and parses the JSON response for:\n    \u003cul\u003e\n      \u003cli\u003ecritical vs. non-critical decision\u003c\/li\u003e\n      \u003cli\u003ecategory and urgency reason\u003c\/li\u003e\n      \u003cli\u003ea Slack-ready escalation summary\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003eIf the email is \u003cstrong\u003ecritical\u003c\/strong\u003e, posts an escalation message to a specified \u003cstrong\u003eSlack\u003c\/strong\u003e channel and \u003cstrong\u003ementions\u003c\/strong\u003e the designated backup person.\u003c\/li\u003e\n  \u003cli\u003eReplies to the sender in \u003cstrong\u003eGmail\u003c\/strong\u003e with an out-of-office message that \u003cstrong\u003eincludes the backup contact\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLogs escalation details to Google Sheets\u003c\/strong\u003e and \u003cstrong\u003elabels\u003c\/strong\u003e the original Gmail message for traceability.\u003c\/li\u003e\n  \u003cli\u003eIf the email is \u003cstrong\u003enot critical\u003c\/strong\u003e, it takes no further action.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eSaaS operators and founders covering support\/responding while away—only urgent customer or incident emails trigger backup escalation.\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers who want an auditable workflow combining \u003cstrong\u003eGmail\u003c\/strong\u003e, \u003cstrong\u003eGemini\u003c\/strong\u003e, \u003cstrong\u003eSlack\u003c\/strong\u003e, and \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eTeams needing consistent out-of-office handling without manually triaging every inbox message.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes\/workflow logic:\u003c\/strong\u003e \u003cem\u003eTrigger (Gmail)\u003c\/em\u003e, \u003cem\u003eif\u003c\/em\u003e, \u003cem\u003eset\u003c\/em\u003e, \u003cem\u003eno op\u003c\/em\u003e, \u003cem\u003eGmail\u003c\/em\u003e, \u003cem\u003eSlack\u003c\/em\u003e, \u003cem\u003eSticky Note\u003c\/em\u003e\n\u003c\/li\u003e\n  \u003cli\u003eUses \u003cstrong\u003eGmail OAuth2\u003c\/strong\u003e for inbox trigger, reply, and label actions.\u003c\/li\u003e\n  \u003cli\u003eUses \u003cstrong\u003eGoogle Gemini (PaLM)\u003c\/strong\u003e credentials via an \u003cem\u003eHTTP request\u003c\/em\u003e to the \u003cstrong\u003egenerateContent\u003c\/strong\u003e endpoint.\u003c\/li\u003e\n  \u003cli\u003eUses \u003cstrong\u003eSlack OAuth\u003c\/strong\u003e with configured \u003cstrong\u003echannel ID\u003c\/strong\u003e and \u003cstrong\u003ebackup user ID\u003c\/strong\u003e for mentions.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45758719525043,"sku":"N8N-17802","price":21.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/qwtj0uzPc_0pFH2TFmqEO_FYTeFdKr.png?v=1785834078","url":"https:\/\/buyflowscripts.com\/products\/n8n-gmail-ooo-critical-email-routing-with-gemini-slack","provider":"N8N Commerce","version":"1.0","type":"link"}