Overview of various input types can be found in article Input Functions.
Example:
def nameInput = api.inputBuilderFactory() .createTextUserEntry("Name") .buildContextParameter() def colorInpput = api.inputBuilderFactory .createOptionsEntry("Color") .setLabel("Pick Color") .addOption("red") .addOption("yellow") .addOption("green") .setLabels(["red": "Red", "yellow": "Yellow", "green": "Green", ]) .buildContextParameter()