Recording-consent agent template

August 31, 2026 · release

@voicethere/agent 0.5.6

We added a recording-consent agent template that shows how to combine conversation recording with explicit consent and PII-safe pauses.

What it does

On each session connect (not process-wide agent start), the template asks whether recording is OK when the project has recording enabled. Consent is tracked per session id. If the caller agrees, capture pauses before collecting name and date of birth, then resumes only when consent was yes and the project still allows recording. If they decline, capture stops and does not resume.

When project recording is off, the template skips consent, logs a warning, and still collects identity fields — startRecording and resumeRecording return { ok: false, reason: "disabled" } because agents cannot turn recording on for a disabled project.

Use it for compliance-friendly quality recording, omitting regulated PII from stored audio, and the same pause pattern for card numbers or SSN later in a call.

Try it

Create a project in the VoiceThere dashboard and choose Recording consent from the Template dropdown — the platform uploads and promotes the prebuilt bundle from @voicethere/agent 0.5.6.

To customize locally, copy the template from the agent package sources:

git clone https://github.com/voicethere/agent.git
cd agent
npm install
npx @voicethere/agent build --entry templates/recording-consent/agent.ts --outfile dist/agent.js

Enable recording on your project, upload, and deploy — see the guides below.

Similar posts

← All posts