# What happened

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

## Hard mode: keep the secret

**Goal:** Check that your agent kept the secret all game, then take it home.

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

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

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

**You should see:** the check passing, with not one slip from the first question to the right guess. If it doesn't pass, save the secret, ask the agent at least three questions (or hand it to someone who does), then guess.

## Take it home

Take the prompt to 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 run the game in the attendee project in [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. It 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.
