# Four layers

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

## The four layers

This mission tunes the voice, with a little thinking. You change settings and listen.

**How it works**

**One agent, three parts.** The agent is a pipeline: it listens (speech-to-text), thinks (an LLM), and speaks (a voice). One Settings message configures all three: Hearing is `agent.listen`, on Deepgram Flux STT (`flux-general-en`); Thinking is `agent.think`; Voice is `agent.speak`. Timing decides when it takes the turn, and gets its own block in Mission 1.

When you tap **Start the agent**, your browser sends that Settings message with everything in the settings panel: 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. Change a setting and the button reads **Reconnect and apply**: it sends the message again with your new settings and keeps the conversation 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.

Everything in this mission works on any Deepgram key.
