Programmatically naming outputs from the QGIS Modeler?

Hit the ... button, set output file name and save like with usual saving single file. This create a basis for the files names. After hittingSave the Autofill settings should appear.

There you can choose fill with values from any parameter or autofill by numbers, which creates suffix to your output name.

enter image description here


In QGIS 3.8 you can do more complicated file naming in the bulk processor using calculate by expression. Rather than hitting the ... you can do the Autofill... drop down and select calculate by expression and in the expression choose the field with your original file and add the text you want before or after the field.
For example this expression adds degradation_ in front of my input file name (landuse_NY) in the input field:

'C:/Users/BP/Desktop/' || 'Degradation_' || @input ||'.tif'

Resulting in degradation_landuse_NY.tif

And this expression uses a regular expression to take the text after the last underscore in the file name and tack it on to degradation.

'C:/Users/BP/Desktop/' || 'Degradation' || regexp_substr( @input ,'(?:.(?!_))+$')||'.tif'

Resulting in Degradation_NY.tif