# Office browser

Agents can use a real Chrome browser: they read property portals, look things up, and, on sites you allow, work in your CRM the way a person would. The browser runs on the Lumate server ([On this server](/docs/office-browser#on-this-server)) or on an office PC. What they find on portals is saved as **listings** and matched to customers.

## How it works

![Diagram: How it works](/docs-diagrams/f91f10e7ee49a2b1.png)

- **The extension** runs in a Chrome profile on an always-on office PC. It connects out to the server, so there is no port to open on the PC.
- **Each agent run gets its own tab.** The tab is closed when the run ends, unless the agent handed it to a person
  ([below](/docs/office-browser#handing-a-tab-to-a-person-from-2220)). Your own tabs are never touched.
- **The rules are enforced inside the extension,** where agents cannot change them: pace, read-only sites, no secrets.
- **Logins stay on the PC.** If a site needs a login, a person signs in once in that Chrome profile; agents then use the session. Agents never type passwords.

## On this server

On the server edition, the agents' browser runs on the Lumate server itself: no office PC, no extension to install, nothing to
leave switched on. Everything under [Installing](/docs/office-browser#installing) is for the other choice, a Chrome on an office PC.

**Where it runs.** **Settings → Browser → Where the agents' browser runs** has two choices: **On this server
(recommended)** and **On an office PC**. Admins change it; members see it. A company that never paired an office PC starts
with the server. A company that already uses an office PC keeps it until an admin changes the setting. Agents never fall back from
one to the other: with **On this server** and the server browser down, they are told it is offline. The office PC's steps
and **Linked PCs** show only when the setting is **On an office PC**.

**Two browsers.** The server keeps:
- **The agents' browser:** the agents' web work (portals, the CRM, research). Its profile lives in memory, so no cookie is
  ever kept on disk. About 2 minutes after its last use it is wiped and starts empty again (never while an agent is working
  in it or a handoff waits for it), and a saved login is loaded only for a job that may use it.
- **The WhatsApp browser** (only when WhatsApp Web calls are used): one browser that stays signed in to WhatsApp Web. Its
  profile is on a disk of its own, never in backups. After you scan the QR code it is hidden from the list; admins can **Show**
  it again, and only admins can watch it.

**Its extension updates by itself.** Every build of the extension has its own, always-growing version, so after an update
the server's browser loads the new one at once. The WhatsApp browser keeps its profile (and WhatsApp Web stays linked): only
the profile's stored background workers, the sites' too, are moved aside once (WhatsApp Web registers its own again). The server log names the build each browser runs (`browser N connected:
build …`) and warns when a server browser runs an older one than the server ships (`runs build X, expected Y`): see
[Operations](/docs/operations#server-browsers).

A person's own browser opens for one more reason, a personal login ([Saved logins](/docs/office-browser#saved-logins) below).

### Watching the live view

**Settings → Browser → Live browser** shows a browser's screen, on a computer or a phone.

- It opens in **watch** mode. Every member can watch the agents' browser; only the person it belongs to can watch a
  personal browser.
- The page asks Lumate for a **ticket** that lasts 10 minutes and renews itself while the page is open. The screen is reached
  only through Lumate, over HTTPS, with your sign-in: no port is opened. A ticket also ends when the person signs out, changes
  their password or loses their role in the company.
- **Running now** shows a card for each agent that is working in the browser (the site and how long). **Recent** lists the
  last runs and the sites they visited. Neither keeps pictures or recordings.
- A list of **tabs** shows every open tab with its title, its site and the agent and task that use it.

### Taking control

Press **Take control** to use the keyboard and mouse (on a phone, touch) yourself, for a CAPTCHA, a code or a login.

- One person at a time. Others see "Ana has control" and can only watch. An admin can **Take over**.
- While you hold control, agents wait: a tool call on that browser answers that a person has control, and the agent tries again
  later. Give control back with **Give back**.
- Control ends by itself after 10 minutes with the page closed or asleep, and, for a member, after 2 hours (an admin may go on; a member
  who reached the limit asks an admin to take over for the next 10 minutes). It also ends when the person's role changes or they are removed.
- While you are in control, the tab buttons (open a tab, close, back, forward, reload, bring to the front) work. In watch mode
  they are off, and so is typing.
- Who took control, gave it back or watched, and when, goes to the Activity log. What was typed or shown never does.

### Saved logins

A site that needs a login is signed in once and **saved**. Lumate keeps the session of that one site (not the password), sealed
with the server's secrets key. Agents load it for a job; they never see it. **Settings → Saved logins**
lists them, with whose they are and when they expire (30 days). **Revoke** ends one.

- **Personal (only me)** is the default, for your own LinkedIn or bank. **Company (the team uses it)** is for the company's CRM
  or a portal; only an admin saves one, from the agents' browser.
- **Add a login:** press it, choose the site, and a private browser of yours opens at that site. Sign in, then press **Save
  this login**. It is saved as a personal login, and that browser is closed afterwards. An admin saves a **company** login from
  the agents' browser itself (**Save as company login**): a person's own browser never saves one.
- **Import from my own Chrome:** when a site blocks the server's browser (some portals refuse data-centre addresses) or asks for
  a code only your phone sees, sign in in your own Chrome instead. The dialog gives a one-time code (good for 10
  minutes) and the steps: the Lumate extension in your Chrome sends that site's login when you press its button. It is saved
  as a personal login; an admin may choose company.
- **Who sees what:** you see and revoke your own logins. Admins see the company's and, for other people's personal logins,
  only the site and the owner's name. Removing a person deletes their personal logins.

### Handoff

When an agent stops on a step only a person may take (see [Handing a tab to a person](/docs/office-browser#handing-a-tab-to-a-person-from-2220)),
the card has **Open browser**. It opens the live view for that run and asks whether to **Take control now** or **Just watch**.
Press **Done** on the card afterwards. A personal browser is kept while a handoff or an approval waits for it, and only its
owner can open it.

### What agents may do, and privacy

The rules are the ones in [What agents may do](/docs/office-browser#what-agents-may-do) (allowed sites, read-only elsewhere), [Pace](/docs/office-browser#pace) and
[LinkedIn](/docs/office-browser#linkedin). On the server there is more:

- **The server's browser stays outside the office.** It cannot open `localhost`, the office network, the server's own
  addresses or the cloud provider's internal address: this is blocked at the network level of its container. It downloads nothing and opens no `file://`.
- **A company login** can be used by any agent that may use the browser.
- **A personal login** is used only for a job one person started on a task they made themselves and nobody else has written in.
  A job made by the system (a customer's email, a WhatsApp message, a call), a routine, or another agent never uses one. If
  someone else comments on that task, the personal login is not used again there.
- **A job with a personal login** runs in a personal browser of its own, kept while a handoff or approval waits for it and
  closed after. Only its owner can watch it: it is not listed for anyone else, admins included, and its address does not work
  for them.
- **Your own chat with Lumate** is private, so what Lumate does in it runs in your personal browser too, even when you saved no login: only you can watch it, and nobody else is shown its task in the tab list or in Recent.
- **Members** never see the WhatsApp browser, in the list or by its address. Admins see it, and never anyone's personal browser.

### Limits

- A portal may refuse the server's browser, which comes from a data-centre address. Use **Import from my own Chrome**, or use the
  office PC for that portal.
- At most a few browsers run at once, set by the server's memory ([Operations](/docs/operations#logs)). When they are all in use,
  the agent is told so and tries again later.
- The server's browsers have no sound yet.

## Installing

1. **Settings → Browser → Download the extension.** The package contains a one-time pairing code, valid for 30 minutes. A new download makes older packages unusable.
2. On the office PC (Chrome 116 or newer), ideally in a **separate Chrome profile** used only for Lumate:
   1. unzip the package;
   2. open `chrome://extensions` and turn on **Developer mode**;
   3. click **Load unpacked** and choose the unzipped folder.
3. The extension pairs on its own. Settings → Browser shows **Online**, with the PC's name.
4. Keep the PC on, with Chrome open. The extension reconnects by itself after sleep or a network drop. When the PC is idle, Chrome may put the extension to sleep; it wakes every 30 seconds and reconnects.

**To update the extension:** download a new package, remove the old extension in `chrome://extensions`, and load the new one. Each build has its own version, so Chrome never keeps running an older one's background worker.

**On a linked PC** (from 2.15.0): when the office PC runs Lumate connected to this server and is linked (Settings →
**Linked PCs**), there is no package to download:
1. Settings → Browser → **On a linked PC**: choose the PC and press **Use this PC**.
2. The PC writes the extension into Lumate's data on that PC (`%LOCALAPPDATA%\Lumate\data\extension`) with a
   one-time pairing code, and opens the office browser's Chrome profile.
3. The first time only, someone at that PC loads it (Chrome does not let any program do this): Lumate opens its
   **Server connection** page there, which shows the folder. In Chrome (ideally a profile only for Lumate) open
   `chrome://extensions`, turn on **Developer mode**, choose **Load unpacked** and pick that folder.

From then on the extension updates with Lumate on that PC and pairs again by itself: when it stays offline for 10
minutes while its PC is online, the server sends a fresh code. After the PC restarts, Lumate opens the office browser
again by itself. Unlinking the PC (Settings → Linked PCs) takes the office browser off it.

**On Lumate Local** there is no package to download and nothing to update by hand: **Prepare the extension** puts the
extension in a folder of Lumate's data (`data\extension`), and you load that folder once. Every update of Lumate
updates the extension in that folder, and the extension reloads itself. Lumate keeps a fresh pairing code there, so
the extension reconnects by itself after a restart or an update, and **Reconnect** pairs it again without loading
anything. Never load a folder under `app\<version>\`: it cannot connect. See
[Lumate Local](/docs/install-windows#the-office-browser).

## What agents may do

| Where | Agents may |
|---|---|
| **Any website** | Open pages, read them, scroll, follow links, search, use filters, sort, change pages |
| **Allowed sites** (Settings → Browser → Allowed sites) | Everything a person does in a form: fill in fields, choose options, press Save, Send or Submit |
| **Nowhere** | Type into password, payment or file fields; upload files; open `file://`, `chrome://` or other non-web pages; open the office network (localhost, 192.168.x.x, 10.x.x.x, `.local`), unless that host is an allowed site |

**On sites that are not allowed** (read-only), the extension refuses:
- typing into personal-data fields (name, email, phone, message);
- any button that sends, books, saves, posts, registers or signs in;
- any form that sends data.

Searching and filtering still work.

**Allowed sites:**
- one host per line, for example `yourcompany.bitrix24.com`;
- a host also covers its subdomains;
- at most 50.

Every change an agent makes on an allowed site is recorded in the Activity log, with the page and the field.

**On LinkedIn** a person approves every change, even where it is allowed ([LinkedIn](/docs/office-browser#linkedin), below).

## Pace

So that portals see a person's pace and not a robot:
- 2–5 seconds between page loads in a tab;
- at most 12 page loads a minute on one site.

If a site's limit is reached, the agent is told to slow down. A command times out after 45 seconds.

## LinkedIn

LinkedIn's User Agreement (section 8.2) does not allow bots or scraping, and LinkedIn can restrict an account that looks
automated. These rules are fixed, out of the agents' reach:

- **A person's pace:** a page every 10 seconds at most (across all tabs), 40 an hour and 150 a day, however its address
  is written (`linkedin.com.`, `lnkd.in` links). A page opened there, and an approved click or Enter there, is counted
  before it runs (once, with the page it opens; an action the page refused before acting is not counted). A page
  reached another way (a short link, a redirect, going back) is counted when it has arrived, even past the limit: it
  was loaded, so the tab leaves it at once, and nothing more loads from where the link was (the short link's site, or
  the page it was on) until LinkedIn has room again; the agent is told which. While LinkedIn is at its limit, pages
  load one at a time, and an agent's commands always run one after another. Back from a page the tab left is refused
  (it would load that page again). The extension keeps the counts and what waits, through a restart too, and stops at
  LinkedIn while a count cannot be read or kept (one that could not be kept is lost only if the browser restarts
  before it can be).
- **Every change is approved:** a click, typing or a choice there first becomes a card in the agent's thread and in the
  Inbox (counted on its badge), with the words it would type, and whether typing also presses Enter (in a message box
  that sends it). An admin approves or declines it, and the agent is told: its next run in that conversation goes on in
  the same tab, on the same page. An approved change runs once, within half an hour, in the same conversation, on the
  page it was asked on and only on an element named as the approved one: the browser checks both before it acts. Agents
  can ask for changes only when LinkedIn is among the allowed sites, and only on a page they have read.
- **Security checks stop the agents:** LinkedIn's own security check (its checkpoint page, a CAPTCHA's challenge, or
  its page titled "Security Verification | LinkedIn", unless it is a member's, an organisation's or a product's own
  page named so)
  stops every agent at LinkedIn for a day, wherever a link lands and however the address is written, and the admins are
  told. What a page says (a profile, a search, a job, even in its title) never does, and other sites are never stopped
  this way. Nothing ever types into one. Open LinkedIn in the office browser and deal with it, then let the
  agents go on in **Settings → Browser → Stopped sites**.

Agents open LinkedIn's search and profiles by their address, so reading needs no approval.

## Pause and disconnect

- **Pause agents** (Settings → Browser): agents get "the office browser is paused" until you resume. Use this while you use that Chrome profile yourself.
- **Disconnect:** removes the browser's access. Agents lose it until you install a new package (on Lumate Local: until you press **Reconnect**).
- **Per agent:** only agents with **Can use the office browser** (agent → Settings) can use it. In the real-estate template, Lumate and the Researcher have it.

## The agents' browser tools

| Tool | What it does |
|---|---|
| `browser_status` | Whether the browser is online or paused, and the allowed sites |
| `browser_open(url)` | Opens a page in the run's tab; returns its text and numbered elements |
| `browser_read` | Reads the current page again |
| `browser_click(n)` | Clicks element n |
| `browser_type(n, text, submit?)` | Types into field n, optionally pressing Enter |
| `browser_select(n, option)` | Chooses an option in a list |
| `browser_scroll` | The next or previous part of a long page |
| `browser_back` | Back one page |
| `browser_handoff(reason)` | Hands the tab, as it is, to a person (from 2.22.0, below) |
| `save_listing`, `match_listing`, `find_listings`, `mark_listing_gone` | The listings tools, below |

Pages come back as **outside data**. Text on a page cannot give an agent instructions.

**Element numbers (from 2.22.0):** an element keeps its number while it is on the page. A menu that opens adds new
numbers and never moves the others, and a number is never given to another element in the same tab: a number read
before the page changed reaches its own element or none ("That element is gone; read the page again"). Radios and
checkboxes a site draws itself are listed by their label, with their question and whether they are checked.

**After a click (from 2.22.0):** when the page loads again at the same address, the agent is told that the fields it
filled are empty and that nothing on the page says whether the form was sent. When a page carries a CAPTCHA
(reCAPTCHA, hCaptcha, Cloudflare Turnstile), shown or invisible, the agent is told so: agents never solve one.

### Handing a tab to a person (from 2.22.0)

Some steps only a person may take: a CAPTCHA, a code sent to a phone, a confirmation. The agent fills in what it can,
then calls `browser_handoff` with what is left to do. Then:

1. Its tab comes to the front of the Lumate window on the office PC and stays open as it is. It is not closed when
   the run ends, when it is idle, or to make room for other tabs.
2. A card **Waiting for a person in the office browser** shows in the agent's conversation and in everyone's Inbox.
3. Whoever is at the office PC does the step there, then presses **Done** or **Couldn't do it** on the card. Any
   member can answer.
4. The agent is woken with the answer and reads the page as the person left it (a confirmation, for example). After a
   day with no answer the agent is told, and the tab closes.

The agent leaves the browser alone in that conversation while the person has the tab.

## Listings

When an agent finds a property on a portal, it saves it with `save_listing`. Each link is saved once:
- **Seeing it again** updates the listing and keeps its price history.
- **A listing that disappears** from the portal is marked "no longer listed" by the agent that finds it gone (`mark_listing_gone`).
- **Brokers' phone numbers** never enter a listing's own text: they are replaced with "[number removed]" in its title, summary, agency, building and area. Only an outreach (Outside brokers, in the user guide) reads a listing broker's number, from a phone or WhatsApp link on the page or by pressing the portal's "Show number" button, and keeps it on an outside-broker card. That button is the one thing Lumate may press on Property Finder, Bayut and Dubizzle; it never fills in their contact forms.

| Field | Example |
|---|---|
| Title, link, portal | "3BR Marina Gate 1", the portal's page, Bayut |
| Sale or rent, type | sale · apartment (also villa, townhouse, penthouse, plot, office, other) |
| Price (AED), beds, baths, size (sq ft) | 2,450,000 · 3 · 4 · 1,820 |
| Area, building, completion, agency | Dubai Marina · Marina Gate 1 · ready · the listing agency |
| Summary | A short description in the agent's words |

**Matching:** `match_listing` suggests a listing for a customer, with why it fits ("3 beds in the Marina, under the 2.5M budget"). On the customer's card, a person marks each suggestion:
- **Sent to the customer**, or
- **Not interested**.

The board shows 🏠 with the number of active suggestions.

**On calls:** voice agents use `search_listings` when a customer asks what is available or what things cost. It
searches the saved listings, then Property Finder, live, in the call's own tab of the office browser (when the agent may
use the browser). The call gets only prices, sizes, beds and short lines from the page, never brokers' names or numbers,
and gives a rounded asking-price range. At most 10 searches a call, 3 of them live; the tab closes when the call ends.

**Finding them again:** `find_listings` lets agents search what the team already saved before they search the portals again. People use the **Listings** page, see the [user guide](/docs/customers#listings).

**The "Finding listings" skill** (real-estate catalog) teaches agents to:
1. read the customer's needs;
2. search the portals in the browser;
3. save each fitting listing;
4. match the best ones, with reasons;
5. report back.

## Example

> **You (chat with the Researcher):** Find 3-bed apartments for sale in Dubai Marina under 2.5M for @Sara Ahmed.
>
> **Researcher:** opens a portal's search, sets the filters, reads the results, saves 6 listings, matches the 3 best to Sara, and replies with a short table and the links.

Sara's card now shows 🏠 3. The listings are on the Listings page with "Sara Ahmed" in the Customers column.

## Calls through WhatsApp Web

When the office line is off (Settings → Desk phone), Lumate can call through WhatsApp Web in the office browser
instead: customers from call lists, Call now and the dialer, and outside brokers after an admin approves the call. The
same rules apply as on the office line: the reason the person may be called, the DNCR check and the calling hours.

**Setting it up**
1. **Settings → Browser → Link WhatsApp Web** (admins). WhatsApp Web opens in the agents' window of the office
   browser. Scan its QR code with the company phone: WhatsApp → **Linked devices** → **Link a device**.
2. Settings → Browser then says **Linked · calls available**.
3. **Settings → Call center → Call through WhatsApp Web when the office line is off** is on by default.

Once linked, Lumate's WhatsApp window comes back by itself when Chrome or Lumate restarts, and after an update. If
no call can go out, Start, Call now and the queue say why: no office line, and what stops WhatsApp Web (the office
browser offline or paused, WhatsApp Web not linked, the switch off).

**How a call goes**
- Lumate's own window opens the number's chat and presses WhatsApp's call button. The agent's voice is WhatsApp's
  microphone, and the person's voice goes to the agent. Nobody needs to be at the PC. Lumate lets WhatsApp Web use
  the microphone in the office browser by itself (WhatsApp mutes a call it has no microphone permission for); do not
  block the microphone for web.whatsapp.com there. If the office browser is unpaired, that setting goes back to
  Chrome's own.
- **No microphone needed.** The server's browser has no microphone, and calls work all the same: while a call is
  being placed, Lumate gives the browser a microphone of its own named "Lumate", and the agent's voice goes through it.
  Nothing to set up. (A browser that has a real microphone keeps it.)
- **The agent speaks only once the person answers.** While it rings, the agent says nothing and the line carries
  silence, so it never talks over the ringing. The person's voice reaches the agent from the moment they answer, and the
  agent then opens the call (it first lets any answer it had already started finish, 4 seconds at most). Lumate follows WhatsApp's own
  record of the call: ringing, answered, ended. If the number rings and nobody answers (45 seconds at most), the call
  ends as **Nobody answered**: the agent never spoke.
- **One call at a time.** The next call starts when this one ends.
- A number WhatsApp cannot reach (no ringing within 30 seconds) is marked: its call waits for the office line, and the
  queue says why. A number that rang but nobody answered is called again later, as on the office line.
- **Call center → Live** shows the call. **Listen** works. **Hand over** and **Take over now** ask the person at the
  office PC: Lumate's window comes to the front with **Take the call**, and the agent stays on until someone there
  presses it (the office PC needs a microphone). Someone at the PC can also use the panel in WhatsApp Web: Hand over,
  Take over now, End call.

**Calls that ring on the linked number** (2.2.0, off until Settings → Call center → Incoming calls → Lumate answers calls that ring on WhatsApp is on):
the page in Lumate's WhatsApp window sees a voice call ring and tells Lumate who calls, as WhatsApp shows them. A
saved contact rings the owner and admins in Lumate first; otherwise, or after Not now, Lumate accepts the call in that
same page (it never reloads it) and answers. Take over accepts it with the PC's own microphone. Group and video calls,
and a second call while one is on, keep ringing on the phone. See
[Calls that ring on your WhatsApp](/docs/calls#calls-that-ring-on-your-whatsapp).
- The office PC's speakers may play the person's side of the call. Keep the volume down, or use headphones there.
- A call ends after 20 minutes at most. If Lumate's window is closed, or the office browser loses its connection to
  Lumate, its call ends.
- **Pause agents** (Settings → Browser, or the extension's switch) also stops new WhatsApp Web calls. A call already on
  carries on.
- Nothing calls through WhatsApp Web until an admin links it with **Link WhatsApp Web**.

**Agents and WhatsApp Web.** Agents never open WhatsApp Web, even if it is an allowed site: Personal chats live there.
Only Lumate's call routine uses it, and only to call.

**Limits**
- WhatsApp calls do not connect in the UAE. Use it for numbers abroad, or keep the office line.
- WhatsApp may change its page. Lumate finds the call button by its icon, by its place beside the video call button,
  or by its label. If none is found, or pressing it starts no call, the call fails with a reason that lists what the
  chat's top bar showed, and the card stays as it was (the number is not marked unreachable).
- **"Silenced unknown caller".** If the person you call sees a call from a "silenced unknown caller", their WhatsApp has **Silence unknown callers** on (WhatsApp → Settings → Privacy → Calls) and your number is
  not in their contacts. It is WhatsApp's own setting: ask them to save the number, or to turn the setting off, and call
  again.
- **A call with no sound.** Admins can follow a call in the server log (`sudo lumate logs server`; search for `diag`).
  Each call writes lines that begin `WhatsApp call <call id> diag:` (the call's number in Lumate, not a phone number): `env` (what the browser has, once), `dev` and
  `gum` (WhatsApp looked for a microphone and asked for it, and whether it got Lumate's), `tick` (every 5 seconds, up
  to 30: how much of the agent's voice Lumate sent to WhatsApp, and whether WhatsApp's call is still using Lumate's
  microphone) and a closing `diag-count: N reports`. `bg` says which extension build handled the call. Send these lines
  to OXS support when a call has no sound; they hold technical values only, no speech.
- WhatsApp turns WhatsApp Web calls on account by account. An account without them shows "Linked · this account
  cannot call from the browser yet", and Start says "WhatsApp has not turned on calls in WhatsApp Web for this
  WhatsApp account yet". A browser WhatsApp Web cannot call from shows "this browser cannot make WhatsApp calls":
  update Chrome or Edge.
- Just after linking, WhatsApp Web downloads the messages first. A call waits up to a minute for that. An attempt that
  never rang does not use up the number's calls for the day.
