Knowledge & tools

Desktop tools

The desktop tools let an agent work on your own computer through the Hania desktop app. Desktop Browser uses the browser inside the app, so the agent can open pages, read them, click and fill in forms. Desktop Control can use the whole computer, including other apps, with the mouse and keyboard.

The Hania desktop app is available to a few selected users for now, and will be available to everyone soon.

Set up

  1. Sign in to the Hania desktop app with your Hania account. It's the same sign-in you use for the dashboard, including Sign in with Google.
  2. The app registers your computer by itself, with no key to copy. It then shows up on the Machines page.
  3. For Desktop Control, make sure computer control is switched on in the app.
  4. Open the agent, go to its Tools tab, and assign Desktop Browser, Desktop Control, or both. There's nothing to configure and no credentials to enter.

A computer signed in to the desktop app counts toward your plan's machine limit, like any other machine. Free includes no machines, so the app can't register a computer on Free. See Plan limits.

Which computer the agent uses

There's nothing to choose. When you chat with an agent, in the dashboard, a team chat, the terminal client, or through an API key that acts for you, the desktop tools use your own computer, as long as the desktop app is open and signed in there. If you're signed in on more than one computer, the one seen most recently is used.

An agent never uses someone else's computer, even a teammate's in the same workspace.

A run that nobody started by hand, such as a scheduled run or a trigger, uses the computer its conversation used before, or otherwise the one the agent's most recent chat used. That computer still needs the app open and signed in when the run happens.

Where they work

The desktop tools work in dashboard chats, team chats, the terminal client, API triggers and scheduled runs. They never work in conversations with your customers, whether that's the website widget, WhatsApp, Messenger, Instagram, Telegram, Slack or SMS. In those conversations the tools always report that no computer is connected, so a customer can't make an agent act on anyone's computer.

Permissions

Desktop Control can do anything you could do at the keyboard. Think about what you leave open and signed in on the computer, and consider switching it to Ask first.

Both tools start on Allow, like other built-in tools, so the agent can use them without asking. Switch either one to Ask first on the agent's Tools tab and every action that changes something, such as a click, typing or opening a page, waits for you to approve it in the chat or the Review queue. Actions that only look still run without asking. That covers taking a screenshot, zooming in, reading the page, finding something on it, listing tabs, waiting, and checking where the pointer is.

The agent never types passwords, one-time codes or card details. When a form needs one of those, it stops and you type it yourself. See Steps you do yourself.

What a browser approval shows

With an up-to-date desktop app, a Desktop Browser approval card tells you exactly what the browser is about to do: submit a form, delete something, or type text. It names the site and the part of the page, and says why. When it's going to type, the card shows the text. If the action sits inside a frame from another site, or the form sends to a different site, the card says that too.

You can approve or decline, but you can't change what it will do. To have it done differently, decline and tell the agent in the chat. Where the card offers it, you can also allow that site for the rest of the chat or always allow it on the agent, as described in Remembering an answer. A deletion always asks.

Steps you do yourself

Some steps are only yours to take: making a payment, granting a permission a site asks for, or typing a password or code. When the agent reaches one, it pauses and a card asks you to do that step yourself in the Hania desktop app, naming the site and what needs doing. Do it in the app and press Done there, and the agent carries on. To stop instead, press Cancel on the card, in the chat or in the Review queue.

Screenshots

To see what's on the screen, the agent takes screenshots, and its model looks at them as images. A screenshot is charged like any other model input, at roughly 800 to 900 tokens each, depending on the model. Only the three newest screenshots are kept in the conversation the model reads.

Screenshots are never stored, never shown in the dashboard and never logged. In the chat, a screenshot step shows only a short text result.

The agent's model has to be able to read images. On a model that can't, screenshots and zooming fail with a message saying image inputs aren't supported. Pick a different model on the agent's General tab.

When something goes wrong

Each step shows in the chat as it happens, such as Opening the page and then Opened the page. When a step fails, its message starts with a short code. Here's what each one means:

CodeWhat it means
not_connectedThe desktop app isn't open and signed in on your computer, or computer control is switched off in it. You'll also see this in conversations with customers, where the desktop tools never run.
disconnectedThe app went offline in the middle of an action.
cancelledYou pressed Stop, or the chat was stopped.
not_readyThe app is still starting, or it's signed out.
not_enabledComputer control is switched off in the app.
bad_paramsThe agent asked for something that doesn't work. It usually corrects itself and tries again.
stale_refThe page changed after the agent read it. It reads the page again.
dialog_openA pop-up on the page has to be answered first.
no_such_tabThat browser tab has been closed.
navigation_failedThe page didn't load.
blocked_urlOnly normal web addresses can be opened. Local and private network addresses are blocked.
secret_fieldThe field is for a password, a one-time code or card details, which the agent never types. Type it yourself.
out_of_boundsThe agent pointed outside the screen.
elevated_windowWindows doesn't let apps control a window that's running as administrator.
secure_desktopThe lock screen or a Windows security prompt is showing, and those can't be controlled.

You may also see "Not executed: an earlier action in this turn failed." That means the agent planned several steps together and an earlier one failed, so the rest were skipped.