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 "Hello World" buttons {"button one", "button two", "button three"}
Upon clicking a button, the button clicked is returned:
{button returned:"button one"}