---
title: Customer Inbox, your website and the public pages
description: The inbox agent reads your websites, single pages and files you upload, with progress, and writes notes on prices, hours, services, location and rules; research proposes related sites; the agent keeps itself up to date on a schedule; example notes; the public pages /inbox and /inbox/pricing.
section: cloud
order: 194
audience: [user, operator]
sources: ["services/nodejs-cloud/app/(support)/support/frontdesk/website/page.tsx", "services/nodejs-cloud/app/(marketing)/inbox/page.tsx", "services/nodejs-cloud/app/(marketing)/inbox/pricing/page.tsx", services/nodejs-cloud/components/support/Website.tsx, services/nodejs-cloud/lib/support/frontdesk/site-crawl.ts, services/nodejs-cloud/lib/support/frontdesk/site-reader.ts, services/nodejs-cloud/lib/support/frontdesk/site.ts, services/nodejs-cloud/lib/support/frontdesk/pricing.ts, services/nodejs-cloud/lib/support/frontdesk/samples, services/nodejs-cloud/lib/support/frontdesk/site-sources.ts, services/nodejs-cloud/app/api/cron/site-reads/route.ts, services/nodejs-cloud/migrations/0510_support_site_reads.sql, services/nodejs-cloud/migrations/0539_support_sites.sql, services/nodejs-cloud/migrations/0553_support_site_pages_files.sql, services/nodejs-cloud/lib/support/frontdesk/site-files.ts, services/nodejs-cloud/lib/support/frontdesk/research.ts, services/nodejs-cloud/lib/support/frontdesk/research-pure.ts, services/nodejs-cloud/components/support/Research.tsx, services/nodejs-cloud/migrations/0542_agent_research.sql, services/nodejs-cloud/lib/support/frontdesk/upkeep.ts, services/nodejs-cloud/lib/support/frontdesk/upkeep-pure.ts, services/nodejs-cloud/components/support/Upkeep.tsx, services/nodejs-cloud/migrations/0543_agent_upkeep.sql, docs/adr/0100-customer-inbox.md]
features: []
---

The [Customer Inbox](/docs/cloud/customer-inbox.md) agent answers from your notes. The quickest way to have notes is to let it
read your own websites. It reads a site when you ask (or on a schedule you set) and writes what it finds as notes you
can check and change. You can track several sites, each on its own, add single pages, and upload files and pictures.
No website? Start from example notes for your kind of business.

## Read my website

Open the agent's page in Agents, go to **What it knows**, type the address of your website and press **Add website**.
An owner or admin starts a read; any member can see the result. Each website you add stays in the list under
**Websites it learns from**; see [Several websites](#several-websites) below.

The agent reads up to 500 pages of a site. It finds the site's sections from its links (menus, image maps, "next page"
links, and the links a page's script carries for a menu it draws), from the site's own `sitemap.xml` (and any sitemap
its robots.txt names, a sitemap index and gzipped sitemaps included), so pages that no link reaches are read too. It
reads breadth first: the start page, then the pages you added (see [Pages you add](#pages-you-add)), then the
shallowest pages, giving each section of the site its turn before one section (a blog, say) fills the read, and pages
that sound like answers (prices, hours, contact, services, booking, policies) a little earlier. One page is read once,
however its address is written (a trailing slash, `index.html`, `www.`, parameters in another order, tracking
parameters, its `rel=canonical` address), and a page with the same text as one already read is skipped as a duplicate.
Then it uses your organisation's own model to write up to six notes in **Front desk / From website**:

- Menu
- Prices
- Opening hours
- Services
- Location
- Policies

It writes only what the pages say, with prices and times as written. A topic the pages do not cover gets no note.
Every note is marked as **from your website** and **to read**, and ends with links to the pages and files it came from.
Check each note, fix what is wrong, and it becomes yours.

**Menus and services, item by item.** A restaurant's, cafe's or bakery's food and drinks go in the **Menu** note, never
summed up: a heading for each outlet when the menus differ between branches (East Coast and NEX, say), a heading for each
section (breakfast, mains, drinks, sets), and one line per item with its price, what comes with it and its marks as
printed (vegetarian, halal, spicy, contains nuts). Names stay as printed, with the menu's own translation beside them.
The **Services** note lists each service the same way, with its price and duration where the pages give them. The menu
is read from wherever the site keeps it: a page, a PDF (a scanned one too, see [Files on the site](#files-on-the-site)),
or a picture of the menu on a page.

**Every outlet.** When the site has a menu file per outlet (`east-coast.pdf` and `nex.pdf`, say), every one of them is
in the Menu note: a section per outlet, named as the menu names it or after its file ("NEX"), each ending with a link to
the file it came from. When the outlets together are too long for one note, each outlet gets its own note ("Menu - NEX")
in the same folder and the Menu note links to them. A long menu file is read in a call of its own, so a second menu is
never cut short by the first.

**Practice asks about them.** When a read writes or changes notes, the agent's suggest job writes new questions for
**Things to try** at once, and a Menu or Services note comes first: "How much is the kaya toast set?", "Do you have a
vegetarian set?", "Is the NEX outlet's menu the same?". See [Gears per job](/docs/agents/bots.md#gears-per-job) for the gear
it runs on; the call counts against Support's daily AI limit.

**Open them in Notes.** Every note the reader wrote is a link on the Website section (under **Notes it wrote**, and
under each site's note count), and **Open in Notes** on a note in **What it knows** opens it in Notes, where its source
links and history are. An uploaded file's name opens the file. When the organisation does not have Notes, the names
are plain text.

**Reading it again** updates those same notes. It never makes a second set. A note you already checked (you changed
its mark from "to read") is kept exactly as you left it, and the page says so. A note you checked on **What it knows**
without changing it is kept while the pages and files it was written from say the same. When they change (a new price, a
second outlet's menu, a menu file read again with its headings), the note is rewritten and goes back to **to read**, so
you check the new text. A note you edited is never rewritten: the new text waits as a suggestion in the Notes Inbox, and the
site's row names it with **Rewrite from the website** to take the site's text anyway. Opening a note in Notes is not
editing it: the reader compares the text, not who saved it last, so a note you only opened (Notes may save it in its own
layout, with blank lines around headings and lists) is still rewritten from the site. Opening a note in Notes without typing
no longer saves it at all.
When the reader itself improves (it reads menus by heading and outlet now), notes it wrote with an older version are
brought up to date on the next read, even if nothing on the site changed. That costs one write, once; after that a read
that finds nothing new still writes nothing. The site's row says what the last read did with its notes: how many are new,
rewritten or the same, and which ones a person edited.

**One note per topic.** When the website gives a topic its note, the example note of the same topic (see below) is moved
to the trash, the way Notes archives a note, so the topic is not listed twice. You can restore it from the trash for
30 days. An example you checked or changed is yours and stays. Loading an example kind later does not bring back a
topic the website already covers.

**Your edits win.** If you changed a note after the reader wrote it, a later read does not overwrite it. When the
website now says something different, the new text waits as a suggestion in your Notes inbox ("replace", applied only
while the note is unchanged), once, and the page says so.

A site of many pages is written up in parts: the model reads the pages in batches of about 40,000 characters (at most
12 batches, documents first), and one more call merges the batches' notes into one note per topic, keeping every fact
and every source. A site that fits one batch makes the one call it always made. Every call counts against Support's
daily AI limit and shows on the AI spend page like any other.

The read runs in the background, with a progress bar on the site's row: how far along it is, and how many pages it has
**found**, **read**, still **waiting**, **files read** and **failed**, plus how many came from the sitemap. While it
writes the notes the bar says which part it is on. **What it read** lists the pages and files the read took and the
addresses it left alone, each with why (robots.txt, not a page, did not answer, another website, the same page again).
The page checks every few seconds; it works on a phone too. A read that fails says why in plain words: the address is
private, the site asks robots to stay out, the page did not answer, or Support's daily AI limit is reached.

### What it will and will not do

- **Your site only.** It follows links to the same site (the bare name and `www.` count as one). A link or redirect
  to another site is not followed.
- **Public websites only.** It never reads a private, loopback, link-local or cloud-metadata address. This is checked
  on the name, on every address the name resolves to, again when the connection is made (so a name that changes
  its answer in between is refused), and again on every redirect.
- **robots.txt is obeyed.** If your site asks automated readers to stay out of a page, it stays out. If robots.txt
  cannot be read, it reads nothing.
- **Bounded.** At most 500 pages (15 in a temporary sandbox), 400 KB of each page, 8 seconds a request and 20 minutes
  of fetching in all, for each site and each read, one request at a time. The list shows these limits next to every
  site. Only the text of web pages and of the files described below; no logins, no forms, no cookies.
- **Only the sites you entered.** Nothing is fetched from an address you did not add, and never from this cloud's own
  host. There is no new kind of outbound call: the same guarded fetch reads each site.
- **Under the daily AI limit.** The model call counts against Support's daily AI limit like any draft
  ([AI spend](/docs/cloud/ai-spend.md)). Nothing is written when the limit is reached.
- **On the agent's reading gear.** On an agent's page the read runs on the gear chosen for that agent's reading job,
  on the gear's fast model ([Gears per job](/docs/agents/bots.md#gears-per-job)). When that gear cannot run, the page says
  why in one sentence and links to Provider keys and Gears; nothing is read until an owner or admin fixes it.

### Hosted and self-hosted

On Petawork Cloud (hosted) reading a website is available. On a self-hosted install the agent does not look at the
internet on its own. An owner or admin turns on **Let the agent read our website** on the same page first; it is off by
default, and only a person in the app can turn it on, never an agent. The change is audited as
`support.frontdesk.website_setting`. Until then the page says reading is off and no request is made.

### Files on the site

Prices, menus and policies are often a PDF or a Word or Excel file linked from a page. While it reads a site the reader
follows those links too, reads the file's text and writes notes from it like from a page. A note that used a file lists
the file's address under "From your website" and records it as the note's source, so you can open the original when you
check the note.

Every file is screened before it is read:

- **Same site only.** A link to a file on another site is not followed, and a redirect to another site ends that file.
  The same guarded fetch and the same robots.txt rules as for a page.
- **Its type comes from its bytes**, never from its name or what the server says. Read: PDF, Word (`.docx`), Excel
  (`.xlsx`, its first three sheets, values only, no formula is run), CSV and plain text. Not read: pictures (but see a menu
  posted as a picture, below), web pages,
  old `.doc`, `.xls` and `.ppt` files, PowerPoint, archives (`.zip` and the like) and programs. Links to those are listed
  with the reason and never fetched.
- **Size and length.** At most 16 MB a file; the download stops at the size. A long PDF is read page by page from its
  start, its first 60 pages (the list says "first 60 of 140 pages"); one of more than 3,000 pages is not read. An
  encrypted or broken PDF is not read.
- **How many.** At most 25 files a read, and each file read counts as one of the read's pages. The caps are shown next
  to each site.
- **PDF streams.** A document is recognised by its bytes, not its address: a PDF behind a download link
  (`/download?id=7`), one sent as `application/octet-stream` or as an attachment, or one a server labels as a web page,
  is read as a file. Its name comes from the server's `Content-Disposition` when it sends one.
- **Nothing runs.** A PDF is read by a WebAssembly engine with no scripts and no network; the text of a Word or Excel
  file is taken out of its XML.
- **Laid out as printed.** A PDF page is put back together from where its letters are, not the order the file draws
  them in: column by column, each section heading (a short line in capitals set larger, such as "MAINS" or "A LA CARTE",
  with a translation beside it) followed by the items under it in its column. A menu that draws its headings after its
  items, or puts the Chinese name beside the English one, reads right: "MAINS" heads the mains, not the pastries, and a
  Kaya Toast Set under "TOAST SETS" and one under "A LA CARTE" are two items with two prices. An item set on two lines is
  one item, a price split into pieces is one price, and spaced-out display type reads as words. A page whose letters cannot
  be laid out (text at several angles, or letters with no text behind them) is read from its picture by the vision gear
  when there is one, within the scanned-file caps below; otherwise its text is taken as the engine reads it.

A **scanned PDF** has no text to copy. If the organisation has a gear with a vision model (on an agent's page, the
reading job's gear is used first), the reader sends the first four pages as pictures and asks for the text, for up to
three scanned files or pictures a read, under Support's daily AI limit. With no such gear the file is listed as "Not
read: needs a model that reads pictures".

**A menu posted as a picture.** Restaurants often put their menu on a page as an image. A picture on a page of your site
whose alt text, title or file name says it is a menu or a price list (`menu`, `prices`, `price list`, `drinks`, `set
meals`...) is fetched like a file (PNG, JPEG or WebP, at most 8 MB, at most four a read, same site and robots.txt rules)
and read by the same vision gear; it counts as one of the three scanned files. With no such gear it is listed as needing
a model that reads pictures.

**Tried again, and said so.** A file left for a reason of the moment, not of the file (the server could not open it,
the site did not hand it over, or Support's daily AI limit was reached), is not the end of it: the site is read again
for it within the hour, whatever the site's schedule, up to three times in a row. The site's row says how many files
are waiting and when the next try is, and a read that found the pages unchanged says that, not "nothing changed". A file
that reads on a later try counts as a change, so its notes are written then.

**Read once.** The reader keeps the text it took from each file (and from each uploaded file), with a hash of the file's
bytes and the `ETag` and `Last-Modified` the site sent. The next read asks the site for the file only if it changed; when
the site answers that it did not, or sends the same bytes, the kept text is used: no PDF is opened and no picture is sent
to a model again. The files list says "unchanged since the last read". A PDF whose kept text came from an older way of
reading it (before PDFs were laid out by column and heading) is read again once, then kept. A PDF is read from its first pages until the
reader has as much text as it keeps (60,000 characters), and the document is closed before the next file.

**Where PDFs are read.** A PDF is opened only by the background job that reads sites (the minute's cron), never in the
request that starts a read. A read started from the page fetches the pages until it meets a PDF, and the job goes on
from there within about a minute; the progress bar picks up again then.

Under each site, **Files on this site** lists every file the last read met: read (or read from pictures), or not read
with the reason (type, too big, too many pages, password protected, could not be opened, nothing in it, over the file
limit, on another website, robots.txt, or needs a model that reads pictures). A file that cannot be read never stops the
read. A changed file counts as a changed page, so a site whose price list changed is read again; one whose files and
pages are all the same writes nothing.

## Pages you add

Sometimes one page matters most, or sits where nothing links to it. Type its address in the same field and press **Read
just this page**:

- On a website you track, the page is **added to it**: it is read first in every read of that site, the scheduled ones
  too, and it counts as one of the read's pages.
- On any other site it becomes a **source of single pages** for that site name: only the pages you add there are read,
  no link is followed and no sitemap is fetched. It counts as one of your websites. Adding the whole site later turns
  it into an ordinary website and keeps the pages you added.

A site lists its added pages under **Pages you added**, each with **Stop reading**. The site's notes follow at its next
read. Removing the last page of a source of single pages removes the source; its notes stay, marked as no longer
tracked. Up to 50 pages per site. The same page typed another way (a trailing slash, `www.`) is added once.

## Files you upload

Price lists, menus, brochures and policies often live on a computer, not a website. Under **Files and pictures**, press
**Upload files** and pick one or more:

- **Documents**: PDF, Word (`.docx`), Excel (`.xlsx`), CSV, text and Markdown. They are read like the files on a site,
  with the same screening (type from the bytes, nothing runs, a long PDF from its first 60 pages, a scanned PDF from
  pictures by a gear that reads pictures).
- **Pictures**: PNG, JPEG and WebP, such as a photo of a price board, a menu or a poster. A picture is read by the
  gear chosen for the agent's reading job when it reads pictures (else the organisation's gear that does): it copies
  every word on it and adds a short description of what it shows. With no gear that reads pictures, the file shows
  "No gear here reads pictures" and nothing is written.

Each file is at most 25 MB. It is uploaded into your organisation's vault files (in parts when it is big, with a progress
bar), the same storage Notes uses, counted in the same quota; nothing leaves the cloud. Each file is its own source with
its own folder, **Front desk / From files / `<file name>`**, holding the topic notes it covers and one note with the
file's own text (or a picture's words and description), so the agent can answer from anything in it. Every note is
marked **to read** and links to the file. Up to 50 files (3 in a sandbox). Reading a file is not an outbound call, so
it works on a self-hosted install with website reading off.

**Remove** on a file moves its notes to the Notes trash (restorable for 30 days), except a note you checked or changed,
which stays, marked as no longer tracked. The file itself is deleted when no note shows it.

## Several websites

Track up to 10 websites (3 in a temporary sandbox). One organisation has one source per site name: `www.example.com`
and `example.com` are the same source, and typing it again reads it again instead of adding a second.

For each website the list shows:

- its state: **Not read yet**, **Reading**, **Read** or **Failed** (and why, in plain words);
- when it was last read, how many pages that read took and how many of them changed, and how many notes it has, with
  how many are still to read;
- the folder its notes go to, and the most one read takes (500 pages, 20 minutes of fetching, up to 25 files of 16 MB);
- while it reads, the progress bar and what it read ([Read my website](#read-my-website)), and the pages you added;
- the files its last read met and what became of each ([Files on the site](#files-on-the-site)).

**Read again** reads one site again. **Read all again** starts a read of every site at once; each runs on its own and a
site that is already being read is left alone.

**Read again by itself** can be **Only when I ask**, **Every week** or **Every month**. A read that starts by itself
never costs more than one you start, and it writes only what changed: each page's text is hashed, and when every page
of the site is the same as at the last read, the read ends there. No model call is made, no note is touched, and the
list says "Nothing changed since the last read, so nothing was written". When something changed, the model writes the
notes again, and a note whose text comes out the same is left as it is. A note you checked or edited is never
overwritten (the same rules as above). A sandbox is not read on a schedule.

**Remove** stops tracking a site. It is no longer read, by hand or by schedule. Its notes stay in Notes where they are,
marked **No longer tracked**, and nothing refreshes them; delete them in Notes if they should go. Adding the same
address again tracks it again.

### Where each site's notes go

A site you add gets its own folder in Notes: **Front desk / From website / `<site name>`**, with the same six topics
inside (`Front desk/From website/harbourdental.com/Prices`). An inbox or an agent can be limited to one site by adding
that folder under its knowledge (a folder includes the folders inside it, so **Front desk / From website** is every site).

The address your organisation had read before sites existed became its first source automatically, with the folder it
already used (**Front desk / From website**, notes directly in it). Nothing was moved, so its notes, their checked marks
and anything linking to them are as they were. The one cost: that first site's folder is also the parent of the other
sites' folders, so an inbox limited to it reads every site. Its notes can be moved in Notes, but a later read writes
at the old paths again, so it stays as it is. Only sites added from now on get a folder of their own.

### Reads run in the background

A read is a series of short steps. The step that starts it runs after the page answers, for about half a minute; a cron
(every minute) carries on any read nobody is working on and starts the scheduled ones. A crawl step fetches up to 40
pages in 20 seconds and saves them and what is left to visit, and each batch of the notes is a step of its own, so a
read of hundreds of pages whose process was stopped resumes from the pages it had, not from the start. A read that
keeps failing to move gives up after a few tries, with "The read did not finish". While a read runs its pages' text is
kept in the database; it is emptied when the read ends, and only each page's hash stays, so the next read can say how
many pages changed.

## Research related sites

A business often has more than one site: a group with its companies, a brand with its own shop, a chain with its
outlets. **Research related sites**, under the websites on the agent's **What it knows**, finds them for you. Start it
from a website (say `https://www.missiongroup.com/`), or from a question when web search is on ("which companies does
Mission Group own?"). An owner or admin starts it; any member can see the result.

What a run does:

1. Reads the starting site the way the agent reads any website, and notes every link to another site, with the words
   around it ("Our companies", a footer list of brands).
2. With web search on, searches for the organisation's subsidiaries, brands, outlets and parent company.
3. Looks at each other site it found: its front page and one more page, never the whole site. It decides whether the
   site belongs to the organisation and how (subsidiary, brand, outlet, parent company, partner), and quotes the page
   and sentence that say so. A quote the page does not contain word for word is thrown away, and without one the site is
   listed as **Not sure**, never as a match. Social networks, payment providers, delivery and booking platforms, site
   builders and CDNs are never looked at or proposed; other unrelated sites are left out and counted.
4. Writes an **organisation map** note in **Front desk / Research**: the organisation first, then one section per
   related site (who owns what, its lines of business, addresses, opening hours, contacts), each fact with the page it
   came from and the day it was read.
5. Proposes each related site as a website source, and lists the questions it could not answer.

### Nothing is used until you accept it

A proposed site waits under **Related sites** with its evidence. **Accept** makes it a website source like one you added
by hand: it gets its own folder and is read in full, and only then do its notes reach replies. **Dismiss** drops it.
**Accept all** accepts every proposal except the ones marked **Not sure**, which you look at one by one.

The organisation map is marked **proposed** while any site in it is waiting, and neither replies nor practice read a
note marked that way. Once every site is accepted or dismissed, the map is rewritten with the organisation and the
accepted sites only and marked **to read**, like the website's own notes. We chose a mark over keeping the note out of
the agent's folders, because a mark works whatever folders the agent reads and you can still open the map in Notes
while you decide.

**Add related sites without asking** (off by default, one switch per agent) accepts a site only when the starting site
itself says it belongs (a subsidiary, brand, outlet or parent company, with the sentence quoted). A site found only by
search, or one the run is not sure of, always waits for you.

### What one run may use

Shown before you start, and kept on the run:

| Limit | Per run |
| --- | --- |
| Steps away from the starting site | 2 (sites it links to, then sites those link to) |
| Other sites looked at | 10 |
| Pages fetched in all | 60 (15 of the starting site, 2 of each other site) |
| Web searches | 4, only with search on |
| Model calls | 12 |
| Spend | $0.50, and Support's daily AI limit |
| Time | 30 minutes |

A run that reaches a limit stops, writes up what it found and says which sites it did not check. Its model calls count
against Support's daily AI limit; the AI spend page (`/spend`) shows them under **Support (drafts, website reads,
research)**. Each run uses the gear chosen for the agent's reading job (its fast model), like a website read.

### Web search and privacy

Web search is off until an owner or admin turns on Petawork Search in **Settings → Search** (`/settings/search`). While
it is off, the run says so on the page, links there, and reads only the starting site and the sites it links to. On an
organisation that keeps everything on its own machines, a run searches only through its own local search (SearXNG),
never another engine. Provider web search is not used. Every page is fetched the way the website reader fetches: public
addresses only, robots.txt respected, size and time limits, no cookies.

Everything a run reads from the web is treated as data, never as instructions. The model judging a site has no tools,
so a page cannot make the agent change a setting, send a message or read other notes; at most it can make the run report
something, which then waits for you.

Runs go on in the background like website reads, a few pages or one model call a step. If the process stops, the
next step (the cron, every minute) resumes from where the run was, without fetching the pages it already has.

## Keeps itself up to date

An agent can work on what it knows by itself. **Keeps itself up to date**, on the agent's **What it knows**, sets how
often: **Off**, **Daily** or **Several times a day** (two to four times you choose, in your organisation's time zone:
the zone of the inbox agent's opening hours, else UTC). The page shows when the next run is.

The first website an organisation adds switches it on (daily at 07:00) and starts the first run at once. That run
waits for the website to be read, then goes on by itself, so a new organisation gets a filled knowledge base without a
second click. An agent someone already turned off stays off.

Each run picks the most valuable work first:

1. **Questions customers asked that it could not answer** (the same list as [Things to try](/docs/agents/bots.md#things-to-try)
   → gaps), up to 5 a run. It looks for the answer on a few pages of your own websites first. With web search on, it
   then searches the web for the ones still open.
2. **Websites not read for a week**, re-read the way a scheduled scan reads them: a page that did not change costs
   nothing, and a note someone edited is never overwritten (the new text waits in Notes as a suggestion).
3. **Related sites**, at most once a month per agent: a [research run](#research-related-sites) from your first website.
   The sites it finds wait for you like any research proposal.

It ends with a short digest on the page: **websites changed**, **notes added**, **proposed** and **could not find**,
with the questions it could not answer listed. The page keeps the last runs too.

### What it may do without asking

| Setting | Default | What it means |
| --- | --- | --- |
| Re-read pages that may have changed | On | Re-reads its websites. A note someone edited gets a proposed change, never an overwrite. |
| Fill gaps from our own websites | On | An answer found on a website you added becomes a note **to read** in that site's folder (`.../Answers/`), with the question, the sentence it is based on, the page and the day it was read. Off: it is proposed instead. |
| Add related sites | Off | The research setting **Add related sites without asking**, below. |
| Look on the web for answers to questions customers asked | Propose only | With web search on, what it finds on the web is always proposed, never used in a reply until you accept it. **Never** turns it off. |

An answer stands only with a sentence found word for word on the page it names; anything else counts as not found.

### Proposals

What it proposes waits in one list on the agent's page, together with the related sites research proposed, and the
bell tells owners and admins how many wait. **Accept** makes an answer a checked note with its source and date; **Edit**
lets you change the words first; **Reject** drops it, and the same question is never proposed again (a related site you
dismissed is never proposed again either). **Accept all** accepts everything except related sites research is not sure
of.

### Limits and rules

| Limit | Per run |
| --- | --- |
| Questions | 5 |
| Websites re-read | 5 (each within the website reader's own limits) |
| Pages it fetches itself | 12 |
| Web searches | 3, only with search on and web answers allowed |
| Model calls | 10 |
| Spend | $0.20 |

All runs of an organisation together stop at a daily limit ($1 unless an owner or admin changes it), shown on the
page and as **Keeping up to date** on the AI spend page (`/spend`), and at Support's own daily AI limit. Runs use the
gear chosen for the agent's reading job (its fast model).

- A run never sends anything to a customer and never changes the agent's rules, gear or inboxes.
- At most one run per agent at a time: a time that comes while a run is still going is skipped.
- A run that makes no progress for 15 minutes is ended.
- Turning the section **Off** ends a run that is going and schedules nothing.
- Every fetch is the website reader's (public addresses only, robots.txt, size and time limits); web search only when
  your organisation turned it on. Fetched text is data for the model, never instructions, and the model has no tools.

Runs are started and carried on by the same every-minute job that reads websites and research runs
(`/api/cron/site-reads`), not by the agent's routines: a routine runs a chat as the agent's owner with its tools, and
the organisation's inbox agent has no owner to run as.

## No website? Start from an example

Pick **Clinic or practice**, **School or tuition**, **Shop**, **Food and drink** or **Services**. The agent writes five
example notes in **Front desk / Examples**, each marked **example** and **to read**, so nobody mistakes them for facts.
Change each line to match your business. Picking another kind updates the same five notes; a note you already checked
is kept. Nothing leaves your machine.

Example notes are never used to answer a real customer. Practice may read them, and says they are examples.

## The public pages

`/inbox` is the page for the Customer Inbox: what it does, how it starts, how you stay in charge. `/inbox/pricing`
has the plans. Every price on both comes from one place in the code, so the two never disagree:

| Plan | Price | Includes |
| --- | --- | --- |
| Solo | S$129 a month | 2 people, 300 customers a month, every channel, every customer saved |
| Team | S$329 a month | 6 people, 1,500 customers a month, the enquiries board and follow-ups, bookings, a set-up call |
| On your own machines | Talk to us | Everything in Team, on hardware you control |

Phone calls are an add-on to any plan: S$49 a month with 200 minutes, then S$0.20 a minute. Every plan is free until
the agent answers a real customer, then 14 days free. These are recommended prices, for the owner's decision. Every
"Try it free" button goes to `/inbox/try`. The pages use no outside fonts, scripts or images.

## Agents and the API

| Tool | REST | What |
| --- | --- | --- |
| `support_site_read_get` | `GET /api/v1/support/frontdesk/website` | Whether reading is allowed here, the latest read (or one by `id`) and the notes the reader and examples wrote, with their origin and review mark. |
| `support_site_read_start` | `POST /api/v1/support/frontdesk/website/read` | Owners and admins: add the website at `url` as a source (or find it again) and read it. Returns at once with the read's id; poll `support_site_read_get`. Refused on a self-hosted install until an owner or admin allows it in the app. |
| `support_site_list` | `GET /api/v1/support/frontdesk/sites` | The tracked websites, single pages and uploaded files, each with its kind, state, last read, pages and notes counts, whether the last read found nothing changed, the failure reason, the schedule, the notes folder, the read limits, the pages added, and the latest read's progress with what it read or left. |
| `support_site_add` | `POST /api/v1/support/frontdesk/sites` | Owners and admins: add a website (`url`, optional `schedule` off, weekly or monthly, `scan: false` to only add it) and read it now. |
| `support_site_scan` | `POST /api/v1/support/frontdesk/sites/scan` | Owners and admins: read one tracked website again (`id`) or all of them. `force` writes the notes even when no page changed. |
| `support_site_update` | `PATCH /api/v1/support/frontdesk/sites/{id}` | Owners and admins: set how often the website is read by itself. |
| `support_site_remove` | `DELETE /api/v1/support/frontdesk/sites/{id}` | Owners and admins: stop tracking the website; its notes stay, marked as no longer tracked. For an uploaded file, its notes go to the Notes trash unless a person checked or changed them. |
| `support_site_page_add` | `POST /api/v1/support/frontdesk/sites/pages` | Owners and admins: read one page (`url`): added to its tracked website, else a source of single pages. A read starts now. |
| `support_site_page_remove` | `POST /api/v1/support/frontdesk/sites/pages/remove` | Owners and admins: stop reading a page (`url`) added to a website (`id`). |
| `support_site_file_add` | `POST /api/v1/support/frontdesk/sites/files` | Owners and admins: a file in the org vault (`file`, from `globe_file_upload`) as a source. A read starts now; poll `support_site_list`. |
| `support_sample_create` | `POST /api/v1/support/frontdesk/website/sample` | Owners and admins: write the example notes for `kind` (`clinic`, `school`, `shop`, `food` or `services`). |

Each read is logged (`support_site_reads`): its site, address, status, pages and the notes it wrote. The log never holds
a page's text; a running read keeps the pages it has fetched in `support_site_read_pages` until it ends, then only
their hashes stay. Adding, removing and rescheduling a site are audited (`support.frontdesk.site_removed`,
`support.frontdesk.site_schedule`, `support.frontdesk.site_page_removed`).
| `support_research_get` | `GET /api/v1/support/frontdesk/research` | An agent's research (`agent`): the limits, whether web search is on, the setting, and the latest run (or one by `run`) with the related sites, their evidence and decisions, the map note and the open questions. |
| `support_research_start` | `POST /api/v1/support/frontdesk/research` | Owners and admins: start a run for `agent` from `url`, or from `question` when web search is on. Returns at once; poll `support_research_get`. |
| `support_research_decide` | `POST /api/v1/support/frontdesk/research/decide` | Owners and admins: `accept` or `dismiss` one proposed site (`candidate`) or `all` of them in a `run`. |
| `support_upkeep_get` | `GET /api/v1/support/frontdesk/upkeep` | How an `agent` keeps itself up to date: its settings, next run, limits and today's spend, its last runs with their digest, and what waits for a person. |
| `support_upkeep_update` | `PATCH /api/v1/support/frontdesk/upkeep` | Owners and admins: `cadence` (`off`, `daily`, `several`), `times` (HH:MM), `allow_reread`, `allow_fill`, `web_answers` (`off` or `propose`). |
| `support_upkeep_run` | `POST /api/v1/support/frontdesk/upkeep/run` | Owners and admins: run now (the section must be on, and no run going). Returns at once; poll `support_upkeep_get`. |
| `support_upkeep_decide` | `POST /api/v1/support/frontdesk/upkeep/decide` | Owners and admins: `accept` (with `text` to change the words) or `reject` one proposal (`id`) or `all`. |
| `support_research_update` | `PATCH /api/v1/support/frontdesk/research` | Owners and admins: turn an agent's **Add related sites without asking** on or off (`auto_add`). |
