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 convention.
llms.txt and the docs map
The documentation root serves two index files:
llms.txtis a list of all documentation pages with short descriptions.docs_map.mdis 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.
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.txtURL, so it knows which pages exist and can open the ones it needs. - To ask about a specific page, give the assistant the
.mdURL of that page, or use the Copy as Markdown button and paste the page into a chat.