# Four layers

> Deepgram workshops › Build a voice agent › Mission 00: First words › Section 1 of 4
> Web version: https://workshops.deepgram.com/voice-agent/getting-started/four-layers
> About 20 min (estimate). Check it: `make check 00` (offline, no key).

## See the four layers of a voice agent

**Goal:** Get a voice agent talking, then change its prompt and voice and hear what each change does.

**Time:** about 20 minutes. **You need:** headphones, if you have them. This mission works on any Deepgram key.

In this mission you work on Voice, with a little Thinking. You change settings and listen.

**How it works**

**Your agent has three parts.** It hears you (speech-to-text, or STT), thinks about what to say (a large language model, or LLM), and talks back (text-to-speech, or TTS). Each part has one setting:

- **Hearing** is `agent.listen`, set to Deepgram Flux STT (`flux-general-en`).
- **Thinking** is `agent.think`.
- **Voice** is `agent.speak`.

Timing, which decides when the agent takes its turn, is covered in Mission 1.

In the next lesson you tap **Start the agent**. Your browser then sends one Settings message, a block of JSON that holds every setting at once: the prompt (who the agent is), the greeting (its first line), and the voice.

```text
Settings                  One Settings message           Conversation
prompt, greeting, voice → sent when you tap Start    → what you hear back
```

**Settings in, conversation out.**

The agent reads that message once, at the start. When you change a setting, the button reads **Reconnect and apply**. Tap it to send the message again with your new settings. The conversation stays on screen so you can compare.

**Apply voice only** swaps the voice and its speed mid-call. Every other change goes out on **Reconnect and apply**, which always works.
