# What happened

> Deepgram workshops › Build a voice agent › Mission 05: Mystery guest › Section 5 of 5
> Web version: https://workshops.deepgram.com/voice-agent/mystery-guest/what-happened
> About 20 min (estimate). Check it: `make check 05` (offline, no key).

**What you tuned:** every layer, in one agent. Someone guessed who it was from how it heard, waited, thought, and sounded.

## Hard mode: keep the secret

**Do:** **Hard mode.** Did it keep the name the whole way?

**Check:** Hard mode: it kept the secret. (Optional.)

## Take it home

Take it home: the [Playground](https://playground.deepgram.com/voice-agent?utm_source=workshops&utm_medium=agent&utm_campaign=workshop-voice-agent&utm_content=md-mystery-guest), or [Python](https://github.com/deepgram-devs/voice-agent-workshop/blob/main/python/missions/05-mystery-guest/start.py) or [TypeScript](https://github.com/deepgram-devs/voice-agent-workshop/blob/main/typescript/missions/05-mystery-guest/start.ts).

**How it works**

Every line of the template answers a way the game breaks: a name slip, a monologue, an agent too locked down to guess, an anachronism. Most prompt writing for voice is closing off the ways a conversation goes wrong.

**Hard mode:** the check reads every line the agent said between saving the secret and the right guess, and passes when there were at least three and none gave the name away. Solo counts too.

The prompt drops straight into the Playground. The attendee project runs this game, surprise pick and all. In your own code, keep the answer on your server and add it to the prompt when the session starts; the code panel on **Write the character** shows where.

**In production**

- **Watch:** whether a prompt rule holds over a long call. Log each reply that breaks a rule your app can test in code (here, saying the name), per thousand turns.
- **Aim for:** one to three sentences a reply, and zero rule breaks in a few dozen scripted trick questions before you ship a prompt change.
- **Read:** the [Voice Agent docs](https://developers.deepgram.com/docs/voice-agent) on the think block and on `UpdatePrompt` for changing instructions mid-call.
