# Dialogue

The dialog interaction tool lets you create non-playable characters (NPCs), breathing life into your world!

{% embed url="<https://www.youtube.com/watch?index=3&list=PLbG4lDfPqmZuqSWQTvQ6IbcIGDpkZGt1a&v=JLY1m-cXO4o>" %}

It is very easy to do; first, click on an object in build mode and choose **Interactions > Abilities > Dialogue.**

<figure><img src="/files/kjCUakrueQNoK8akrhxV" alt=""><figcaption></figcaption></figure>

This will open the dialogue builder menu where you can design the interaction. The dialogue is set up as a decision-making tree, where each step is configurable.

<figure><img src="/files/ITTzzLBi9m0EpBsv23Rd" alt=""><figcaption></figcaption></figure>

You can have the player answer questions, check for trait-gated permissions, and many other different options.

<figure><img src="/files/x7Dr7r3Ubra4MEB0ZBBs" alt=""><figcaption></figcaption></figure>

Each block is a different dialogue choice which can be edited in its respective text field. If you want to have more dialogue options, click on the **+** sign each block originates from.

<figure><img src="/files/vJHWN2nNAbXGHdRaq1WI" alt=""><figcaption></figcaption></figure>

Each block can be set to either **continue** to the next block, **restart** the whole conversation, or **end** the conversation. You can set this with the drop-down menu pictured below:

<figure><img src="/files/kg9Yiex4f6r2qJSIip7k" alt=""><figcaption></figcaption></figure>

If the block is set to go to the next block, you then can configure what the block should do.&#x20;

At each step, the NPC character can also send emotes or change dialog box graphics to feel a bit more immersive. Try creating different versions of your NPC in various facial expressions to reflect the dialog!

<figure><img src="/files/92itsCSeTUznjJdiMm2I" alt=""><figcaption></figcaption></figure>

### There are many options besides just a scripted message!&#x20;

You can do things like create prompts for an AI generated response, have the NPC check for tokens or items before moving to the next block, give items or XP, collect an item and give HTTP requests.&#x20;

We'll go through the many dialogue options and explain how they work.&#x20;


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bueno.art/buenoverse/interactions/dialogue.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
