Skip to main content
This recipe wires a cron-triggered agent that computes coverage statistics and posts a one-line digest to a Slack channel every morning.

What you’ll build

An agent that runs daily at 09:00 UTC, calls get_coverage_statistics, and posts:
Booking.com coverage: 96.4% (+0.3% vs yesterday). 142 unmatched rows. 8 open mismatches.

Prerequisites

Steps

1

Create the agent

Agents → New Agent. Name it “Daily coverage report”.
2

Goal

Every morning, compute mapping coverage for the workspace and post a 1-line digest to Slack. Include the delta vs yesterday and counts of unmatched rows and open mismatches.
3

Schedule

Cron: 0 9 * * * (daily 09:00 UTC). Leave triggers off in the rule set.
4

Add Slack channel

Channels → Add → Slack. Paste the webhook URL. Subscribe to on_action.
5

Rules

{
  "mapping_jobs": { "trigger_on_cron": true },
  "coverage": {
    "alert_below_pct": 0,
    "weekly_digest": false
  },
  "notifications": { "on_action": true }
}
alert_below_pct: 0 disables the threshold alert — we only want the daily digest from this agent.
6

Activate

Activate and wait for the next 09:00.

Verification

POST /api/v1/agents/{id}/channels/{cid}/test immediately to confirm the webhook delivers. Then POST /api/v1/agents/{id}/run-now to fire one cycle on demand and verify the Slack message lands.

Sample Slack payload

{
  "blocks": [
    {
      "type": "section",
      "text": {
        "type": "mrkdwn",
        "text": ":bar_chart: *Coverage report — 2026-05-25*\nOverall: *96.4%* (+0.3% vs yesterday)\n• Booking.com: 98.2% (1,204 unmatched)\n• Expedia: 94.1% (3,422 unmatched)\n• 8 open mismatch reports"
      }
    }
  ]
}