Skip to main content

Workspaces in the AI Assistant

When the AI Assistant in writes a file, runs code or builds something for you, it works on its own computer in the cloud. That computer and its files are called a workspace. This page explains what a workspace keeps, how several chats can share one, how to run work while you are away, and how to get your files out.

Your files are kept​

Every conversation that uses files or runs code gets its own workspace, created the first time it is needed. You do not set anything up.

  • Closing the browser loses nothing. The work runs on our servers, not in your browser.
  • When you open the conversation again, even weeks later, the workspace and its files are there.
  • Files are kept until you delete the conversation. For a web app, they are kept until you delete the app.

A new conversation starts with a new, empty workspace. To keep working in the same files from several chats, use a web app (next section).

Share the same files across several chats​

A web app is a named project in the AI Assistant. Every chat opened on the app works in the same files, so you can start a fresh conversation without losing or copying anything.

  1. Go to AI Assistant. In the left sidebar, find Web apps.
  2. Click the + next to it and choose New web app. To start from code you already have, choose Import from GitHub.
  3. To open another chat on the same files, click ⋯ on the app's row and choose New chat. You can also click the app's name at the top of a chat, where Chats lists the app's conversations and New chat starts another.

A web app has no monthly fee until you publish it or start using its database. When publishing starts a monthly fee, you are shown the fee before the app is published.

Let teammates work on it​

Teammates whose role has the AI Assistant and Web Apps permissions can open your account's web apps. Set them under Settings → Team Users → Roles. With View on Web Apps a teammate can read an app's chats and files and download its backups, and with Update they can chat on it and change it.

The permission covers every web app

The Web Apps permission applies to all web apps in the account, not to one of them. Give it to teammates who may see all of them.

Each account is separate. A sub-account's workspaces cannot be opened from another sub-account.

See and download files​

Open a chat and click the Files button (the folder icon) at the top. It appears once the conversation has a workspace. On a web app, it is in the app's first chat. The Files panel on the right lists everything in the workspace. Click a file's name to preview it, then Download.

The Files panel downloads one file at a time. To download everything in a web app at once, use Backups.

Download everything: Backups​

  1. Click ⋯ on the app's row and choose App settings.
  2. Scroll to Backups.
  3. Click Download code (.zip) for the app's source code and full change history.
  4. Click Download database (.zip) for the app's data. This button appears when the app has a database.

In the same window, the GitHub card connects the app to a repository in your GitHub account and keeps the two in sync (Connect GitHub).

Install software​

Ask the assistant to install what the work needs. The workspace is a Linux computer with Python, Node.js, git and FFmpeg already installed, and the assistant can add other Linux packages and libraries.

How long an installation lasts:

  • Libraries installed inside your project's files stay with the files.
  • Programs installed on the system stay while the workspace is in regular use. After 14 days without use, the workspace is put away with its files only. The files come back the next time you open it; system programs have to be installed again. Ask the assistant to keep a setup script in your files so it can reinstall them in one step.

Run work while you are away​

  • Long tasks. The assistant keeps working after you close the browser. By default it can work on one message for up to 4 hours. To change that, go to AI Assistant, click Assistant settings at the bottom of the left sidebar, open Preferences, and under Working limits set Working time per chat message (at most 1,440 minutes, which is 24 hours). Working time per scheduled task sets the same limit for scheduled tasks.
  • On a schedule. In the left sidebar of the AI Assistant, click the + next to Scheduled (New scheduled task). Give it a name, instructions and a schedule, and choose a Daily credit budget. You can also ask the assistant in a chat, for example "Schedule a daily task at 8am that...". A task you ask for in a web app's chat works in that app's files every time it runs.

A program the assistant starts runs while the assistant is working on your message. It is paused when the assistant finishes, and continues the next time the workspace is used.

What it costs​

The time the assistant uses its workspace is billed by the minute as Code Execution, only while the assistant is working in it. An idle workspace costs nothing, and neither do the Files panel, downloads and backups. Your account's price and usage are under Settings → Billing → Usage. AI work itself uses assistant credits, which are separate.

What a workspace is not​

  • Not a server. A workspace sleeps when it is not in use, so it cannot host a website, an API or a database for your visitors. Build and test there, then publish the web app.
  • No desktop applications and no graphics card. It runs Linux command-line software. Applications that need Windows, macOS or a graphics card do not run in it.
  • No web browser inside the workspace. Installing one is not supported.
  • Restoring files does not restore running programs. After a workspace has been put away, your files come back and programs that were running do not.