The Storyteller Web SDK docs are also published as plain-text files for AI
coding assistants, such as GitHub Copilot, Claude, Codex, ChatGPT, and Cursor.
Give your assistant these files so that its answers use the Web SDK API as
documented.
Every page except the documentation home has a Copy for AI button next to
its title. The button copies the page's AI file: a summary of the page,
followed by the full page in Markdown. Paste it into your assistant's chat. On
this page, the button copies the whole bundle described in the next section.
The button's menu also has Copy as Markdown, which copies only the page's
Markdown.
Download the documentation bundle from
https://docs.getstoryteller.com/web/ai/llms.txt.
It contains a summary of every page in navigation order. Each summary starts
with a <PAGE: slug> marker.
To use the bundle in your project:
Create a .ai/ directory in your project.
Save the bundle as .ai/storyteller-web-sdk-docs.md.
Point your assistant to that file and mention it in your prompts.
In an editor assistant, such as Cursor, Zed, or GitHub Copilot, attach or
reference the saved file in the chat. In a web-based assistant, upload the
file, or paste its contents at the start of a new chat. Long pastes may be
truncated.
The <slug> is the same slug as in the bundle's <PAGE: slug> marker. To
work it out from a page's URL, take the path after
https://docs.getstoryteller.com/web/ and remove the trailing slash. Replace
each / with -, add a hyphen before each capital letter inside a word, and
use lowercase letters. For a section overview page whose URL ends in a folder
name, add -index.
An assistant that can fetch URLs can use the docs search index to find the
right page:
https://docs.getstoryteller.com/web/search/search_index.json.
It lists the title, location, and text of each page and section. Check
important answers against the pages it finds.
"Using the Storyteller Web SDK docs, initialize Storyteller and show a Story
row on my page."
"Show a minimal StorytellerStoriesRowView integration and how to reload its
data."
"Which callbacks do I implement to send Storyteller analytics events to my
analytics tool?"
"Help me build a UiTheme with our brand colors for light and dark mode."
"Implement getAdConfig for Google Ad Manager with Story and Clip Category
targeting."
"Help me fix this Storyteller initialization error: [paste the error]."
{"slug": "ai", "page_title": "Use Docs with AI", "page_url": "AI/", "canonical_url": "/web/AI/", "markdown": "# Use the docs with AI assistants\n\n<!-- markdownlint-disable MD033 -->\n<span id=\"using-storyteller-web-sdk-docs-with-ai-assistants\"><\/span>\n\nThe Storyteller Web SDK docs are also published as plain-text files for AI\ncoding assistants, such as GitHub Copilot, Claude, Codex, ChatGPT, and Cursor.\nGive your assistant these files so that its answers use the Web SDK API as\ndocumented.\n\n## Why use the docs with an AI assistant {#why-use-ai-assistants-with-documentation}\n\nAn assistant that has the Storyteller docs in context can:\n\n- Suggest code that matches the Web SDK API\n- Help you troubleshoot initialization, themes, analytics, and ads\n- Use the documented options and defaults instead of guessing them\n\nCheck important answers against the docs pages.\n\n## Copy one page {#copy-one-page}\n\nEvery page except the documentation home has a **Copy for AI** button next to\nits title. The button copies the page's AI file: a summary of the page,\nfollowed by the full page in Markdown. Paste it into your assistant's chat. On\nthis page, the button copies the whole bundle described in the next section.\n\nThe button's menu also has **Copy as Markdown**, which copies only the page's\nMarkdown.\n\n## Add the whole bundle to your project {#adding-documentation-to-your-editor}\n\n<span id=\"download-llmstxt\"><\/span>\n<span id=\"editor-specific-instructions\"><\/span>\n\nDownload the documentation bundle from\n[`https://docs.getstoryteller.com/web/ai/llms.txt`](https://docs.getstoryteller.com/web/ai/llms.txt).\nIt contains a summary of every page in navigation order. Each summary starts\nwith a `<PAGE: slug>` marker.\n\nTo use the bundle in your project:\n\n1. Create a `.ai/` directory in your project.\n1. Save the bundle as `.ai/storyteller-web-sdk-docs.md`.\n1. Point your assistant to that file and mention it in your prompts.\n\nIn an editor assistant, such as Cursor, Zed, or GitHub Copilot, attach or\nreference the saved file in the chat. In a web-based assistant, upload the\nfile, or paste its contents at the start of a new chat. Long pastes may be\ntruncated.\n\n## Use per-page files {#when-to-use-per-page-files}\n\nWhen you need one topic, give your assistant that page's file. It contains the\npage summary and the full page. Each page's file is at:\n\n```text\nhttps://docs.getstoryteller.com/web/ai/llms-<slug>.txt\n```\n\nThe `<slug>` is the same slug as in the bundle's `<PAGE: slug>` marker. To\nwork it out from a page's URL, take the path after\n`https://docs.getstoryteller.com/web/` and remove the trailing slash. Replace\neach `/` with `-`, add a hyphen before each capital letter inside a word, and\nuse lowercase letters. For a section overview page whose URL ends in a folder\nname, add `-index`.\n\n| Page URL path | Slug | File |\n| ---------------------- | ----------------------- | --------------------------------------------------------------------------------------------------------- |\n| `Themes/` | `themes` | [`llms-themes.txt`](https://docs.getstoryteller.com/web/ai/llms-themes.txt) |\n| `StorytellerRowView/` | `storyteller-row-view` | [`llms-storyteller-row-view.txt`](https://docs.getstoryteller.com/web/ai/llms-storyteller-row-view.txt) |\n| `getting-started/npm/` | `getting-started-npm` | [`llms-getting-started-npm.txt`](https://docs.getstoryteller.com/web/ai/llms-getting-started-npm.txt) |\n| `getting-started/` | `getting-started-index` | [`llms-getting-started-index.txt`](https://docs.getstoryteller.com/web/ai/llms-getting-started-index.txt) |\n\n## Release notes {#release-notes}\n\nThe bundle doesn't include the release notes. Download them separately from\n[`https://docs.getstoryteller.com/web/ai/llms-changelog.txt`](https://docs.getstoryteller.com/web/ai/llms-changelog.txt),\nor copy them from the [Release notes](Changelog.md) page.\n\n## Search the docs {#search-index}\n\nAn assistant that can fetch URLs can use the docs search index to find the\nright page:\n[`https://docs.getstoryteller.com/web/search/search_index.json`](https://docs.getstoryteller.com/web/search/search_index.json).\nIt lists the title, location, and text of each page and section. Check\nimportant answers against the pages it finds.\n\n## Example prompts\n\n- \"Using the Storyteller Web SDK docs, initialize Storyteller and show a Story\n row on my page.\"\n- \"Show a minimal `StorytellerStoriesRowView` integration and how to reload its\n data.\"\n- \"Which callbacks do I implement to send Storyteller analytics events to my\n analytics tool?\"\n- \"Help me build a `UiTheme` with our brand colors for light and dark mode.\"\n- \"Implement `getAdConfig` for Google Ad Manager with Story and Clip Category\n targeting.\"\n- \"Help me fix this Storyteller initialization error: [paste the error].\"\n", "copy_markdown_include_header": false, "base_path": "", "ai_dir": "ai", "missing_payload_behavior": "empty"}