Actions19
Metric Alert → Create
AI-generatedSummary
Creates a threshold alert in Post Mate that fires once when a chosen engagement metric crosses a given value, for one specific post or for all workspace posts.
Inputs
- Metric (required) — Metric to watch: impressions (default), views, likes, comments, shares, saves, or reach.
- Threshold (required) — Number (minimum 1, default 1000). The alert fires once when the metric crosses this value.
- Post ID (optional) — ID of a specific post to watch. If blank, the alert covers all workspace posts and no post_id is sent.
Output shape
One JSON item per input item, containing the API response for the newly created metric alert (the object returned by POST /api/v1/metric-alerts).
The source doesn't show the response fields, so they depend on the Post Mate API. The request is made once per input item. With Continue On Fail enabled, a failed item returns {error: message} instead of stopping the workflow. Pair with the Webhook resource's 'Post Metric Threshold' event to receive notifications when an alert fires.
Examples
Example 1: Get notified when any post reaches 10,000 impressions.
Resource: Metric Alert, Operation: Create, Metric: Impressions, Threshold: 10000, Post ID blank.
Example 2: Watch a newly published post for likes using an ID from a previous node.
Metric: Likes, Threshold: 500, Post ID: {{ $json.id }}.