Calling policy

The rules the dial gate enforces before every call, manual or campaign.

  1. Consent. A contact must have recorded consent before a dial. Importing a list does not count as consent; set it per contact when you know you have it.
  2. Opt-out. An inbound STOP (or STOPALL, UNSUBSCRIBE, CANCEL, END, QUIT, OPTOUT, REMOVE) marks the contact opted out and adds the number to the do-not-call list. Manual opt-outs do the same.
  3. One call per number per day. The same number is not dialled twice in a UTC day from a workspace, which also prevents a campaign racing itself.
  4. Daily cap. Each workspace has a hard daily call cap, and each campaign has its own cap on top.
  5. Pacing. A minimum gap between dials is enforced for manual calls and campaign ticks.
  6. Balance. A zero or negative balance refuses the dial before the carrier is asked to ring.
  7. Disclosure. The agent identifies itself as an AI assistant. Do not rewrite the greeting to hide that.

The gate is implemented once, in lib/phone/gating.ts, and covered by unit tests. A refusal is shown to the operator with its exact reason rather than a generic failure.