> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## Default per-page directive for AI agents

ai

Every page served to AI agents now includes a default directive that tells agents how to navigate your documentation programmatically — pointing them to `.md` URLs, `llms.txt`, and `llms-full.txt`. The directive is automatically generated using your site's domain and basepath, so no configuration is needed.

**`Default page directive`**

```text title="Default page directive" wordWrap
For clean Markdown of any page, append .md to the page URL. For a complete documentation index, see https://docs.example.com/llms.txt. For full documentation content, see https://docs.example.com/llms-full.txt.
```

You can still override the default with a custom directive or disable it entirely.

Read the docs

## Standalone search widget

search

Embed Ask Fern's AI-powered search on any React site using the [`@fern-api/search-widget`](https://www.npmjs.com/package/@fern-api/search-widget) package. The widget renders a button that opens a search modal connected to your documentation content. It requires React 19; all other dependencies are bundled.

Read the docs