Melatonin is a chemical that plays an important role in the body. Many dogs have sleep problems that can easily be fixed by adjusting the amount of melatonin that is present within their bodies. This vital chemical helps the internal clock of dogs with insomnia to function the way that it should. The Body Clock