llms.txt aggregates the public docs into a single plain-text file that is easy to paste or attach to AI tools. Images are removed; headings and code examples are preserved.
{"slug": "ai", "page_title": "Using Docs with AI", "page_url": "AI/", "canonical_url": "/android/AI/", "markdown": "# Using Storyteller Kotlin SDK Docs with AI Assistants\n\nAI coding assistants (ChatGPT, Claude, Copilot, etc.) work best when you provide both:\n\n1. Your app code (Gradle config, initialization code, and the UI integration point).\n2. Storyteller Kotlin SDK documentation context.\n\nThis page describes the recommended workflow.\n\n## Download `llms.txt` (AI Context)\n\n- [llms.txt](ai/llms.txt)\n\n`llms.txt` aggregates the public docs into a single plain-text file that is easy to paste or attach to AI tools. Images are removed; headings and code examples are preserved.\n\n## Recommended Workflow\n\n1. Share `llms.txt` with the AI assistant (attach or paste).\n2. Share the relevant app files/snippets:\n - Gradle setup (`settings.gradle(.kts)`, app `build.gradle(.kts)`)\n - SDK initialization (`Storyteller.initialize(...)`)\n - The integration surface (Compose screen / Activity / Fragment)\n3. Ask for a concrete output: a patch-style diff, a minimal snippet, or a step-by-step checklist.\n\n## Rules for AI-Generated Code (Integration Safety)\n\n1. Use only Storyteller public APIs that exist in the SDK and/or are documented in these pages.\n2. Do not invent optional parameters, config flags, or DTO fields unless the prompt requires them.\n3. Do not include secrets or PII in examples; use placeholders (e.g., `[APIKEY]`, `\"user-id\"`).\n4. Prefer Jetpack Compose components unless legacy XML Views are explicitly required.\n5. When referencing behavior or configuration, prefer the canonical docs URLs:\n - `https://docs.getstoryteller.com/android/<PageName>/`\n\n## Good Prompt Examples\n\n- \"Here is my `Application` and app `build.gradle.kts`. Add Storyteller initialization and a `StorytellerStoriesRow` to my Compose screen.\"\n- \"I need to handle Storyteller deep links in `MainActivity`. Here is my intent handling code; update it safely.\"\n- \"We want to disable personalization for some users. Show how to configure tracking options during initialization.\"\n\n## Related Pages\n\n- [Quickstart Guide](GettingStarted.md)\n- [Working with Users](Users.md)\n- [Privacy and Tracking](PrivacyAndTracking.md)\n- [Storyteller Delegates](StorytellerDelegates.md)\n", "copy_markdown_include_header": false, "base_path": "android", "ai_dir": "ai", "missing_payload_behavior": "empty"}