Agent Wranglers

NTF-2Required

Have consent before any marketing message

Send marketing by email, text or push only to people who opted in to that channel, or who fall under a legal exception you recorded. Keep proof of each basis. Never buy, rent or scrape contact lists.

How to do it

The duty comes from several laws, so the rule holds wherever your recipients live. The EU ePrivacy Directive (Article 13) and the UK's PECR need prior consent for marketing by email and text. Their one exception covers your own similar products, offered to existing customers. They must have been able to refuse when you collected the address, and in every message. The US TCPA needs prior express written consent for marketing texts sent by automated systems. US email law (CAN-SPAM) works by opt-out instead, and Canada's CASL needs consent. Apple's App Review Guidelines (4.5.4) forbid push marketing without opt-in in the app's own interface. Marketing types start with no channels on. Ask with a box that is not ticked in advance, per channel and per topic. For each opt-in, store the time, the form or page, the exact wording shown and the source address. For the customer exception, store the order and the time the refusal was offered. Record which law and basis applies to each contact. Bought lists hold people who never agreed and spam traps. A receipt, an alert or a reminder must not carry an offer, or it becomes marketing that needs this basis and an unsubscribe link. Confirm new email sign-ups as Confirm each sign-up with a link says.

Examples

SQL example

-- Must return 0 rows
SELECT s.id FROM sends s
JOIN notification_types t ON t.id = s.type
LEFT JOIN consents c ON c.user_id = s.user_id AND c.channel = s.channel AND c.revoked_at IS NULL
WHERE t.category = 'marketing' AND c.user_id IS NULL;

JSON example

[
  {
    "email_hash": "b3a1…",
    "channel": "email",
    "list": "product-news",
    "basis": "consent",
    "agreed_at": "2026-10-20T09:14:00Z",
    "source": "https://example.com/newsletter",
    "wording": "Send me product news about once a month.",
    "confirmed_at": "2026-10-20T09:16:12Z"
  },
  {
    "email_hash": "c71e…",
    "channel": "email",
    "list": "product-news",
    "basis": "existing-customer",
    "order_id": "ord_5521",
    "refusal_offered_at": "2026-10-18T13:02:44Z"
  }
]

JavaScript example

const mayMarket = (consents, channel) => consents.some(c => c.channel === channel && !c.revokedAt);

Python example

def may_market(consents, channel):
    return any(c.channel == channel and c.revoked_at is None for c in consents)

How to check

Create a new account and send every marketing type. Nothing arrives. Opt in to push only, and only push arrives. Pick a random subscriber, and within a minute the system shows the basis and its proof. A query finds no marketing send without a consent or exception row for that user and channel. A test password reset and a test receipt contain no offers, banners or newsletter content.

Sources

For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/notifications/channels-and-preferences/marketing-consent">Agent Wranglers notifications playbook</a>. In code you write, add a comment next to it with the same link.