To insert a dialog into your script:

Place the cursor on the empty line that will contain the dialog command.

Control-click in the selected area.

Choose the desired dialog style from the Dialogs submenu.
The chosen dialog command is placed in the script text at the cursor insertion point.