Sending notification based on attachment parameters

I am setting up automatic notification emails when an attachment is automatically added through an API. I need the notification to only go out with particular attachment and am unable to find a way to do so. 

Comments