Create one folder in your dam. Upload assets over there. Map a workflow (this is the custom wf) to that path so that when any new asset uploaded in that folder it will trigger your workflow. Inside workflow your can write your code for moving that asset to the particular folder based on your business logic. Let me know if you need more in depth details.