# Edit with an assistant in the editor

> Let an AI assistant read and change the position or workflow you have open, then review its edits and apply them yourself.

An assistant connected over MCP can work in the position or workflow you have open in your browser. It sees what you see, including unsaved changes and what you have selected, and its edits appear on your canvas as unsaved changes. Nothing is saved until you select **Apply**.

## Before you begin

- [Connect an AI assistant](/docs/buttons/v1.10/mcp/connect-an-ai-assistant) with a token of your own. The assistant can only use editors that you have open while signed in as the same user as the token.
- Open the position or workflow in the Buttons web interface, in a browser tab or in the desktop app.

## Ask for a change

1. Open the position or workflow you want to change.
2. Optional: select the buttons, elements or nodes you mean. "Make these red" works on the current selection.
3. Ask the assistant, for example:

- "On the position I have open, add a row of eight buttons that select inputs 1 to 8 on the vision mixer."
- "In this workflow, add a node that sets the tally variable when program changes."

4. Watch the editor. Each changed item lights up briefly as the edit arrives, and appears in the outline on the left.

![Position editor with eight new Input buttons highlighted on the canvas and listed in the outline](https://bitfocus.io/api/docs-media/file/edit-highlight.png?prefix=docs-media)

5. Check the result, then select **Apply** to save it. To reject a change, use **Undo**.

If you had more than one editor open, the assistant works in the one you used most recently. Click in the editor you mean before asking.

## What to expect

- **Edits stay unsaved.** The assistant changes your open canvas, not the saved document. If you close the tab before you select **Apply**, the edits are gone.
- **Keep the tab open.** Buttons keeps track of the page while it is open. A tab that has been in the background for a long time may stop being found; click in it again.
- **Your own changes win.** If you change the same items while the assistant is working, its edit is rejected as a conflict. The assistant reads the editor again and retries.
- **It can also work without the editor.** When no editor is open, an assistant can still create and change saved positions and workflows directly. Those changes are saved straight away. New workflows are created disabled, and the assistant has to enable them in a separate step.

## Next steps

- [What an assistant can do](/docs/buttons/v1.10/mcp/what-an-assistant-can-do)
