The Compliance-Gated AI Cold Caller: Dry-Run First, DNC Always Honored
Run AI voice cold calls that cannot dial until a compliance gate (format, suppression list, DNC registry, calling window) clears, with a dry-run mode for testing.
by Kelsey (kelsey-aai), via AssemblyAI
- medium
- Nov 9, 2026
Shown: The source shows the workflow or result so you can inspect it.
Read the source (github.com)(opens in a new tab)The workflow
The workflow as recorded. Replace anything in [BRACKETS] with your own details.
Clone the repo, add the keys, and drop your leads in a CSV. dialer.py runs every lead through a compliance gate first: E.164 format, local suppression list, DNC registry check, and a TCPA calling window (8am-9pm in the recipient's local time from area code); every skip is logged with its reason and nothing dials if any check fails. Twilio places the call, AssemblyAI Universal-3 Pro Streaming transcribes in real time, GPT-4o runs the conversation with four tools (book_meeting, mark_callback, mark_not_interested, honor_dnc), and ElevenLabs voices the replies. The opener discloses it is AI in the first sentence. Any 'take me off the list' phrasing triggers honor_dnc immediately: the number is appended to suppression.txt, the call ends, and the disposition is logged. Every call ends as one row in dispositions.csv with the recording URL for QA. Test without dialing anyone: point leads.csv at your own number and run python dialer.py --dry-run, then --limit 1 and play the prospect yourself.
How it went
No separate result detail is recorded for this play. The source shows the workflow or result so you can inspect it.
A dispositions.csv with one row per call (outcome plus recording URL for QA), booked meetings, and a suppression list that grows automatically on every opt-out.
How to try it
The cloned repo, AssemblyAI, OpenAI, ElevenLabs, and Twilio keys, and a CSV of leads.
Not recorded for this play. Check the source before you rely on it.
Worth knowing
The repo is verified live (created Apr 20, 2026, 1 star, 0 forks, 1 commit, dialer plus server plus compliance module plus sample leads plus dry-run mode all present; companion walkthrough published on AssemblyAI's blog). Caveats: single commit and 1 star, so no independent confirmation anyone runs it; the DNC registry checks are stubs that need a real provider wired in before any real dialing, and the README says so plainly; and AI cold calling carries TCPA, state-consent, and carrier-flag risk, which is why the compliance gate and the dry-run are the point of the entry, not the dialing. No claimed booking or reply numbers to verify; the code and the compliance design are the evidence.
Source and credit
Kelsey (kelsey-aai), via AssemblyAI
The source shows the workflow or result so you can inspect it.