# Use these docs with an AI

Give any AI assistant the Lyna docs as plain text, one page at a time or all at once.

Every page of these docs is also available as plain Markdown, so an AI assistant can read it without the menus, the styles and the scripts of the web page.

## What you can do

- Give an assistant the list of every page, or every page in one file.
- Open any page as Markdown by adding `.md` to its address.
- Copy a page as Markdown and paste it into a chat.
- Let a tool ask for Markdown and get it from the normal page address.

## The page list and the full docs

Two files describe the whole site. Give their address to an assistant that can read the web, or paste their content into a chat.

| File                                                    | What it holds                                                                               |
| ------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| [llms.txt](https://docs.lyna-it.com/llms.txt)           | Every page with its title, a one-line summary and its Markdown address, grouped by section. |
| [llms-full.txt](https://docs.lyna-it.com/llms-full.txt) | The text of every page in one file. Use it when the assistant should know all of the docs.  |

The French docs have their own pair: [fr/llms.txt](https://docs.lyna-it.com/fr/llms.txt) and [fr/llms-full.txt](https://docs.lyna-it.com/fr/llms-full.txt).

> [!TIP]
>
> **Start small**
>
> `llms.txt` is short. An assistant can read it first, then open only the pages it needs. `llms-full.txt` is long and fills more of the assistant's memory.

## One page as Markdown

1. ### Add .md to the address

   Open the page you need and add `.md` at the end of its address. For example, `https://docs.lyna-it.com/features/ai/chat` becomes `https://docs.lyna-it.com/features/ai/chat.md`. French pages work the same way, under `/fr`.
2. ### Or copy the page

   At the top of every page, choose **Copy page** to copy it as Markdown. Open its menu and choose **View as Markdown** to see the text in a new tab.
3. ### Paste it into your chat

   Paste the text and ask your question. The assistant answers from the current docs instead of what it remembers.

## Ask for Markdown from a tool

A tool that reads web pages can ask for Markdown directly. Send the normal page address with the header `Accept: text/markdown`, and the site answers with the page's Markdown instead of the web page. A browser still gets the web page.

```bash title="Terminal"
curl -H "Accept: text/markdown" https://docs.lyna-it.com/features/ai/chat
```

Every web page also points to these files in its response headers and in its page head, so a tool that looks for them finds them on its own.

## Related

- [Chat with the AI](/features/ai/chat): Ask and build in your project.
- [FAQ](/introduction/faq): Quick answers.
- [Support](/introduction/support): How to get help.
