> 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/unreal-engine/guides/narrative-design/narrative-design-trigger.md).

# Narrative Design Trigger

Use Convai's Narrative Design Triggers in Unreal Engine to enhance your game stories.

{% hint style="info" %}
Before proceeding with this section, it is advisable to familiarize yourself with the Narrative Design system, as elucidated in this [tutorial](https://youtu.be/C0JdmBTmZ9g?si=dImNu2-fBwKW1Frx).
{% endhint %}

## Use of Invoke Narrative Design Trigger in Unreal Engine.

1. Develop the logical flow for your specific use case. In this instance, we have created a simple museum tour guide scenario.

<figure><img src="https://413558230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEtUJA212Zc1S9ACc8T4l%2Fuploads%2FDipugAYGzeQ2rzmn9sxx%2Fimage.png?alt=media&amp;token=a29f32c0-f551-4dd0-a5fa-9ad1c42f58fc" alt=""><figcaption></figcaption></figure>

1. Once the logic is decided we can move to Unreal Engine. (In this guide we will use the same setup described in this [<mark style="color:green;">guide</mark>](/api-docs/plugins-and-integrations/unreal-engine/guides/event-aware-convai-characters.md))
2. Our goal is to invoke the trigger `Start Tour` in the narrative Design graph, using the `Invoke Narrative Design Trigger` .
3. The `Trigger Name` in the function should be the same as the `Trigger` name on the graph.

<div align="left"><figure><img src="https://413558230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEtUJA212Zc1S9ACc8T4l%2Fuploads%2FxZ1Ey8goabBd6gRD2ZqE%2FwebsiteTrigger.jpg?alt=media&amp;token=46a0db72-f52d-4489-9b28-2c322d6a21f5" alt="" width="343"><figcaption><p>Website</p></figcaption></figure> <figure><img src="https://413558230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEtUJA212Zc1S9ACc8T4l%2Fuploads%2FJzCpkRTIe6EQUvK6nfPX%2FUE%20Trigger.jpg?alt=media&amp;token=9ed22ac4-9efc-4d36-acf7-f51b4e4d0a68" alt=""><figcaption><p>Unreal Engine</p></figcaption></figure></div>

3. The above example showcased only one Trigger. The use of more than one Trigger is also possible based on execution logic.


---

# 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/unreal-engine/guides/narrative-design/narrative-design-trigger.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.
