Rebuilding the consent flow on an inbound voice agent
How we rebuilt call-recording consent on an inbound voice agent: all-party consent on every call, what happens on a no, and CRM write-back.
An inbound voice agent we built for a 35-person home services company recorded calls it should not have recorded. Four calls in three weeks. That is four too many. Here is the flow we shipped first, what was wrong with it, and the flow we rebuilt.
This is a build note, not legal advice. The client’s counsel approved the final script and the rules it applies.
What the agent does
The agent answers inbound calls outside business hours and during overflow. It asks five qualification questions: service type, zip code, urgency, property type and preferred callback window. It writes the answers to the CRM as a new lead and books a callback slot. Recordings are kept for 30 days for quality review.
In its first three weeks it took 212 calls.
The first version
The first flow played one line at the top of the call: “This call may be recorded for quality and training.” Then it went straight into questions.
Three things were wrong.
Recording started when the call connected. The disclosure took 6.5 seconds to play. So every recording began before the caller had heard the disclosure.
The agent did not ask for agreement. It informed the caller and moved on. Where every party must consent, a caller’s silence after a disclosure is weaker ground than a clear yes.
When a caller objected, nothing changed. Nine of 212 callers said something like “I don’t want this recorded.” The language model understood them and replied “understood.” But the recording control sat in a separate system the model could not reach. In 4 of the 9 calls the recording ran to the end. In the other 5 the caller hung up.
The strict standard on every call
Some US states, including California, Florida, Pennsylvania and Washington, require consent from every party to record a call. We first tried to apply that rule only to callers from those states, using the caller’s area code.
Area codes do not tell you where someone is standing. Nearly a quarter of the client’s callers had mobile numbers registered outside the client’s service area. We dropped the lookup. Every call now gets the all-party standard. It is simpler to test, and there is no edge case where a caller gets the weaker flow.
The rebuilt flow
Recording now starts paused. The agent plays a shorter disclosure and asks a direct question:
“Before we start, can I record this call so our team can review it? You can say yes or no. Either way I can still help you.”
The answer goes down one of four branches:
- Yes. Recording starts from that moment. The question and the yes are logged as text with timestamps.
- No. No audio is stored. The agent still qualifies the lead. It keeps only the five structured answers, not a transcript.
- Unclear or silent. The agent asks once more. A second unclear answer is treated as no.
- Contradictory, such as “yes, but don’t keep it.” Treated as no.
A caller can also withdraw consent mid-call. “Stop recording” or similar ends the recording and deletes the audio captured so far, and the agent confirms it has done so. The model now calls a set_recording(state) tool to change recording state. It cannot tell the caller “understood” unless that tool call succeeds. If the tool fails, the agent offers to transfer the caller to a person.
Writing consent to the CRM
The first version wrote nothing about consent to the CRM. Sales staff calling leads back had no way to know whether a recording existed or whether the caller had refused one.
Each lead record now carries four fields:
consent_status: granted, declined, revoked or not_reachedconsent_at: timestamp of the answerdisclosure_version: which script was played, such as v3recording_id: empty unless consent was granted and not revoked
The first version wrote all lead data at the end of the call. If the caller dropped mid-call, nothing was written. Now the consent fields are written the moment the caller answers, through a retry queue. The CRM’s API returned rate-limit errors on about 3% of writes in testing. Every one of those landed on retry within 90 seconds.
not_reached covers callers who hang up during the disclosure. The sales team does not call those leads back unprompted.
Testing it
We wrote 40 scripted test calls, read by three people with different accents. They covered yes, no, silence, background noise, “what?”, contradictory answers, mid-call withdrawal and hang-ups during the disclosure. The first version passed 27 of 40. The rebuilt flow passed 40 of 40 before we switched it on.
Live results from the first 300 calls on the new flow:
- 6% declined recording. All of them were still qualified as leads.
- 2.1% hung up during the disclosure, up from 1.4% before. That is about two extra lost callers per 300 calls. The client accepted the trade.
- The consent step adds a median of 9 seconds to each call.
- Zero recordings exist for calls marked declined or revoked. We check this weekly by joining recording storage against the CRM field.
The last item is the one that matters. A consent flag is only worth something if a query can prove it was honoured.
Consent branching, CRM write-back and that weekly check are part of every Voice / Intake Agent build.