# Build with AI

The TradingView Widgets documentation is available in formats that AI assistants and other LLM-based tools can read directly, without parsing HTML.
The files follow the [llms.txt](https://llmstxt.org/) convention.

## llms.txt and the docs map

The documentation root serves two index files:

- [`llms.txt`](https://www.tradingview.com/widget-docs/llms.txt) is a list of all documentation pages with short descriptions.
- [`docs_map.md`](https://www.tradingview.com/widget-docs/docs_map.md) is the same list that also includes the headings of each page.

## Markdown pages

Every documentation page is also available as Markdown at its own URL with the `.md` suffix.
For example, this page is available at [build-with-ai.md](https://www.tradingview.com/widget-docs/build-with-ai.md).

Most pages show two buttons under the title:

- **Copy as Markdown** copies the page in Markdown to the clipboard.
- **View as Markdown** opens the page in Markdown in a new tab.

Widget pages have no buttons because they host the interactive widget constructor.
The Markdown version of a widget page describes the widget and links to the constructor and related guides.
To get the embed code, use the constructor.

## How to use the files with AI tools

- Give an AI assistant the [`llms.txt`](https://www.tradingview.com/widget-docs/llms.txt) URL, so it knows which pages exist and can open the ones it needs.
- To ask about a specific page, give the assistant the `.md` URL of that page, or use the **Copy as Markdown** button and paste the page into a chat.

---

## Sitemap

- [All documentation pages](https://www.tradingview.com/widget-docs/llms.txt)
- [Full page map with headings](https://www.tradingview.com/widget-docs/docs_map.md)
