Automatically add contact to deal in workflow

I need to implement the same thing, I need to add a contact to a deal when it reaches a certain stage.