Use the Custom Dialogue script step to grab user input.
If [ Get ( LastMessageChoice ) = //put 1, 2 or 3 here for buttons 1, 2 or 3]
can be used to determine which button in the custom dialog was clicked.
(But note that the input the user types is ONLY collected if they click Button 1.)
Many thanks to all who posted suggestions.