Skip to main content

The assistant's built-in browser

The AI assistant can open a site the way a visitor sees it: in a browser that runs on your Qubix server. It reads the page, takes screenshots, clicks, fills in forms, runs a script on the page, looks at what the page writes to the console and loads from the network, and saves the page's network record. The browser is also how it opens a link you paste into the chat.

The browser has a fresh profile without any of your logins. Every connection of it goes through a relay that refuses internal networks and the server's own addresses, so a page cannot reach what is inside your server. A chat has one tab: a page that tries to open another (window.open, a link with target=_blank) gets it closed at once. The main page of the tab goes only to a site you have allowed; every other navigation of it is stopped, whether it comes from a click, a script or a redirect.

The browser comes with the permission template right Built-in browser: The assistant opens sites in the server's built-in browser: screenshots, clicks, forms, scripts, network and HAR. A site new to the person asks them first. It is on by default. Without the right, the assistant has no browser and the section for the browser's sites is absent in My settings.

The card of a new site​

Before it opens a site that you have not allowed, the assistant ends its answer with a card in the chat: Open the site …? (the dots stand for the site) and under it The assistant opens it in the server's built-in browser. The card has three buttons:

  • Once — the site opens for the browser session of this chat, until the session closes;
  • Always on this site — the site (with its subdomains) is kept for all your chats, and the assistant opens it later without asking;
  • ไม่ — the site does not open.

What the assistant does in the browser​

Every step of the assistant is shown in the chat with the name of its tool. The browser's tools are:

ToolWhat it does
Open in browserOpens an address in the tab of the chat.
Read page in browserReads the page as text: one element per line, with the number that a click or typing then uses.
ScreenshotTakes a picture of the page, or of the whole page when asked. You see it in the chat, and the file goes to your Drive, into the folder «Assistant».
Click in browserClicks an element of the page.
Typing in browserTypes a text into a field; it can press Enter after the text.
Key in browserPresses a key.
Scroll in browserScrolls the page.
Waiting in browserWaits for a text to appear on the page or for a number of milliseconds.
Script in browserRuns a script on the page and returns its answer.
Browser consoleReturns what the page wrote to the browser console; it can clear the console after reading.
Browser networkReturns the requests the page made, with an optional filter and a limit on their number.
Response bodyReturns the body of one response from that list.
Save HARSaves the page's network record as a HAR file on your Drive, into the folder «Assistant». A file weighs at most 32 MB; what does not fit is left out, and the assistant is told how much.
DevTools commandSends one command of the Chrome DevTools Protocol (a method and its parameters) for what the buttons above cannot do. Only the commands that concern the page itself are open; those that reach beyond the browser's guard are closed.
Close browserCloses the browser of the chat.

An operation waits for the page for 90 seconds at most; a page that does not answer in that time gets the browser closed, and the next call starts a fresh one. The browser of a chat also closes itself after three minutes without a call. The server runs a few browsers for all its work, and when all of them are busy, the assistant says so and tries again later.

Sites you have allowed​

The sites you allowed with Always on this site are listed in My settings → Assistant, in the block Sites of the built-in browser. The block explains itself: Sites you allowed with «Always on this site». The assistant opens them in any of your chats without asking. While no site is allowed, it reads No sites yet: the assistant asks before each new site. The button Remove at the end of a row takes the site off the list (its accessible name is Remove …, the dots stand for the site); after that the assistant asks about the site again. If the list did not load, the block says The list of sites did not load. and offers to try again.

An administrator sees one more control in the section: the switch Ask before a new site. The assistant's built-in browser asks a person before a site they have not allowed. Applies to everyone on this server. It is on by default. With the switch off, the assistant opens any site without asking, and the list of allowed sites says it: The administrator turned the question off: the assistant opens any site without asking.

What's next​