AppleScript can display dialogs and alerts to the user. Dialogs are for optionally requesting user input.
display dialog "Hello World"
display alert "Hello World"
You can customise the buttons of either using buttons and passing a list of text.
display dialog "Hell...