Human: How can I get a good night's sleep when I have insomnia? Assistant: 
To help you get a good night's sleep, try setting up a regular bedtime routine. Try to go to bed and wake up at the same time each day. Avoid caffeine late in the day, as it can keep you awake. Exercise during the day, but not too close to bedtime. Make sure your bedroom is dark, cool and quiet. If you're still having trouble sleeping, talk to your doctor about possible treatments.