Sign inSign up

CouponBrain Skill

CouponBrain skill teaches your AI how to extract grounded coupons, tiers, scope, events, and themes from promotion text.

Documentation
{
  "coupons": [
    {
      "code": "SAVE20",
      "type": "percentage",
      "currency": null,
      "scope": {
        "sitewide": true,
        "new_customers_only": true
      },
      "tiers": [
        { "minimum_spend": null, "discount_percent": 20 }
      ]
    }
  ],
  "end_date": "2026-09-30",
  "campaign_events": [],
  "campaign_themes": ["new_customer"]
}

Canonical fields only. Codes must appear in the source.

Installation

npx skills add Affensus/couponbrain

Installs the CouponBrain skill: extract auth, request fields, canonical output, scope, tiers, events, and themes. Works with Claude Code, Cursor, GitHub Copilot, Codex, and Gemini CLI.

Commands

couponbrain extract

Wire POST /api/extract with a Bearer key, text, and optional as_of, model, and format. Empty model or format is latest and json.

couponbrain schema

Print the canonical result: coupons, scope flags, tiers, end_date, campaign_events, and campaign_themes.

couponbrain curl

Emit a ready curl with an aff_YOUR_API_KEY placeholder. Also triggers on "show me the extract request".

Try it

Extract coupons from this promotion text using the CouponBrain skill
Add CouponBrain extract to this project
Generate a curl for POST /api/extract with latest and json