capabilities.work

Insight-Driven Alert Setup

A 4-step recipe with Tomorrow.io. We can help you get access.

Recipe · 4 steps

Insight-Driven Alert Setup

Create an insight, build an alert, link locations, and activate it.

  1. Define a reusable insight that combines a data layer, operator, and threshold into a named condition.
  2. Create an alert that evaluates the same threshold condition and delivers a webhook notification when it is met.
  3. Bind the supplied saved locations to the new alert so it evaluates the condition at each location.
  4. Activate the fully configured alert so notifications begin firing for the linked locations.
What you'll need to have ready
  • apikey: Tomorrow.io API key passed as the apikey query parameter.
  • insightName: Name for the reusable insight rule.
  • insightDescription: Optional human-readable description of the insight.
  • field: Weather data layer the condition evaluates (e.g. precipitationIntensity).
  • operator: Comparison operator (gt, gte, lt, lte, eq, neq).
  • value: Threshold value the field is compared against.
  • severity: Insight severity (info, low, medium, high, severe).
  • alertName: Name for the alert built from the insight condition.
  • webhookUrl: Optional webhook URL to receive alert notifications.
  • locationIds: Saved location ids to bind to the alert.
For your developer

Arazzo workflow tomorrow-io:insight-driven-alert-setup, 4 operations: createInsight → createAlert → linkAlertLocations → activateAlert. Specs on APIs.io.