# Teach it your equipment tags

> Deepgram workshops › Field inspection logger workshop › Teach it your equipment tags
> Web version: https://workshops.deepgram.com/events/field-inspection-logger/keyterms

### Get ready for step 3 {#first-step}

**Goal:** Give Deepgram a list of your equipment names, called keyterms, and change that list while you talk.

We're building a web page that listens to you talk and writes your inspection report for you.

**Step 3 of 7.** Done: steps 1 and 2. Now: step 3, keyterms. Still to come: steps 4 to 7.

**So far:** a page where you talk and your words appear.

**In this step, you'll:**

- Give Deepgram a list of your equipment names.
- Change that list while you talk.

A keyterm is a word or short phrase you ask Deepgram to listen harder for. Say your site has a heat exchanger with the tag HX-204. You put the line `Heat exchanger HX-204` in the list. When you say that tag, Deepgram has a better chance of writing it the way you want.

**Switch to this step.** Skip this if the label at the top of the page already names step 3.

- **Codespace or your own computer.** In the app terminal, press Ctrl+C. Run `npm run step 3`, then `npm start`.
- **Docker.** In your second terminal, run `docker compose run --rm app npm run step 3`. Wait about 10 seconds.

The terminal prints `You are on step 3: Keyterms.` If the page looks stuck after you switch, [restart the app](/events/field-inspection-logger/setup#if-something-looks-wrong) and reload the page.

### Compare with and without keyterms {#compare}

1. Reload the page. The label at the top names step 3. You'll see the **Keyterms** box under **Start talking**, already filled with equipment tags. Scroll inside the box to see them all.
2. Click **Start talking**. Say: "Heat exchanger H X two oh four shows corrosion under insulation." Click **Stop**. You'll see how the tag came out under **What Deepgram hears**, such as `HX-204` or `H X 204`.
3. Click in the **Keyterms** box. Press Ctrl+A (Cmd+A on a Mac), then Delete. Click **Start talking**, say the same sentence, and click **Stop**. Compare the two versions.
4. Reload the page. You'll see the starting list back in the **Keyterms** box.

Your two versions may look alike. That's fine, and nothing broke. Keyterms raise the chance a tag comes out right. They don't promise it, because your voice, microphone, and room play a part too.

What matters here is where the list lives: the **Keyterms** box. Next, you change that list while you talk.

### Change the list while you talk {#change-mid-stream}

1. Click **Start talking**.
2. In the **Keyterms** box, type `Pump P-205` on a new line at the end.
3. Click **Apply to this stream**. You'll see `Keyterms updated (17 active)` in the status line. The number is how many terms are in use.
4. Click **Stop** when you've finished.

Reloading the page always puts the starting list back.

**You should see:** while you're listening, the status line says the keyterms were updated, with the number of terms in use. If you don't, use the fixes below.

### Fix what looks wrong {#if-something-looks-wrong}

- **Apply to this stream is grey.** It works only while you're listening. Click **Start talking** first.
- **The status says "Keyterms not updated:" or "Deepgram connection failed: Unexpected server response: 400".** The list is most likely too long. Click **Stop**, delete the lines for tags you don't need, and click **Start talking** again. See [Keyterm problems](https://github.com/deepgram-devs/field-inspection-logger-workshop/blob/main/docs/troubleshooting.md#keyterm-problems).

For anything else, find what you see in the [Start here](https://github.com/deepgram-devs/field-inspection-logger-workshop/blob/main/docs/troubleshooting.md#start-here) table. Never paste your key.

### See why it works (optional) {#under-the-hood}

When you click **Start talking**, every line in the box goes onto the Deepgram address as `keyterm=...`. While you're listening, **Apply to this stream** sends Deepgram a small Configure message over the open connection. The new list replaces the old one, and the connection stays open.

Don't expect `HX-204` yet. Nova-3 may write "HX two zero four", and step 4 turns that into the ID.

The starting list is `public/keyterms.txt`, one term per line, and it's a good file to edit with your own tags. The kit's [step 3 page](https://github.com/deepgram-devs/field-inspection-logger-workshop/blob/main/docs/step-3.md) has more.
