> For the complete documentation index, see [llms.txt](https://astro-rpa.gitbook.io/astro-rpa-user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://astro-rpa.gitbook.io/astro-rpa-user-guide/astro-studio/tools/dialog-designer.md).

# Dialog designer

Dialog designer creates user dialogs b works with Custom form group elements

![](/files/tNWAt6hOhib7AAuTGhky)

To add new element drag and drop it from Elements panel to your form.

Element properties can be adjusted in Properties panel. The main element property is Name, you may use it to interact with your element.

To create new dialog press New form button. To save your form press Save or Save as button. To open your form press Open button. To test your form design press Test form button.

Dialog file can be used in Custom form element. Just supply Custom element File path property with your dialog template file path. To send data to dialog elements use Data (Form group) property. For example, if you have text edit with name "textbox" you may supply it with date using following code:

```
forminput.TextEdit.Add("textbox", "test text")
```

forminput - variable with type LTools.UserInteractions.UserFormResult, "test text" - is a value to send to element.

To get element value you may use Data (Output group) property. For example, the value of text edit named "textbox" can be received with the following code:

```
formdata.TextEdit["textbox"]
```

Dialog window will keep raising until cross-button is pressed or Close form element is called. To get last clicked button name you may use the following code (cross-button returns null):

```
formdata.Action
```


---

# 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 dynamically by asking a question.

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

```
GET https://astro-rpa.gitbook.io/astro-rpa-user-guide/astro-studio/tools/dialog-designer.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
