Welcome back to the community, @Ashwini! The system does not have a feature to automate as needed but if you wish to do it manually then you could use the dynamic data attachment feature that is available within the system. You should be able to learn more about the same in this article:
If you need to automate, you will need to use the REST services for this as outlined in this support article REST Services.