{"product_id":"n8n-after-hours-form-routing-gmail-telegram-alerts","title":"n8n After-Hours Form Routing: Gmail + Telegram Alerts","description":"\u003ch3\u003eRoute website form alerts after hours with automatic Gmail + Telegram notifications\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow receives your website form submissions via a webhook, validates the payload, immediately acknowledges the visitor (HTTP 200\/400), and then intelligently routes alerts based on business hours—sending on-call alerts through \u003cstrong\u003eGmail\u003c\/strong\u003e and \u003cstrong\u003eTelegram\u003c\/strong\u003e after hours or for urgent\/emergency requests.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives form submissions\u003c\/strong\u003e via an n8n webhook using a \u003ccode\u003ePOST\u003c\/code\u003e request from your website form.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCleans and validates inputs\u003c\/strong\u003e (name, email, phone, message, and an optional urgency field). Invalid payloads are rejected.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAcknowledges instantly\u003c\/strong\u003e:\n    \u003cul\u003e\n      \u003cli\u003e\n\u003cstrong\u003eHTTP 200\u003c\/strong\u003e with a confirmation message for valid submissions.\u003c\/li\u003e\n      \u003cli\u003e\n\u003cstrong\u003eHTTP 400\u003c\/strong\u003e with validation errors for invalid submissions.\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eChecks business hours\u003c\/strong\u003e using your configured timezone and weekly opening hours.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRoutes notifications**:\u003c\/strong\u003e\n    \u003cul\u003e\n      \u003cli\u003e\n\u003cstrong\u003eAfter hours or emergency\/urgent\u003c\/strong\u003e: sends an \u003cstrong\u003eon-call email via Gmail\u003c\/strong\u003e, then sends a \u003cstrong\u003eTelegram alert\u003c\/strong\u003e.\u003c\/li\u003e\n      \u003cli\u003e\n\u003cstrong\u003eDuring business hours\u003c\/strong\u003e: sends a \u003cstrong\u003edaytime notification email via Gmail only\u003c\/strong\u003e.\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\u003eYour SaaS site captures leads via a contact form—after-hours requests should alert the on-call team fast.\u003c\/li\u003e\n  \u003cli\u003eEmergency support forms (marked urgent) should bypass business hours and trigger both email and Telegram alerts.\u003c\/li\u003e\n  \u003cli\u003eOperations teams want immediate visitor acknowledgement while the workflow handles routing in the background.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNodes \/ features:\u003c\/strong\u003e \u003ccode\u003ewebhook\u003c\/code\u003e, \u003ccode\u003eif\u003c\/code\u003e, \u003ccode\u003ecode\u003c\/code\u003e, \u003ccode\u003egmail\u003c\/code\u003e, \u003ccode\u003etelegram\u003c\/code\u003e, and a \u003ccode\u003esticky note\u003c\/code\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTime logic:\u003c\/strong\u003e business-hours checking against your timezone and opening schedule.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGmail integration:\u003c\/strong\u003e Gmail OAuth2; configure the destination inbox (replace \u003cem\u003eONCALL_EMAIL@example.com\u003c\/em\u003e).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTelegram integration:\u003c\/strong\u003e create a Telegram bot, add the n8n Telegram credential, and set \u003cem\u003eREPLACE_WITH_YOUR_CHAT_ID\u003c\/em\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eSetup (quick)\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003ePoint your website form to the workflow’s \u003cstrong\u003eProduction webhook endpoint\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eUpdate the \u003cstrong\u003etimezone\u003c\/strong\u003e and \u003cstrong\u003eweekly opening hours\u003c\/strong\u003e in the business-hours step.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46232444272819,"sku":"N8N-21027","price":23.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/c3GjgJCJMCAk0BRKYFCux_XJCOZXTA.png?v=1792142566","url":"https:\/\/buyflowscripts.com\/products\/n8n-after-hours-form-routing-gmail-telegram-alerts","provider":"N8N Commerce","version":"1.0","type":"link"}