How to change character at runtime?

I am currently making a module in unity which is integrated in other software, it is using an api to trigger certain animations on the unity character. Thus I need to keep the same script and functionalities in my game while changing the character at runtime. How can I do this?