The prompt box is used to get input from the user. It has an inbuilt text box where the user can type a value. After typing the data, the user must click on either 'OK' or cancel to continue. The value entered by the user is stored in a variable and the further action can be taken.