> For the complete documentation index, see [llms.txt](https://docs.convai.com/api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.convai.com/api-docs/plugins-and-integrations/convai-unity-sdk/features/narrative-design.md).

# Narrative design

Find guides for setting up, configuring, scripting, and troubleshooting the Narrative Design system in the Convai Unity SDK.

Narrative Design gives Convai characters a structured story graph of sections and triggers. This section covers everything from understanding the runtime model to the complete scripting API.

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>How narrative design works</strong><br>Understand the runtime pipeline, sections, triggers, template keys, and component placement.</td><td><a href="/api-docs/plugins-and-integrations/convai-unity-sdk/features/narrative-design/how-narrative-design-works.md">How narrative design works</a></td></tr><tr><td><strong>Narrative design quick start</strong><br>Add a Manager and a collision trigger to a character and confirm a section change in Play Mode.</td><td><a href="/api-docs/plugins-and-integrations/convai-unity-sdk/features/narrative-design/quick-start.md">Narrative design quick start</a></td></tr><tr><td><strong>Configure the narrative design manager</strong><br>Add, sync, and configure the Manager component — the listening post for section transitions.</td><td><a href="/api-docs/plugins-and-integrations/convai-unity-sdk/features/narrative-design/setting-up-the-narrative-design-manager.md">Configure the narrative design manager</a></td></tr><tr><td><strong>Configure narrative design triggers</strong><br>Place world triggers with collision, proximity, timer, or manual activation.</td><td><a href="/api-docs/plugins-and-integrations/convai-unity-sdk/features/narrative-design/setting-up-narrative-design-triggers.md">Configure narrative design triggers</a></td></tr><tr><td><strong>Configure narrative template keys</strong><br>Inject runtime values into the character's narrative objectives from the Inspector or code.</td><td><a href="/api-docs/plugins-and-integrations/convai-unity-sdk/features/narrative-design/template-keys-dynamic-narrative-variables.md">Configure narrative template keys</a></td></tr><tr><td><strong>Narrative design scripting reference</strong><br>Full C# API reference for IConvaiNarrativeDesign, NarrativeDesignFetcher, and programmatic control.</td><td><a href="/api-docs/plugins-and-integrations/convai-unity-sdk/features/narrative-design/scripting-narrative-design.md">Narrative design scripting reference</a></td></tr><tr><td><strong>Narrative design usage examples</strong><br>Four worked examples from a simple welcome kiosk to a fully adaptive multi-section scenario.</td><td><a href="/api-docs/plugins-and-integrations/convai-unity-sdk/features/narrative-design/usage-examples.md">Narrative design usage examples</a></td></tr><tr><td><strong>Troubleshoot narrative design</strong><br>Diagnose every TriggerStatus state, common misconfigurations, and fetch failures.</td><td><a href="/api-docs/plugins-and-integrations/convai-unity-sdk/features/narrative-design/troubleshooting-and-diagnostics.md">Troubleshoot narrative design</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.convai.com/api-docs/plugins-and-integrations/convai-unity-sdk/features/narrative-design.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
