# Edit the story with the Chat panel

![The Chat panel after two requests: two tracks muted and applied, then a deletion waiting with Apply 1 edit and Discard buttons](https://github.com/HamSanders/soundbox/blob/main/site/public/docs/studio/chat.webp)

## Before you begin

- Turn on the prompt assistant, which is off by default: in **Settings > Prompt assistant & artwork**, in the
  **Prompt assistant** list, select **Local** to run a small model that Mirli manages, or **External** to use a
  server you already run, such as Ollama or LM Studio. With **Local**, if Settings says the engine or model is
  missing, install it under **Prompt assistant** on the **Models** page.

## Ask for an edit

1. In the **Panels** menu, select **Chat**.
2. In the box at the end of the **Chat** panel, enter your request. Refer to tracks by their number, to clips by what
   they are ("the vocals", "the second explosion"), and to the playhead as "here".
3. Press <kbd>Enter</kbd> to send. The reply lists each edit in plain words.
4. If the reply says *Applied to the studio*, the edits are done. To undo them, use **Undo** on the timeline
   toolbar.
5. If the reply waits for you, read the plan. Deletions are marked in red.
6. Click **Apply 1 edit** to carry out the plan, or **Discard** to drop it. The button shows the number of edits.

## Examples of requests

| To | Enter |
| --- | --- |
| Change what is there | "mute 1 and 3", "rename the tracks", "drop track 2 by 6 dB", "delete the last clip" |
| Move audio | "move the vocal to the cursor" |
| Add an effect | "put a delay on the drums", "add reverb to the vocal" |
| Make something for this story | "add some drums", "put rain under this", "add a bassline on track 2" |
| Make a whole piece | "a hardcore instrumental where distorted guitars thrash over a double-kick kit" |
| Write and read lines | "write a two-line exchange between the guard and the thief", "read the scene" |
| Work the interface | "show the library", "open the script", "start recording" |

> [!NOTE]
> Effect changes and new tracks cannot be undone, whether you make them by hand or through Chat.

## What's next

- [Arrange clips on the timeline](https://mirli.app/docs/studio-timeline/index.md) to adjust what Chat placed.
- [Turn a script into a scene](https://mirli.app/docs/studio-script/index.md) to write lines by hand.
