Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

Library / Monitoring, Ops & Incidents

Monitoring, Ops & Incidents

Route weather-based delivery holds with Open-Meteo, Gemini, Postgres, and ServiceNow

When another workflow fails, it monitors systems with Google Gemini using Postgres, ServiceNow, Slack.

What it does

## Weather-Triggered Delivery Hold & Incident Automation ### How it works This workflow polls weather data for a configured delivery region and evaluates whether conditions are severe enough to place deliveries on hold. When severe weather is detected, it checks for duplicate active alerts, logs a new alert, retrieves delivery manifests, and determines whether any deliveries are impacted. If deliveries are affected, an AI agent drafts structured incident details, creates a ServiceNow incident, prepares affected-store notifications, and updates operations through Slack while logging completion; a separate error path records failures and alerts Ops. ### Setup steps - Configure the schedule trigger frequency for how often weather should be checked. - Update the region settings node with the target region name, ZIP code, latitude, longitude, and any cooldown/severity thresholds used downstream. - Set up credentials for Open-Meteo HTTP access if required by your environment, PostgreSQL, Slack, ServiceNow, and Google Gemini. - Ensure the PostgreSQL tables for alert logs, delivery manifests, no-impact records, completion updates, and error logs exist with the fields referenced by the workflow. - Configure Slack channels/users for operational summaries and failure alerts, and confirm ServiceNow incident fields match the AI-generated structured output. ### Customization Adjust the severe-weather criteria, cooldown window, delivery-manifest query, AI incident prompt/output schema, Slack message formats, and ServiceNow assignment/routing rules to match local operations.

The steps

  1. When Error Occurs
  2. Log Error to Postgres
  3. Alert Ops via Slack
  4. Poll Weather Every 15 Min
  5. Fetch Weather Data
  6. Set Weather Severity Conditions
  7. If Severe Weather Detected
  8. No Severe Weather Action
  9. Check for Active Alerts
  10. If Duplicate Alert Exists
  11. Suppress Duplicate Alert
  12. Log New Alert to Postgres
  13. Aggregate Delivery Manifests
  14. If Deliveries Are Impacted

26 steps in total.

Similar automations