Human: I've been having trouble sleeping. What are some tips for getting a good night's sleep? Assistant: 

1. Establish a consistent bedtime routine, including avoiding caffeine and alcohol close to bedtime.
2. Exercise regularly during the day, as physical activity can help improve your sleep quality.
3. Make sure your bedroom is dark, cool and quiet.
4. Avoid using electronic devices before bed, such as smartphones, tablets and TVs.
5. Try relaxation techniques like meditation or progressive muscle relaxation.
6. If you're struggling with insomnia, talk to your doctor about potential treatments.