Workbench
Open documents and code the AI made beside the conversation to edit, track versions, run and download them.
Updated November 25, 2026 · 4 min read
Open the workbench
The AI creates documents. Choose Write a document from + in the message box and send, and the answer arrives as a document in the workbench.
- On a document card in the conversation, choose Open.
- The workbench opens beside the conversation.
- Choose Documents in this chat to open any document from the conversation.
- Drag the workbench edge to resize it. Double-click to reset.
- Choose Fullscreen to fill the screen.
What the workbench can open.
| Kind | What you can do |
|---|---|
| Document | Edit and preview |
| Code | Edit and run (some languages) |
| HTML, React, SVG, Mermaid | Edit and preview |
Sign in to use the workbench. Some models can't use Write a document.
Edit and versions
- Make changes in Edit and choose Save to keep them as a new version.
- Use Choose a version to see earlier versions. Each shows whether You or AI made it.
- Earlier versions are read-only. Choose Restore this version to save its content as a new version.
- Diff shows what changed from the previous version.
- Preview shows the result. Code has no preview.
If the AI updates the document while you edit, your unsaved changes are kept. The update is not loaded automatically, so check before you save.
Ask the AI to edit
- Select part of the document to see Ask AI about the selection. Type what you want and choose Ask AI.
- AI actions offers ready-made requests, such as Make shorter or Make simpler for documents, and Review code or Fix bugs for code.
- Choose Suggest edits to get proposed changes. Choose Accept or Reject for each. Accepting creates a new version.
Run code
JavaScript, TypeScript and Python code can be run with Run. It runs in an isolated sandbox with no network access.
- Results appear under Output. Choose Stop to stop it.
- There is a limit on how long each run can take.
- Input (stdin) is not supported. Put the values in the code instead.
Download and share
- Choose Download to save the version you are viewing as a file.
- Documents and HTML can also be saved as PDF or Word (.docx). For PDF, choose Save as PDF in the print dialog.
- Choose Share to publish the document as a read-only page. Your chats and memories are not shared.
Troubleshooting
| Situation | What to do |
|---|---|
| The document is too long to save | There is a limit on document length. Shorten it, then save. |
| The version limit is reached | Create a new document to keep editing. |
| The save limit is reached | Please try again later. |
| Your storage limit is reached | Delete documents or attachments you no longer need. |
| A version was saved elsewhere | Your changes are kept. Choose Compare with latest to check, or Save my changes. |
Was this page helpful?