# 01 Let me finish

> Deepgram workshops › Build a voice agent › Mission 01
> Web version: https://workshops.deepgram.com/voice-agent/turn-taking
> About 25 min (estimate). Check it: `make check 01` (offline, no key).

Read a phone number slowly and it waits.

- [The knobs](https://workshops.deepgram.com/voice-agent/turn-taking/the-knobs.md)
- [Read a number](https://workshops.deepgram.com/voice-agent/turn-taking/read-a-number.md)
- [Change one thing](https://workshops.deepgram.com/voice-agent/turn-taking/change-one-thing.md)

## The knobs

### Read the three knobs

**Goal:** Name the three timing knobs and say what each one does to a pause.

**You need:** early access to the `timing` feature for live runs. The offline check works without it.

Read a phone number with pauses and the agent waits for the rest. Three knobs set how. A knob is a slider in the settings panel.

Each knob changes how the agent handles a pause. A backchannel is the short "mm-hm" the agent says to show it is still listening. A presence check is the agent asking "still there?" when you go quiet.

| Knob | What it sets |
|---|---|
| **Backchannel sensitivity** | How readily it says "mm-hm" |
| **Presence check interval** | Silence before "still there?" |
| **Max presence checks** | How many times it asks |

- **Backchannel sensitivity:** at 0 it never interjects, so every pause is yours to fill. Near 1 it waits longer and reassures more.
- **Presence check interval:** a short one feels pushy. A long one leaves a dropped call open.
- **Max presence checks:** 0 means it never asks. After the last check the agent stays on the line until you or your app hang up.

**How it works**

A voice agent that relies on silence alone treats a long pause as the end of your turn. Read a number the way you would to a person: three digits, a breath, four more. The agent answers in the breath.

Deepgram Flux STT (`flux-general-en`), our speech-to-text model, detects the end of your turn, and the pause is measured from there. With {{name.timing}} on, the agent listens to how you paused as well as when, and decides whether to wait.

### Check your settings before you start

Look at the settings panel. The prompt is a receptionist taking a number, because a phone number is the shortest thing people say with pauses in it. The panel opens with the voice you picked in First words.

**You should see:** the three sliders from the table, and your voice from First words. If the voice is a different one, pick it again.

## Read a number

### Read your number slowly

**Goal:** Read a phone number with a pause and hear the agent wait, then end the call by saying goodbye.

**You need:** a working microphone.

Talk out loud here, because the agent hears the pause in your voice.

**Do:** Tap **Start the agent**, say "I'd like to leave my number," then read seven digits out loud with a real pause after the first three.

**Listen for:** "mm-hm" in the gap.

_On the web page, this step has the agent console: talk or type to the agent there, or run the same mission in your own code._

**Check:** It waited while you read a phone number.

**You should see:** a quiet "mm-hm" in the gap, which means the agent is holding the floor. An answer means it took your turn. If it answers before you finish, read the number in two or three chunks. Then raise **Backchannel sensitivity** a notch from its starting value of 0.3 and tap **Reconnect and apply**.

### Say goodbye

**Do:** When it has your number, say "okay, bye" after it finishes a sentence.

**Listen for:** its goodbye; the call closes on its own.

**Check:** It wrapped up when you said goodbye.

**You should see:** the status changes to Conversation ended, with no tap on **Hang up**. If the call stays open, say "okay, bye" again on its own after the agent finishes a sentence. Wait for its goodbye before you tap **Hang up**.

**How it works**

The agent never closes the connection itself. Instead it calls a function named `end_call`, which this mission gives it. A function is a named action the agent can ask your app to run. Your browser hangs up once the goodbye has played.

Leave the presence knobs for now. Backchannel sensitivity starts at 0.3, enough for a short pause.

## Change one thing

### Set sensitivity to zero and compare

**Goal:** Change one knob, hear the difference, then read a ten-digit number through two pauses.

**You need:** a working microphone.

Backchannel sensitivity sets how readily the agent says "mm-hm" instead of answering. Compare the extremes on the same number.

**Do:** Set **Backchannel sensitivity** to 0, tap **Start the agent again**, and read the same number.

**Listen for:** who takes the gap. Set it back to 0.3 and tap **Reconnect and apply**.

_On the web page, this step has the Settings panel; in your own code the same settings are in the start file._

_On the web page, this step shows the code panel with the matching code._

_On the web page, this step has the agent console: talk or type to the agent there, or run the same mission in your own code._

**Check:** You heard what Backchannel sensitivity does. (Optional.)

**You should see:** a different winner of the gap. For example, at 0 it answered after three digits, and at 0.3 it hummed and waited. If nothing changes, check that you tapped **Start the agent again** after moving the slider.

### Stay quiet to trigger the presence checks

A presence check is the agent asking "still there?" when you go quiet.

**Do:** Stay quiet. Leave the presence knobs where they are.

**Listen for:** "still there?" after about 4 seconds, twice, then silence.

**You should see:** two "still there?" prompts, each after about 4 seconds of quiet, then silence, with the call still open. If you hear none, check that **Max presence checks** isn't 0 and that your account has early access to `timing`.

### Hard mode: read ten digits through two pauses

Split the number as three digits, a pause, three more, a pause, then the last four. If the call has ended, tap **Start the agent again** first.

**Do:** **Hard mode.** Read ten digits aloud in three pieces.

**Listen for:** it waiting through both pauses. Then tap **Hang up**.

**Check:** Hard mode: ten digits, two pauses. (Optional.)

**You should see:** the agent waits through both pauses, and the check passes once all ten digits have arrived. If it jumps in, raise **Backchannel sensitivity** a notch, tap **Reconnect and apply**, and try again.

### Run the same mission from your own code

Open the starter for your language: [Python](https://github.com/deepgram-devs/voice-agent-workshop/blob/main/python/missions/01-let-me-finish/start.py) or [TypeScript](https://github.com/deepgram-devs/voice-agent-workshop/blob/main/typescript/missions/01-let-me-finish/start.ts).

**You should see:** `make check 01` finish with no FAIL lines. If any remain, finish the TODOs and run it again.

**How it works**

Say what changed in one sentence before you mark it: "at zero it answered after three digits; at 0.3 it hummed and waited."

The three sliders are three numbers in the timing block of the Settings message. The **Settings JSON** tab shows your values. The handlers in the code panel show where "mm-hm" and the presence check arrive, and how your app hangs up when the agent calls `end_call`.

The silence you counted is **Presence check interval**. The number of asks is **Max presence checks**. A max of 0 never asks, and a short interval with a max of 5 asks five times close together. Tap **Hang up** when you're done listening. Change either one and tap **Reconnect and apply** to send it.

**Hard mode:** the check counts the pieces your voice arrived in and passes when the agent let you finish all ten.

The attendee project has this mission as four TODOs for the timing block and `end_call`, with an offline check. The what-changed check is optional and on your honor.

**In production**

- **Watch:** talk-overs, meaning both of you talking together. A `UserStartedSpeaking` within a second or two of `AgentStartedSpeaking` usually means the agent took a turn the caller wasn't done with. Count them per call.
- **Aim for:** Backchannel sensitivity between 0.3 and 0.6 for callers reading numbers and addresses. Also set a presence check every 4 to 8 seconds, with 1 or 2 checks before your app hangs up.
- **Read:** the [Mission 01 brief](https://github.com/deepgram-devs/voice-agent-workshop/blob/main/missions/01-let-me-finish/README.md) in the code project: each knob, what it does, and its wire name.

**What you tuned:** the timing layer. Same prompt, same voice, and now it knows when you're done talking.
