First ever rule ,need guidance

Add Jython and the helper libraries with…

Then copy over the script from…

… and configure the metadata in your Items. There’s an example very much like what you ware trying to do.