# AI Links & llms Files

## AI Links & llms Files

**Files:** `src/config/config.toml`, `src/i18n/<language>.json`, page frontmatter · **Skill level:** Beginner

Lotline helps visitors and AI tools read your listings and pages. A visitor can open the current page in an AI assistant or copy it as Markdown, and AI tools can read a plain index of your site. All of it is built from your own content and needs no account.

### Ask AI And Copy Page Links
```toml
# src/config/config.toml
[settings.pageActions]
  enable    = true
  footer    = true
  providers = ["chatgpt", "claude", "perplexity", "grok"]
```

| Setting | What it does |
| --- | --- |
| `enable` | Shows a row of links under the intro of property, development, neighborhood, service, agent, job and blog pages: **Copy page**, **View as Markdown**, and one **Ask** link per assistant |
| `footer` | Shows a row in every footer: **Ask AI about this page** with one link per assistant, and **Read with AI** with links to `llms.txt` and `llms-full.txt` |
| `providers` | Which assistants to offer: any of `chatgpt`, `claude`, `perplexity` and `grok`. `[]` hides the "Ask" links |

An **Ask** link opens the assistant with a question about the page. The question is `ai.prompt` in each `src/i18n/<language>.json`, and it ships as `Read {url} and tell me what this agency charges and which neighborhoods it covers.` The other labels are under `ai` in the same files. Change them in every language.

**Copy page** and **View as Markdown** need `markdownPages` (below) to be on.

<div class="border border-dark">
  ![A property page with the Copy page and Ask links under the intro](/images/lotline/property.jpg)
</div>

### The llms Files
```toml
# src/config/config.toml
[seo.ai]
  llmsTxt       = true
  markdownPages = true
```

| Address | What it holds |
| --- | --- |
| `/llms.txt` | A Markdown index of your site: your agency facts, then links grouped as properties, new developments, services, neighborhoods, agents, pages, blog posts and jobs |
| `/llms-full.txt` | The text of those pages in one file |
| `/<page>.md` | A Markdown copy of a page, such as `/properties/elm-hill-modern-villa.md` |

Each language gets its own, such as `/fr/llms.txt` and `/ar/llms.txt`. The agency facts at the top (name, phone, email, address, hours, areas served, currency) come from `[business]` in `config.toml`.

`llms.txt` is a proposed convention that some AI tools and coding agents read. Search engines don't document using these files, so treat them as a help for AI tools, not as an SEO setting.

Before launch:

- Rewrite `ai.siteSummary` in each language file. It opens `llms.txt`, and it ships as a general line about "a local real estate agency".
- Set your domain in `[site] baseUrl`, because the links in these files use it.

The last line of `llms.txt` is the theme credit, which you can edit under `[settings.themeCredit]` in `config.toml`.

### Leave A Page Out
Add `excludeFromAi` to the page's frontmatter:

```yaml
---
title: "Internal notes"
excludeFromAi: true
---
```

The page is left out of the llms files and gets no Markdown copy. Pages marked `noindex` and drafts are left out for you, so a listing you take down with `draft: true` leaves these files too.

### Choose Which AI Crawlers May Visit
`/robots.txt` is built from your settings:

```toml
# src/config/config.toml
[seo.robotsTxt]
  enable     = true
  disallow   = []
  aiSearch   = true  # AI answer engines that fetch pages to cite them
  aiTraining = true  # crawlers that collect content to train AI models
```

Set `aiSearch` or `aiTraining` to `false` to ask those crawlers to stay away. `robots.txt` is a request, and not every crawler follows it. The list of crawlers is in `src/lib/utils/aiCrawlers.ts`. More in [SEO & AI Visibility](/lotline/customization/seo-ai-visibility/).

<Aside type="note">
  The included `public/_headers` (Netlify and Cloudflare Pages) and
  `vercel.json` serve the `.md` and llms files as text, and send
  `X-Robots-Tag: noindex` with the `.md` copies so search engines don't index
  them in place of your real pages. On any other host, set the same headers
  yourself. See [Deployment](/lotline/deployment/).
</Aside>

### Files For Developers
| File | What it does |
| --- | --- |
| `src/layouts/components/widgets/PageActions.astro` | The **Copy page** and **Ask** links |
| `src/layouts/components/global/footer/FooterAi.astro` | The footer row |
| `src/lib/utils/aiContent.ts` | Builds the text for the llms files and `.md` copies |
| `src/lib/utils/aiCrawlers.ts` | The crawler lists for `robots.txt` |
| `src/pages/[...lang]/llms.txt.ts` | The `llms.txt` route |
| `src/pages/[...lang]/llms-full.txt.ts` | The `llms-full.txt` route |
| `src/pages/[...path].md.ts` | The Markdown copies |
| `src/pages/robots.txt.ts` | The `robots.txt` route |

### Do It With AI
```text
Prepare the AI files for launch. In each file in src/i18n/, rewrite ai.siteSummary in that file's
language as two sentences about my agency: [DESCRIPTION, CITY, NEIGHBORHOODS]. Check that
[site] baseUrl in src/config/config.toml is "[MY URL]". Then run npm run build and show me the
first lines of dist/llms.txt.
```