The wiring of a hot tub is a difficult process to understand, especially if you are unaware of the equipment and devices used in a spa. There are a number of things to consider before having your hot tub wired and the person you choose to perform the wiring needs to be reliable. In almost all jurisdictions, the wiring of a hot tub must be completed by a licensed and insured electrical contractor (electrician). Just in case you aren't convinced, here are a few reasons explaining why the wiring cannot be performed by the owner or an unlicensed professional:
That said, unless you are planning to get your electrician's license or you already have one but need to understand the process better, there is really no reason to spend time trying to figure it out. Fortunately, for those of you who are trying to figure out the wiring process, for whatever reason, we have provided you with a diagram which should help to explain how the wiring works.

Hopefully, the diagram above will help you understand the process fully. It is difficult to understand the cycle fully and there are many things you need to know before you even touch the wiring in your hot tub. For the most part, it is best to leave this part of the hot tub installation to a licensed professional. Messing with the wiring of your hot tub cannot only result in personal bodily harm, but it can also completely damage your hot tub beyond the point of repair.
There are a number of licensed professionals competing for your business. It will cost at least $200, but knowing it has been done correctly is worth the price. Do yourself a favor and leave the professionals to do their job.