This workflow is a one-click dataset generator. It will batch-create the images you specify in a list, name the files appropriately, sort them into folders, and even generate captions for you.
Here's a video showing off the workflow:
Here's an article written on how to use the workflow:
https://civitai.com/articles/3406
This workflow can also be downloaded from here:
https://openart.ai/workflows/serval_quirky_69/one-click-dataset/QoOqXTelqSjMwZ0fvxQ9