Mailhook and Slack: After-Hours Urgent Email Alert Template
This Spojit template watches forwarded support email, judges whether each message is genuinely urgent, and pings your on-call Slack channel only when it matters outside business hours.
What It Builds
A Mailhook trigger gives the workflow its own inbound address, so forwarding a support email there starts a run. An Agent-mode Connector node reads the sender, subject, and body and decides if the message is urgent, using a Response Schema for a clean yes/no plus a short summary. A Condition node checks the verdict and the time of day, and when both are true a Slack node posts the alert to your on-call channel.
The Prompt
Paste this into Miraxa and it builds the workflow, connecting the tools for you:
Build a workflow triggered by a Mailhook that receives forwarded support emails. Use an Agent-mode step to decide whether the email is urgent and produce a one-line summary. If it is urgent and the current time is outside 9am to 5pm on weekdays, post a Slack message to the #on-call channel with the sender, subject, and summary.
Connectors Used
- Mailhook - the trigger; forward support email to its address to start a run.
- Slack - posts the urgent alert to your on-call channel.
Customize It
Change #on-call to your team's channel, adjust the business hours window, or tell Miraxa what counts as urgent (outages, refunds, VIP senders). You can also add the order number or account ID to the Slack message if your emails include them.
Tips
- Give the Slack connection access to the target channel before going live.
- Set the hours window against a fixed timezone so alerts fire correctly worldwide.
- Keep the urgency call in Agent mode; Direct mode runs one exact tool with no judgement.