Understand what FreiChat is and how it can help you.
What you need to run FreiChat.
Get FreiChat Installed with your website.
Integrating FreiChat with your custom coded website (or an unsupported Script)
Tell FreiChat how to fetch avatars from your custom coded website.