Automate PDF book naming using Hazel

I want to name a bunch of PDF documents that are either reports or books and I want to do so automatically using ISBNs where they are available. My plan is to then file them into DEVONthink for easy access and to my hard drive.

How do you go about batch naming a bunch of files with missing metadata and what would be the best way to figure out this problem?