# Creating Script Dialogs

### In script add-ins

Dialogs can be created via the _Resources_ tab in the [script editor](../script_editor).

### In button functions

When you're in [Customize](../../customize) mode and editing a button that's set as a [_Script Function_](../script_functions), a **Resources** tab is visible:

![](https://3597805814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3XSZSwWow0fDf6fQJobd%2Fuploads%2Fgit-blob-1ddb91586d63b9aa7e2316d04759dd98ee11509e%2Fimage063.png?alt=media)

This tab lets you edit the [resources](../resources) associated with the script function. You can edit them in free-form XML if you like, but for dialogs you can also use the in-built dialog editor which is a much easier way of designing dialogs.

To add a script dialog, select the **Resources** tab and then click the **Dialogs** drop-down, as shown above. The **New Dialog** command will prompt you for a name for your dialog (this is the name your script will use to access it), and then display the [dialog editor](../script_editor/editors/dialog_editor).

You can see in the above image that three dialogs have already been defined - **books**, **interests** and **person**. You can edit existing dialogs simply by selecting them from the **Dialogs** drop-down.
