Mailhook, MongoDB and Slack: Vendor Alert Capture Template
When a vendor outage email hits a mailhook address, this Spojit template stores the parsed alert in MongoDB and posts a summary to your on-call Slack channel.
What It Builds
A Mailhook trigger gives you a unique Spojit email address you point vendor status notifications at. Each inbound message starts a run that captures the alert with an Agent-mode Connector node, writes a structured record to your MongoDB collection with a Connector node, and posts a short summary to your on-call Slack channel with another Connector node. The result is a searchable history of every vendor incident plus an instant heads-up for the people who need it.
The Prompt
Paste this into Miraxa, the intelligent layer across your automation, and it builds the workflow, connecting the tools for you:
Build a workflow that triggers on a Mailhook when a vendor outage email arrives. Use an Agent-mode Connector node to pull the vendor name, severity, affected service, and a one-line summary from the email subject and body. Insert that as a document into the "vendor_alerts" collection in MongoDB along with the received time and the original subject. Then post a message to the #on-call Slack channel with the vendor name, severity, affected service, and summary.
Connectors Used
- Mailhook (trigger) - generates a unique
@mailhook.spojit.comaddress; any mail to it starts a run within seconds. No mailbox or OAuth needed. - MongoDB - stores the parsed alert as a document via
insert-documents. - Slack - posts the summary to your on-call channel via
send-message.
Customize It
Swap #on-call for your real channel, and rename the vendor_alerts collection to match your database. Tighten the trigger by adding a From allowlist or Subject regex on the Mailhook so only genuine vendor status mail fires a run. You can also ask the agent to grade severity into your own labels (for example P1, P2, P3) so Slack messages and stored records stay consistent.
Tips
- The alert extraction needs judgment, so keep that node in Agent mode with a Response Schema for clean JSON; keep the MongoDB write and the Slack post in Direct mode so they stay deterministic and cost no AI credits.
- Use
lookup-user-by-emailon the Slack connector first if you want to direct-message the on-call person instead of, or alongside, the channel. - Vendor emails fire whether the address is in To, Cc, or Bcc, so a single forwarding rule on your shared inbox can feed the mailhook reliably.