{
  "schema": "browseai.robot/v1",
  "name": "Price Hawk",
  "description": "Watch competitor pricing pages and notify on change.",
  "schedule": {
    "type": "interval",
    "everyHours": 6
  },
  "inputs": {
    "competitors": [
      {"name": "Acme",       "url": "https://acme.example.com/pricing"},
      {"name": "Northstar",  "url": "https://northstar.example.com/pricing"},
      {"name": "Brightline", "url": "https://brightline.example.com/pricing"}
    ]
  },
  "extract": {
    "tiers": {
      "selector": "[data-pricing-tier], .pricing-card, .plan-card",
      "fields": {
        "name":       "h2, h3, .plan-name",
        "price":      ".price, [data-price]",
        "billing":    ".billing-period, .interval",
        "features":   "ul li"
      }
    }
  },
  "diff": {
    "compareWith": "previous_run",
    "notifyWhen": ["price.changed", "tier.added", "tier.removed"]
  },
  "notify": {
    "channel": "email",
    "to": "alerts@example.com",
    "subject": "Price Hawk — {{diff.summary}}",
    "body": "{{competitor.name}} changed pricing:\n\n{{diff.details}}\n\nSnapshot: {{snapshot.url}}"
  }
}
