create a deal in CRM when Task in Connect is completed

create a deal in CRM when Task in Connect is completed

I want to automate the creation of a Deal in CRM when a Task in Connect is dragged to Completed. How would I do that?