> For AI agents: the complete documentation index is available at https://docs.heys.ai/workstation/en/llms.txt, the full documentation bundle is available at https://docs.heys.ai/workstation/en/llms-full.txt.

# Apps

A conversation is good for "say one thing, get one thing done", but some work needs **a dedicated interface**: a contract library where you go through review comments one contract at a time and tick off what is confirmed; a board you drag things around on; a set of notes you jot down and flip through whenever you like. **Apps** are small applications of this kind that run inside HeyS: each has its own interface and data, calls on the agent when there is work to do, and shows the result right away once the agent is done. You can also talk to the agent directly inside an app and have it click buttons and fill in forms for you, or even remodel the app on the spot.

## What an app is \{#what-an-app-is}

| Feature                                       | Description                                                                                                                                                                                  |
| --------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Runs in a floating window**                 | Like the Office preview, it can be moved, resized, minimized and maximized, and several can be open at once; the desktop app can also open one in its own window                             |
| **Has its own private data**                  | Each app has its own data folder in each space, where its notes and settings live; updating or reinstalling the app does not lose the data                                                   |
| **Asks you before using a project folder**    | When an app wants to read or write files in a project, it shows a project picker; access takes effect only after you choose one and click **Grant**, and you can revoke it at any time       |
| **Asks you before putting the agent to work** | When an app wants to start a task or a Case, HeyS shows a confirmation dialog **outside** the app window, with the task text and working folder; nothing is sent until you click **Confirm** |
| **Fills in the input box, never sends**       | An app can put text into the HeyS input box; you check it, edit it, and press Enter to send it yourself                                                                                      |

The confirmation dialog is drawn by HeyS itself and sits on top of the app, so the app can neither change nor fake it. So whoever made the app you installed, **it cannot have the agent do anything without your consent**.

## The Apps page \{#the-apps-page}

The entry for apps is under **More** (…) in the icon rail: click **More** → **Apps**. If you use it often, click the pin to the right of **Apps** in the **More** menu to pin it to the icon rail; after that, click the icon to go straight there ([Interface Overview](https://docs.heys.ai/workstation/en/interface-overview.md)).

<figure>

![The Apps page: a one-line description under the title, "Manage apps" at the top right; tag filters (All, developer, productivity); three cards, 便签 (Notes), 合同审查 (Contract review, with a "Legacy app" label) and 组件示范 (Component showcase), each with a description, tags, a version number and "⋯"](/screenshots/en/p18-小程序-9533d5.webp)

<figcaption>The Apps page: a one-line description under the title, "Manage apps" at the top right; tag filters (All, developer, productivity); three cards, 便签 (Notes), 合同审查 (Contract review, with a "Legacy app" label) and 组件示范 (Component showcase), each with a description, tags, a version number and "⋯"</figcaption>
</figure>

Each card is an app: its name, a one-line description, tags and version number. **Click a card to open the app in a floating window.** Administrators see **Manage apps** at the top right ([Managing apps](#managing-apps)).

### Organizing the list

| Action                | How                                                                                                                                                                                                                                                                                        |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Pin**               | Card **⋯** → **Pin**; pinned apps come first. **Unpin** reverses it                                                                                                                                                                                                                        |
| **Reorder**           | Drag the cards, or use **⋯** → **Move up** / **Move down**; **Sort by name** clears the order you dragged into place (pinned apps still come first)                                                                                                                                        |
| **Filter by tag**     | Click a tag above the cards (such as "developer") to see only apps with that tag; click **All** to go back                                                                                                                                                                                 |
| **Add your own tags** | **⋯** → **Edit tags**, type a tag and press Enter to add it. The app's own tags and the ones you added are shown separately; the ones you add are stored on this computer only and do not change the app itself. Each app can have only a few custom tags, and each tag has a length limit |

### Built-in examples

| App                           | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **便签** (Notes)                | A simple example that uses only private data: create, edit and delete notes, all stored in the app's own data folder, with no project needed. Your notes survive restarting HeyS and updating the app. It also hands features such as "New" over to the agent to call ([Having the agent operate and remodel an app](#having-the-agent-operate-and-remodel-an-app))                                                                                             |
| **组件示范** (Component showcase) | All the standard components an app can use: calling the AI (three ways: background task, assistant conversation, and filling in the input box), buttons, forms, segmented switches, lists, tables, empty states, file lists, dialogs and toast bars, Markdown, and charts. Colors follow the HeyS skin and light or dark mode; each section comes with example code you can take with **Copy** at the top right, which makes it a good reference for developers |

Built-in apps are updated automatically when HeyS is upgraded; if you uninstall a built-in app, later upgrades do not install it again.

## Opening apps and working with the window \{#opening-apps-and-working-with-the-window}

<figure>

![合同审查 (Contract review) running in a floating window: on the right of the title bar are ⋯, minimize, maximize and close; in the window are the contract library (3 contracts in the contracts/ folder), "上传合同" (Upload contract) and "审查全部未审（2）" (Review all unreviewed (2)), three counts (contracts, unreviewed, high risk to confirm), a drop zone for uploads, the filters 全部 / 未审 / 审查中 / 已完成 (All / Unreviewed / In review / Done) and three contracts, with "审查这份" (Review this one) on the unreviewed contract](/screenshots/en/c40-小程序-合同审查-9533d5.webp)

<figcaption>合同审查 (Contract review) running in a floating window: on the right of the title bar are ⋯, minimize, maximize and close; in the window are the contract library (3 contracts in the contracts/ folder), "上传合同" (Upload contract) and "审查全部未审（2）" (Review all unreviewed (2)), three counts (contracts, unreviewed, high risk to confirm), a drop zone for uploads, the filters 全部 / 未审 / 审查中 / 已完成 (All / Unreviewed / In review / Done) and three contracts, with "审查这份" (Review this one) on the unreviewed contract</figcaption>
</figure>

The app window's title bar:

| Button        | What it does                                                                                                                                                                                                                                   |
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Assistant** | Opens the HeyS assistant panel ([The assistant panel: talking to the agent inside an app](#the-assistant-panel-talking-to-the-agent-inside-an-app)). Only apps that declare they work with the agent have it                                   |
| **⋯**         | The more menu ([The ⋯ menu and permissions](#the-menu-and-permissions))                                                                                                                                                                        |
| **Minimize**  | Collapses into a small title bar that sits at the bottom left of the app window, above the account avatar; several minimized apps stack from the bottom up. Click it to restore. A minimized app keeps running, and its page state is not lost |
| **Maximize**  | Fills the main area; click again to restore                                                                                                                                                                                                    |
| **Close**     | Closes the window. Closing it does not cancel tasks or Cases the app started; when you open it again, it reads their status back from the server                                                                                               |

You can move the window by dragging the title bar and resize it by dragging its edges. Going to another page does not close the app window; switching spaces does.

**Separate window**: in the desktop app, click **Open in new window** in **⋯** and the app opens in a system window of its own, and the original floating window closes. Only one separate window is opened per app; opening it again brings the existing one to the front. In the web app, the equivalent is **Open in new tab**.

### When an app hands something to the main interface

When an app "fills in the input box" or "opens a session", the main interface jumps there, the app window minimizes itself to make room, and the message "Filled into a new task. Review it and press Enter to send." appears. The text is only filled in, and **is never sent for you**: take a look, edit it, then press Enter. The same goes for a separate window: the main window jumps there and comes to the front.

### Example: contract review

The demo data includes an app called 合同审查 (Contract review), whose default expert is 合同审查专家 (contract review expert):

- At the top are the **contract library** (the `contracts/` folder that holds the contracts, and how many there are) and three counts: contracts, unreviewed, and high risk to confirm;
- Drag `.md`, `.docx` or `.pdf` files in, or click 上传合同 (Upload contract), to add contracts;
- Filter by 全部 (All), 未审 (Unreviewed), 审查中 (In review) and 已完成 (Done); each contract shows its number, counterparty, amount, number of clauses and status;
- 审查这份 (Review this one) or 审查全部未审 (Review all unreviewed) has the agent do the review. The demo installs a version converted from an old workbench (the card is labeled **Legacy app**), so the buttons fill the task into the input box of the New Task page for you to send; a new-style app instead asks to start the task directly, showing a confirmation dialog first;
- After the review, go through the risks and suggested changes one by one, tick 已确认 (Confirmed) and write notes; in its next round the agent reads your confirmations and notes and responds to them.

The agent writing review comments and you ticking boxes on the page change **the same file**: the agent writes risks and suggestions, you write confirmations and notes, each in its own fields, so no extra syncing is needed.

## The assistant panel: talking to the agent inside an app \{#the-assistant-panel-talking-to-the-agent-inside-an-app}

Apps that declare they work with the agent have an **Assistant** button in the title bar. Click it and HeyS's own conversation panel slides out on the right side of the window, so you can have a multi-turn conversation with the agent without leaving the app:

- In the panel you can see the run, the answer as it streams in, charts and **question cards**, and you can pause and cancel just as on the session page;
- The dropdown at the top switches between this app's other conversations; the buttons next to it start a new conversation, **Open in session view** (jump to the full session page to continue), and close the panel;
- A new conversation's working folder defaults to the app's own data folder, so the app can read the files the agent writes right away;
- The input box is drawn by HeyS, and what you type in it is what you say, with no per-message confirmation. If the app wants to "send the agent a message for you", it still has to show the confirmation dialog first: "“App name” wants to send a message to the Agent for you".

Sessions started by apps **do not appear in the sidebar**; you can find them under the app's **⋯ → Related sessions**, or on the **Sessions** page use the **Source** filter to see the sessions started by all apps, or by one app ([Sessions, Projects and Files](https://docs.heys.ai/workstation/en/sessions-projects-and-files.md)). These tasks cannot see your other conversations and do not read or write your global memory; the agent is told which app the task comes from and that the app will read its answer.

## Having the agent operate and remodel an app \{#having-the-agent-operate-and-remodel-an-app}

### The agent operates the page directly

In an app's assistant panel or in the app's own chat, the agent can **look at the page, click buttons, type text, and take screenshots to check the layout directly**, and the interface changes on the spot, without waiting for the task to finish; when it changes data files, the window also refreshes file by file.

- While it is acting, "**The assistant is operating**" appears at the top of the window, with **Pause** next to it, so you can stop it at any time;
- When the agent clicks a button that makes HeyS show a confirmation dialog (starting a task, requesting a folder, and so on), the decision is still yours; it cannot touch HeyS's own interface;
- An app can declare its own **actions** in its manifest (such as **New** in Notes), and the agent calls these actions first; before an action that needs confirmation runs, the dialog "The assistant wants to run an action in “app name”" appears, and it runs only after you click **Allow**.

Taking screenshots to check the layout is only available in the desktop app; in the web app the agent can operate apps that support it, but does not take screenshots.

### Remodeling the app

A new conversation in the assistant panel can choose between **Use** and **Remodel**. With **Remodel** (only available locally or to administrators), the agent changes the app's own code, for example adding a button or changing the layout:

1. Open the assistant panel, start a new conversation, choose **Remodel**, and say what to change.
2. The agent makes the changes on a development copy of the app, and **you see the result right away in the same window**. The window is marked **Remodeling** and reads and writes a set of test data, so your real data is not affected.
3. When you are happy with it, click **Install**. If the changed version adds capabilities or actions, they are listed for you to confirm. After installing, the card is labeled **Changed locally**.
4. If you are not happy, click **Discard**: the changed copy and the test data are deleted, and the window goes back to the installed version.

A remodel conversation only accepts what you type yourself in the assistant panel; an app cannot start a remodel for you.

:::note Note
Apps installed from the extension market can only be changed by their author: anyone else does not see **Remodel**, **Modify** or **Export**, and the details say "From the extension market, cannot be changed". Local versions installed before remodeling still work and can still be changed. When the files of an app installed from the market are changed, it is turned off and cannot be opened, and is labeled "Files changed, turned off"; click **Reinstall** to restore the original from the market ([Extension Market](https://docs.heys.ai/workstation/en/extension-market.md)).
:::

## The ⋯ menu and permissions \{#the-menu-and-permissions}

The **⋯** in the app window's title bar:

| Menu item              | When it is there                      | Description                                                                                                                                                                                                                                                                        |
| ---------------------- | ------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Granted folders**    | When the app requests project folders | Lists the projects it can access (read-only or read-write); **Revoke** takes effect immediately                                                                                                                                                                                    |
| **Related sessions**   | When the app starts tasks             | The task sessions it has started; open one from here to review the run and continue the conversation                                                                                                                                                                               |
| **Open in new window** | Desktop app                           | See [Opening apps and working with the window](#opening-apps-and-working-with-the-window) (in the web app it is **Open in new tab**)                                                                                                                                               |
| **Reload**             | Always                                | Reloads the app page                                                                                                                                                                                                                                                               |
| **Clear data**         | Always                                | Deletes all files and settings it has saved in **the current space**. The confirmation dialog shows how many files and how much space; **deleted data cannot be recovered**. The project folders granted to it, the files in those projects, and related sessions are not affected |
| **About this app**     | Always                                | Version, author, capabilities (request project folders, start tasks, use Cases, let the agent call its features, or **Own data only**), and folder permissions                                                                                                                     |

### The confirmation dialogs

| Dialog                                                                                   | When it appears                              | After you confirm                                                                                                                                                                                                |
| ---------------------------------------------------------------------------------------- | -------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| "“App name” wants to use a project folder"                                               | The app wants to read or write project files | Pick one of the projects in the current space and click **Grant**. Apps can only request projects; to use another folder, make it a project first                                                                |
| "“App name” wants the Agent to run a task"                                               | The app wants to start a task                | Shows the task text, working folder and expert. The task runs in the background and you can see its progress in the app; the agent can read and write the files in this working folder and can also run commands |
| "“App name” wants to start a case"                                                       | The app wants to start a Case                | Shows the template and form fields. The Case starts running and is marked as coming from the app on the **Cases** page ([Cases](https://docs.heys.ai/workstation/en/cases.md))                                   |
| "“App name” wants to add information to a case", "wants to move a case to the next step" | The app moves forward a Case it started      | You confirm as usual                                                                                                                                                                                             |

The dialog has "Don't ask again for this kind of request while the app is open", which lasts only while the app is open this time and stops applying once you close the app. If you click **Cancel**, the app is told "The user declined".

## Managing apps \{#managing-apps}

**Manage apps** at the top right of the Apps page:

<figure>

![Manage apps: "Browse extensions", "Import app" and "Develop a new app" at the top right; "Installed apps" lists 合同审查 (Contract review, Legacy app, default expert legal-reviewer), 便签 (Notes) and 组件示范 (Component showcase), each row showing the id, version and capabilities, with Open, Modify and Uninstall on the right; "Apps in development" lists 待办看板 (To-do board, Valid) and its development folder, with Open, Install locally and Delete on the right](/screenshots/en/p19-管理小程序-9533d5.webp)

<figcaption>Manage apps: "Browse extensions", "Import app" and "Develop a new app" at the top right; "Installed apps" lists 合同审查 (Contract review, Legacy app, default expert legal-reviewer), 便签 (Notes) and 组件示范 (Component showcase), each row showing the id, version and capabilities, with Open, Modify and Uninstall on the right; "Apps in development" lists 待办看板 (To-do board, Valid) and its development folder, with Open, Install locally and Delete on the right</figcaption>
</figure>

:::note Note
Only administrators (the local user, or an administrator account in the web app or on a collaboration node) can develop, import, install and uninstall apps; everyone who can enter this space can run installed apps. Regular users have no **Manage apps** entry on the Apps page.
:::

Each row under **Installed apps** shows the name, id, version, default expert and capabilities, with three buttons on the right:

| Button        | What it does                                                                                                                                                                                                                                                                                             |
| ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Open**      | Runs it in a floating window                                                                                                                                                                                                                                                                             |
| **Modify**    | Copies it into a development folder, where it appears under **Apps in development** for you to change (the installed copy is not affected). If the development folder already exists, it opens that                                                                                                      |
| **Uninstall** | Deletes the installed package. By default its data in each space is **kept** and is still there if you reinstall; if you tick **Also delete its data in every space**, its data and folder permissions are deleted too and cannot be recovered (the granted project folders themselves are not affected) |

An app labeled **Legacy app** is a package from the old workbench: it can only use its own private data, and the project it used to be bound to is not granted to it automatically.

The three buttons at the top right of the page:

| Button                | What it does                                                                                                                                                  |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Browse extensions** | Goes to the **Apps** category of the Extensions page to install from the market ([Extension Market](https://docs.heys.ai/workstation/en/extension-market.md)) |
| **Import app**        | Choose a zip package to import. The package can include its default expert, and after the import you are told how many apps and experts were imported         |
| **Develop a new app** | Goes to the **Create** page with the type already set to app ([Create](https://docs.heys.ai/workstation/en/create.md))                                        |

### Installing from the extension market

When you install from the **Apps** category of the Extensions page, HeyS first lists the capabilities it requests (use project folders you choose, ask the Agent to run tasks, start and view Cases) for you to confirm; when an update requests more capabilities, you are asked again. You are also asked every time these capabilities are actually used.

When this computer already has an app with **the same id**, a confirmation dialog explains what each one is (whether the local one was installed from development, imported, or built in, and who made the market one):

| Option                              | Result                                                                                                                                             |
| ----------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Replace with the market version** | The local one is replaced by the market version, and the data and folder permissions it saved are cleared; the copy in development is not affected |
| **Install under another id**        | Both are kept: the market version is installed under the new id you enter, and the local one is left alone                                         |

## Developing a new app \{#developing-a-new-app}

Developing a new app always goes through **Create**: write one sentence describing what you need, and once HeyS works out that it is an app, it sets up a development project, has the agent build it there, and shows a live preview on the right (see [Create](https://docs.heys.ai/workstation/en/create.md) for details). App development has a few special points:

- **The id gets a random suffix automatically**: when creating, you can leave the id (the folder name) blank, and HeyS uses a part derived from the name plus a random suffix, so different people using the same name do not clash; if you enter it yourself, only letters, digits, `-` and `_` are allowed, it cannot be changed after creation, and you are warned if it is so short that it could easily clash with someone else's;
- The development folder contains a development guide for the agent, which it reads first; every time the agent changes a file, the preview on the right refreshes;
- When you are happy with it, click **Install locally** at the top right of the preview: once the checks pass, it is installed and appears under **Apps**;
- Tasks and Cases started from the development preview, and the data it writes, are kept separate from the data of the installed version, so they do not contaminate each other;
- Development conversations appear under **Chats** in the home sidebar, with a type icon before the title; hover to see which app is being developed.

Under **Apps in development** in **Manage apps**, each row shows the check result (such as **Valid** or "N warnings"), and on the right you can open it, install it locally, or delete it; deleting removes only the development folder and the development project (including its sessions), and the copy already installed on this computer is not affected.

:::tip Tip
Apps are a great way to turn a type of repetitive work into an interface that is ready with one click: first get the job working in a conversation, then have the agent turn it into an app and hand it to your colleagues.
:::
