Latenode

Automatically create Opsgenie alerts for new Mailhook emails

This template creates an Opsgenie alert when a new message arrives at Mailhook. Forward the inbox you care about to the Mailhook address.

JavaScript builds the alert from subject, sender, and body, then calls the Opsgenie Alerts API. Put the Opsgenie API key in that JavaScript node.

Updated Sep 16, 2026Est. run: 5sEst. cost: $0.0003
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Turns inbound Mailhook messages into Opsgenie alerts
  • Maps sender, subject, and body in JavaScript
  • Calls the Opsgenie Alerts API from that node
  • Keeps the Opsgenie API key in the JavaScript node

How it works

1
Trigger

Receive the email

Mailhook starts the scenario when a message arrives at the Mailhook address.

2
Logic

Build the alert

JavaScript reads sender, subject, and body and sets priority from the rules you write.

3
Action

Create the Opsgenie alert

JavaScript posts that payload to the Opsgenie Alerts API. Put the Opsgenie API key in that JavaScript node.

Setup guide

1

Add Mailhook

Add a Mailhook trigger and copy the inbound address. Forward or send the emails that should page the team to that address.

2

Shape the alert

Add JavaScript to map sender, subject, and body into an Opsgenie message and description. Skip mail that should not page anyone.

3

Call Opsgenie

From that JavaScript node, post to the Opsgenie Alerts API and store the Opsgenie API key there. Send a test message to Mailhook and confirm the alert in Opsgenie.

Requirements

Ability to forward or send mail to the Mailhook address
An Opsgenie account that can create alerts
An Opsgenie API key stored in the JavaScript node

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work.