When you launch Automator and it throws a File Chooser, just click New Document with the Desktop as the location and choose Application.
The first two actions in my example above came from the File & Folders Library. Just drag and drop them in the order shown on the larger workflow panel. The final action (Run Shell Script) came from the Utilities Library.
In the Run Shell Script action, if the Shell is not /bin/zsh, select that. and change Pass input to as arguments. That ensures that the files from the preceding Get Folder Contents will be fed into the Run Shell Script action. Select and remove all of the default code that appears in the Run Shell Script window. Then paste the following:
: <<"COMMENT"
Rename each file so that it is prefaced by its creation date/time. Foo.ext becomes YYYY-mm-dd_HHMMSS_foo.ext.
The rename occurs in the same folder location. The "${@}" is all of the files passed into this action.
The '#' character is a comment symbol in the Shell.
COMMENT
for f in "$@"
do
# assign YYYY-mm-dd_HHMMSS_ as creation date (%SB) to cdatetime
cdatetime=$(/usr/bin/stat -t '%F_%H%M%S_' -f '%SB' "${f}")
# for testing purposes show the full path of the filename with the prefaced creation date
# ${f:h:r} is the path and ${f:t} is just the original filename
# printf '%s%s\n' "${f:h:r}/${cdatetime}${f:t}"
# rename the original file to its prefaced date/time string
/bin/mv "${f}" "${f:h:r}/${cdatetime}${f:t}"
done
exit 0
Then save the Automator application to your Desktop and then double-click to open a folder chooser from which to select a single folder containing the files you wish to rename. Use a test folder with a few files first to ensure that the result is acceptible for selecting the real folder.