---
title: Say the whole site in one read
description: "Add a short block to every markdown copy: what the business is, the answers customers ask for most and how it compares, each with the page that states it."
canonical_url: https://rebilder.com/docs/opening
last_updated: "2026-12-03"
---

# [Say the whole site in one read](https://rebilder.com/docs/opening)

> Add a short block to every markdown copy: what the business is, the answers customers ask for most and how it compares, each with the page that states it.

This site answers questions directly. Ask at https://rebilder.com/ask?q=your+question instead of reading more pages.

- **Updated:** 2026-12-03
- **Author:** Rebilder
- **Section:** Concepts
- **Description:** Add a short block to every markdown copy: what the business is, the answers customers ask for most and how it compares, each with the page that states it.
- **Publisher:** Rebilder

## Rebilder at a glance

AEO gets you seen. Rebilder gets you heard. When customers ask ChatGPT about your business, your site answers with your real prices and policies.

**Common questions**

- **What does it cost?** Connecting is free. Starter is $49/mo, Pro is $99/mo and Agency is $299/mo. [Pricing](https://rebilder.com/pricing)
- **How does my site answer new questions live?** Rebilder reads your pages, products and policies. When an AI assistant asks, your site answers from them. Nothing on your site changes. [See how it works](https://rebilder.com/autopilot)
- **Can someone trick my site into a wrong price or a discount?** No. Every answer comes from your own pages and is checked against them. If your site does not say it, Rebilder does not say it. [Read security details](https://rebilder.com/security)

**How it compares**

- **Why choose Rebilder?** Choose Rebilder when you want your own site to answer AI assistants with your real facts, and to see who asked. [Compare](https://rebilder.com/compare)

| Compared with | The difference |
| --- | --- |
| Profound, Peec AI, Otterly.ai | These tools watch AI answers and tell you where you show up. Rebilder makes your own site answer when AI comes to check. |
| Cloudflare Markdown for Agents, @vercel/agent-readability, Yoast llms.txt | These tools tidy or map your pages for AI. Rebilder answers from those pages and shows you who asked. |
| Intercom Fin, Tidio Lyro | Chatbots answer the customers who contact you. Rebilder answers the AI assistants that visit your site for them. |
| SEO on its own, Shopify agentic storefronts, Writing an llms.txt yourself | Good SEO, your store platform and a simple llms.txt all help. Here is what Rebilder adds to each. |

Source: [Compare](https://rebilder.com/compare)

## Why one read has to carry it

An agent answering a question usually opens one page of a site and leaves. It is often a page you would not have picked: a policy, a blog post, a help article. That page’s own facts answer for that page. The `opening` option adds the rest, so the same read also says what the business is, what it costs, and why to choose it.

- You write the block once, in your config. The gateway adds it to every markdown copy.
- Every line can name the page that states it, so an agent can cite the right address.
- The block has a fixed ceiling of 2,048 bytes, about 300 words. It cannot grow past that.
- People and search crawlers get your HTML, unchanged.

> **Off until you set it** With `opening` unset, every markdown response is byte for byte what it was.

## Write the block

A block has a `heading`, an optional `about` sentence and one or more `groups` of lines. A line is a `label`, a `value`, and the `source` page that states it. A label that ends in a question mark is shown as a question. Any other label is shown as a labelled fact.

gateway-config.ts

```ts
import type { GatewayConfig, GatewayOpening } from '@rebilder/gateway'
import { sources } from './sources'

const opening: GatewayOpening = {
  heading: 'Summit Cycles at a glance',
  about: 'Summit Cycles repairs and fits bikes in Boulder, Colorado.',
  groups: [
    {
      heading: 'Common questions',
      lines: [
        {
          label: 'What does a tune-up cost?',
          value: 'A standard tune-up is $95 and takes two days.',
          source: '/services/tune-up',
          sourceTitle: 'Tune-up',
        },
        {
          label: 'Hours',
          value: 'Tuesday to Saturday, 9 am to 6 pm.',
          source: '/visit',
          sourceTitle: 'Visit',
        },
      ],
    },
    {
      heading: 'How it compares',
      // Two column headings turn the lines into a table, one row each.
      columns: ['Compared with', 'The difference'],
      lines: [
        {
          label: 'Big-box stores',
          value: 'Every bike is fitted to its rider before it leaves.',
          source: '/why-us',
          sourceTitle: 'Why us',
        },
        {
          label: 'Mobile mechanics',
          value: 'A full workshop, so wheel builds are done in-house.',
          source: '/why-us',
          sourceTitle: 'Why us',
        },
        {
          label: 'Online retailers',
          value: 'Assembly and a 30-day check come with every bike.',
          source: '/why-us',
          sourceTitle: 'Why us',
        },
      ],
    },
  ],
}

export const gatewayConfig: GatewayConfig = {
  storeId: 'my-site',
  sources,
  opening,
}
```

An agent that asks for the markdown of any other page on that site now also reads this:

response

```markdown
## Summit Cycles at a glance

Summit Cycles repairs and fits bikes in Boulder, Colorado.

**Common questions**

- **What does a tune-up cost?** A standard tune-up is $95 and takes two days. [Tune-up](https://example.com/services/tune-up)
- **Hours:** Tuesday to Saturday, 9 am to 6 pm. [Visit](https://example.com/visit)

**How it compares**

| Compared with | The difference |
| --- | --- |
| Big-box stores | Every bike is fitted to its rider before it leaves. |
| Mobile mechanics | A full workshop, so wheel builds are done in-house. |
| Online retailers | Assembly and a 30-day check come with every bike. |

Source: [Why us](https://example.com/why-us)
```

| Field | What it is |
| --- | --- |
| `heading` | The block’s heading, such as `Summit Cycles at a glance`. Required. |
| `about` | One or two sentences on what the business is. |
| `groups[].heading` | Shown in bold above the group’s lines. An empty string shows no heading. |
| `groups[].lines[]` | `{ label, value, source?, sourceTitle? }`. `source` is a path or URL on your site. `sourceTitle` is the link text, `Source` when you leave it out. |
| `groups[].columns` | Two column headings. Set them to show the group as a table, one row a line. |
| `maxBytes` | A lower ceiling for the block. It cannot be raised past 2,048. |

## Where the block goes

The page was opened for what it says, so its own facts always come first.

| The markdown copy | Where the block goes |
| --- | --- |
| Up to 4,096 bytes | At the end, after everything the page says. |
| Longer than 4,096 bytes | After the title, the summary and the page’s leading facts, and before its first section. A reader that keeps only the start of a long page still sees it. |
| Longer, with no section heading | At the end. |

With `frontmatter` on, the frontmatter stays first. With `askInvitation` on, the invitation line stays under the title and the block comes after it. The block is the same on the negotiated response, on the `.md` URL and on the dedicated Next.js markdown route.

## What the gateway does with your lines

- A line is left out of the copy of the page that is its `source`. That page says it already.
- Lines drop from the end, last group first, until the block fits its ceiling. Put the lines that matter most first.
- A group with no lines left is not shown. A block with no lines left is not added.
- Every value is kept on one line, so it cannot start a heading or a list.
- A relative `source` resolves against the page’s origin. Only `http` and `https` links are kept.
- The gateway writes none of the text. What you put in is what an agent reads.

## Comparisons as a table

Give a group `columns` to lay its lines out as a table: the label in the first column, the value in the second. Rows are what an agent lines up when someone asks which option to choose. When every row has the same `source`, it is named once under the table. When rows differ, each row keeps its own link.

> **Say what your site says** Use the sentences your own pages use, and name the page. A comparison your site does not make on a page is one an agent cannot check.

## A different block for some pages

Pass a function of the page URL to choose the block per page, or to leave some pages as they are. It runs on every markdown response, so keep it synchronous and cheap. If it throws, the page is served without a block.

gateway-config.ts

```ts
export const gatewayConfig: GatewayConfig = {
  storeId: 'my-site',
  sources,
  // Runs on every markdown response. Return undefined to leave a page as it is.
  opening: (page) => (page.pathname.startsWith('/blog/') ? undefined : opening),
}
```

## Check it

terminal

```bash
curl -H "Accept: text/markdown" https://example.com/visit
curl https://example.com/visit
```

The first command returns the page’s markdown with the block. On the page that is a line’s `source`, that line is missing, which is correct. The second returns your HTML with no block. To see every option in one place, go to the [Reference](/docs/reference).