Triage after-hours website form requests with OpenAI, Google Sheets, Gmail and Telegram
Quick Overview
Description
Quick Overview This workflow receives website form submissions via a webhook, validates and acknowledges the request, then routes notifications based on business hours and urgency, sending on-call alerts through Gmail and Telegram while keeping daytime requests email-only. How it works Receives a POST request from your website form via an n8n webhook. Cleans and validates the submitted fields (name, email, phone, message, and optional urgency) and rejects invalid payloads. Responds immediately to the visitor with HTTP 200 and a confirmation message, or HTTP 400 with validation errors. Checks the current local time against your configured timezone and opening hours, treating emergency/urgent requests as always on-call. Sends an on-call email via Gmail and then a Telegram alert when the request is after hours or marked emergency. Sends a daytime notification email via Gmail when the request is within business hours. Setup Configure the webhook URL in your website form to POST to the workflow’s Production webhook endpoint. Update the timezone and weekly opening hours in the business-hours checking step to match your business. Add a Gmail OAuth2 credential and replace ONCALL_EMAIL@example.com with the inbox that should receive notifications. Create a Telegram bot, add a Telegram credential in n8n, and replace REPLACE_WITH_YOUR_CHAT_ID with your target chat ID. An n8n automation workflow template by Philipp Primisser.
Community Metrics
Author
Philipp Primisser
Platform
web
Pricing model
free
Categories
- Automation
- AI
Tags
- n8n
- workflow
- google-sheets
- telegram
- gmail
- code
- openai-chat-model
- information-extractor
Capabilities
- 6 nodes