Skip to main content

Campaigns (@loyaltyos/campaigns)

Campaign rules engine — create incentive campaigns with complex conditions without writing code.

Campaign Types​

  • Bonus Points — extra points by period, category, or product
  • Spend & Get — spend X, earn Y
  • Frequency — visit N times in M days, get bonus
  • Milestone — reach a spending level, unlock reward
  • Referral — bring a friend, both earn
  • Birthday/Anniversary — automatic campaign on special dates
  • Flash Sale — short-window campaign (hours/days)
  • Tier Upgrade Bonus — reward when member reaches a new tier

Capabilities​

  • Budget capping
  • Stacking rules (which campaigns can combine)
  • A/B testing via CampaignVariant records
  • Impact estimation before launch

See the full README on GitHub for details.