Using macos folder colour tagging as a trigger to post into slack

Hey guys, I’m wondering if anyone here knows if this is possible. I would like to post a message into a slack channel when we tag a folder a particular colour in dropbox/finder. The post would display something like “folder/folder/sub-folder” is ready for xxxxx

I’m assuming I would use mac automator to pass some info about the tagged folder in a webhook to the slack channel. I know dropbox and macos pass the folders tagging from local to local but not sure how this is best achieved. Whether I can use dropbox API to gather this data or best done locally on the person machine doing the folder tagging. any ideas or pointers in the right direction would be awesome!