Rename JPG’s Based on Portion of Parent and Subfolder and Number them Beginning with 100

Is it possible to make a folder action that runs automatically and only on certain types of files (jpg)? And… add part of the text from the parent folder as well as the subfolder? Is this asking too much? See screenshot for example. (If possible, I would want this to run automatically as jpg files are added to the folder).

The jpgs would stay in each sub folder and begin with number 100 (with a hyphen between because our software is jacked) 2321 Day 1 – 100

Apologies if I’m going about this the wrong way… I’m new here. I have limited experience with Automator and Apple Script, but I’ve managed to scrape together a few successful automations.

enter image description here