Calling policy
The rules the dial gate enforces before every call, manual or campaign.
- 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.
- 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.
- 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.
- Daily cap. Each workspace has a hard daily call cap, and each campaign has its own cap on top.
- Pacing. A minimum gap between dials is enforced for manual calls and campaign ticks.
- Balance. A zero or negative balance refuses the dial before the carrier is asked to ring.
- 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.