How do you automatically fill in a template from HelloSign in KEAP

I am trying to figure out how I can automate the system to have my contracts automated so as soon as someone pays, the contract will be triggered and autofill and go out. Can you help?