Skip to the page
Docs articles

Make your website readable by Otto

Build and serve your help pages so Otto's crawler reads all of them, and knows what to skip.

Last updated

View as Markdown
On this page

Otto answers your visitors from the websites your team adds to its knowledge. Adding one is a few clicks, covered in Otto's knowledge. This page is for whoever runs those websites: how the crawler finds and reads your pages, and what keeps a page out. The same crawl reads your pages when your team imports them as help articles, so what keeps a page from Otto keeps it from the import too.

What the crawl covers

  • The folder it starts in. A crawl that starts at acme.com/help reads the pages under /help on that host, and one that starts at acme.com reads the whole host. An address that redirects reads the folder it and the page it lands on share, so docs.acme.com answered from docs.acme.com/introduction reads the whole host. Docs on another host or folder, such as docs.acme.com beside acme.com/help, need a source of their own.
  • The links it finds. It follows every link on each page, navigation included, as long as the link stays inside that folder.
  • Your sitemap. It reads the sitemaps your robots.txt names, else /sitemap.xml, gzipped or not, so a page nothing links to is still found while your sitemap lists it. Only the pages inside the folder count, so a sitemap that lists your blog first still leads to your docs.
  • One address per page. A link's query string and #fragment are dropped, so pages that differ only by ?page=2 or ?tab=api are read as one. Give each page a path of its own.
  • Up to 2,000 pages of a website, and up to 20 MB of their text. Pages past either aren't read.

What it reads from a page

  • The HTML your server sends, or what your scripts build. A page whose HTML holds its text is read as it's sent. One whose HTML holds no text, as a help center that draws its text in the browser sends, is opened in a browser and read once its scripts have run, links included. That takes longer, and a page whose scripts take more than a few seconds to show its text may read as empty, so rendering your help pages on the server or prerendering them still reads best.
  • Your main content. It reads the page's <main>, else its <article>, else its <body>, and leaves out navigation, footers, scripts and anything hidden. Put each article inside <main>, so menus and footers don't crowd out the answer.
  • Your structure. Headings, list items, table rows and code blocks keep their shape, so real <h2>, <li>, <table> and <pre> elements help Otto tell sections, steps, a pricing table's plans and an API's parameters apart. Text in plain <div> elements is read too, a paragraph each.
  • Text, not files. Pictures, PDFs and downloads aren't read. Put an answer that lives in a PDF on a page too.

What keeps a page out

  • robots.txt. The crawler follows the group for User-agent: notert when there is one, else the group for *. A rule matches a path whether either writes a character as itself or percent-encoded, so Disallow: /caf%C3%A9 and Disallow: /cafĂ© keep out the same page. To keep search engines out of a page but let Otto read it, give Notert a group of its own:

    User-agent: *
    Disallow: /help/internal/
    
    User-agent: notert
    Allow: /
  • A robots.txt that fails. A robots.txt that's missing allows everything. One that answers a server error, or can't be reached, says nothing of what you allow, so the crawler reads nothing, tries again for a few minutes, and then stops with that problem. Press Retry once it answers.

  • A redirect out of the crawl. A page that redirects off the crawl's host or folder shows as "Redirects elsewhere", and one that redirects to a path your robots.txt disallows isn't read either. Link to each page's final address.

  • noindex. A page whose <meta name="robots"> says noindex isn't read, though its links are still followed.

  • A sign-in. A page that answers 401 or 403 isn't read. One Otto read before keeps that text until your website lets the crawler back in, and a crawl turned away from most pages removes none of the pages it didn't reach. For help that's only for signed-in customers, upload it to Otto's knowledge as a text or Markdown file instead.

  • A private address. The crawler reads public websites only, on the standard ports, so a staging site on localhost or on a port such as :8080 can't be read.

  • Someone else's platform. A first page on a social network, an app store, a link page or a platform's own site, such as github.com or medium.com, isn't read, even when your address redirects there. Serve your help from your own domain, or from your space on a host such as acme.github.io.

See a page as the crawler does

Fetch it without running JavaScript, as the crawler first does, and look for your article's words in what comes back:

curl -sL https://acme.com/help/export-requests \
  -A "Mozilla/5.0 (compatible; Notert/1.0)" \
  | grep -c "Export your requests"

0 means the text isn't in the HTML your server sends, so the crawler reads the page by running its scripts, which is slower. Check https://acme.com/robots.txt too, for a Disallow that covers your help.

Firewalls and rate limits

The crawler identifies itself with a user agent that contains Notert/1.0. If your firewall or bot protection challenges unknown crawlers, allow that user agent, or Otto's crawl fails at the first page.

It reads a few pages at a time. A Crawl-delay in the group it follows makes it read one page at a time, that many seconds apart, up to 10. A 429, or a 503 with Retry-After, makes it wait and carry on more slowly rather than give up.

Keeping Otto current

On a paid plan, each website is crawled again every 7 days while Otto is answering visitors: new pages are read, changed pages read again, and pages your site no longer links to are dropped. After a big change to your help, press Crawl again on the website in Otto's knowledge to read it now.

A page Otto couldn't read shows why under View pages. Fix the cause, and the next crawl picks it up:

It saysWhyWhat to do
Not foundThe page answered 404 or 410Fix or remove the link to it, or list its new address in your sitemap
Needs a sign-inThe page answered 401 or 403Make it public, or upload its text as a file
RefusedThe page answered another 4xxAllow the crawler's user agent in your firewall
Server errorYour server failedFix the server, then press Crawl again
Site asked to slow downIt kept answering 429 past the crawler's waitsRaise your rate limit for the crawler's user agent
Site unreachableThe address couldn't be reachedCheck the address and your DNS
Not a public addressThe address is on a private network or another portServe your help from a public address on the standard ports
Not a web pageIt answered something other than HTML, such as a PDFPut the answer on a page
Too largeThe page is larger than the crawler readsSplit it into several pages
Site asks crawlers to skip itrobots.txt or a noindex keeps crawlers outGive User-agent: notert a group that allows it
No readable textThe page holds no text, even once its scripts have runRender the page on the server
Redirects elsewhereIt redirects off the crawl's host or folderLink to its final address, or add a source for that host
Not your product’s websiteThe first page is on a social network or a platform's own siteStart from your own domain

Start here

Up and down arrowsto moveEnterto openEscto close