# Options in Dialogue Example

This configuration provides a full example of how to implement [**Options in Dialogue**](/interactions/conversation-properties.md#options-in-dialogue). This allow to create more customizables options and insert them directly within the dialogue.

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

## Config

```yaml
name: '&b&lHegror'
starts_with:
- NPC with id 10
block_movement: true
slow_effect: false
save_conversation_progress: false
start_conversation_radius: 0
end_conversation_radius: 5
requires_permission: false
conversation:
  conversation1:
    dialogue:
      dialogue1:
        text:
        - '{centered}&8&m000                                                           &8&m000'
        - '{centered}#fffa9c&lHegror'
        - '{centered}#dbdbdbWelcome my friend! Welcome to the island!'
        - ' '
        - '                                  %next%'
        - '{centered}&8&m000                                                           &8&m000'
        time: 6
        show_name: false
      dialogue2:
        text:
        - '{centered}&8&m000                                                           &8&m000'
        - '{centered}#fffa9c&lHegror'
        - '{centered}#dbdbdbIf I am not wrong, you are &b%player% #dbdbdbright?'
        - ' '
        - '                    %option_1%'
        - '                    %option_2%'
        - '{centered}&8&m000                                                           &8&m000'
        time: 0
        show_name: false
    options:
      option1:
        text: '&7Yes'
        start_conversation: conversation2
      option2:
        text: '&7No'
        start_conversation: conversation3
    options_in_dialogue: true
  conversation2:
    dialogue:
      dialogue1:
        text:
        - '{centered}&8&m000                                                           &8&m000'
        - '{centered}#fffa9c&lHegror'
        - '{centered}#dbdbdbPerfect! Nice to meet you.'
        - ' '
        - '                                  %next%'
        - '{centered}&8&m000                                                           &8&m000'
        time: 6
        show_name: false
        start_conversation: conversation4
    options_in_dialogue: true
  conversation3:
    dialogue:
      dialogue1:
        text:
        - '{centered}&8&m000                                                           &8&m000'
        - '{centered}#fffa9c&lHegror'
        - '{centered}#dbdbdbThen I must be confusing you with someone else.'
        - '{centered}#dbdbdbPardon for my ignorance!'
        - ' '
        - '                                  %next%'
        - '{centered}&8&m000                                                           &8&m000'
        time: 6
        show_name: false
        start_conversation: conversation4
  conversation4:
    dialogue:
      dialogue1:
        text:
        - '{centered}&8&m000                                                           &8&m000'
        - '{centered}#fffa9c&lHegror'
        - '{centered}#dbdbdbMy wife is the leader around here, so'
        - '{centered}#dbdbdbI suggest you to talk to her inmediately.'
        - ' '
        - '                                  %next%'
        - '{centered}&8&m000                                                           &8&m000'
        time: 6
        show_name: false
      dialogue2:
        text:
        - '{centered}&8&m000                                                           &8&m000'
        - '{centered}#fffa9c&lHegror'
        - '{centered}#dbdbdbShe will inform you about what''s going on.'
        - ' '
        - '                    %option_1%'
        - '                    %option_2%'
        - '{centered}&8&m000                                                           &8&m000'
        time: 0
        show_name: false
    options:
      option1:
        text: '&7Where can I find her?'
        start_conversation: conversation5
      option2:
        text: '&7Thanks'
        start_conversation: conversation6
    options_in_dialogue: true
  conversation5:
    dialogue:
      dialogue1:
        text:
        - '{centered}&8&m000                                                           &8&m000'
        - '{centered}#fffa9c&lHegror'
        - '{centered}#dbdbdbJust follow this main path, there is a building'
        - '{centered}#dbdbdbat the end.'
        - ' '
        - '                                  %next%'
        - '{centered}&8&m000                                                           &8&m000'
        time: 6
        show_name: false
        start_conversation: conversation6
  conversation6:
    dialogue:
      dialogue1:
        text:
        - '{centered}&8&m000                                                           &8&m000'
        - '{centered}#fffa9c&lHegror'
        - '{centered}#dbdbdbBye! Have a nice day.'
        - ' '
        - '                                  %next%'
        - '{centered}&8&m000                                                           &8&m000'
        time: 6
        show_name: false



```


---

# 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://ajneb97.gitbook.io/interactions/full-examples/options-in-dialogue-example.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.
