Script that creates a deal when a product record is assigned to a contact

Script that creates a deal when a product record is assigned to a contact

Is there a deluge script that can handle this process? Creating a deal when a product record is added to a contact record.

Thanks