Docs / Build
Help content and procedures
The assistant answers from your help content: the help text you write on the Assistant page, and the pages and sitemaps you add on the Knowledge page. Procedures tell it how to handle a topic in your own words.
What gets crawled
- A page: that one address.
-
A sitemap: every page it lists (
<loc>), on the sitemap's own host. A sitemap index is read one level down: the sitemaps it lists are read, and any index inside those is passed over. Gzipped sitemaps aren't read. -
A whole site: the address, then the site's sitemap (the one its
robots.txtnames, or/sitemap.xmlor/sitemap_index.xml). A site without one is read by its links: the pages the address links to, and the pages those link to, on the same host, up to 200. A page served at two addresses, such as/pricingand/pricing.html, is read once. An app made from its website starts with this source. -
From an HTML page we keep its title and its text. When the page has a
<main>element, only what's inside it is kept. Navigation, headers, footers, sidebars, scripts, styles and form controls are left out. Headings and list items stay on lines of their own. Markdown and plain-text pages are kept as they are. - The text is cut into parts of about 1,200 characters at paragraphs and headings. Each part keeps the page's title and address, which is what search shows.
- A new source is crawled within a minute, and every source again every week. Crawl now on the Knowledge page crawls one again within a minute. A sitemap is read 10 pages a minute, so 200 pages take about 20 minutes; until a page is read again, its last version stays searchable.
- When a source can't be read, the Knowledge page says why. It's tried again every hour for a day, then once a week. What was crawled before stays searchable, unless the page answered 404 or 410, which removes it. Pages a sitemap no longer lists are removed once the whole sitemap has been read again.
Our crawler calls itself DezziBot in its User-Agent
(Mozilla/5.0 (compatible; DezziBot/1.0; help-content crawler)). It reads only the addresses you add,
and doesn't read robots.txt, so add only pages you're allowed to use.
Limits
- 20 sources an app.
- Public
httpsaddresses only, on the standard port: never an IP address,localhostor a private name such as.localor.internal. - At most 5 redirects, each checked the same way.
- 10 seconds for each page, and at most 2 MB. Only
text/html,text/markdownandtext/plainpages, andapplication/xmlortext/xmlsitemaps. - 200 pages a sitemap, and 100,000 characters of text a page.
How search works
Once an app has crawled pages or published help text, the assistant gets a search_knowledge tool. It
searches with a few keywords and gets back up to 5 excerpts, each with its page's title and address. A part matches
when it has every word searched for; when none has them all, parts with any of them are shown, those with the most
words close together first. Words match exactly as written, so refund doesn't find refunds; the
assistant is told to search with a few keywords. What search returns is information for the assistant to answer
from, never instructions to it.
Your help text on the Assistant page becomes searchable when it is published. Help text of up to 30,000 characters also goes into the assistant's instructions whole; longer help text is searched instead. Search covers only your own app's content.
Test a search on the Knowledge page runs the same search the assistant does, so you can see what it would find.
Procedures
A procedure is a topic and what to do about it, in plain language: "Refunds: look up the order first, propose the refund only for orders under 30 days old, and never promise a date." The assistant follows the procedure whose topic matches what the person asks. They come after your instructions in what the assistant is told, and like your instructions they can't change the service's own rules: the assistant still only proposes what changes money or data, and hands over what it can't do.
Keep hard limits in your app's actions, not in a procedure alone: the check of a propose
action is what decides whether something may happen. Up to 50 procedures, each up to 5,000 characters. Like
instructions and help text, they change in a draft, which you can run simulations on before you publish it.