I have seen many times
Elavil prescribed to help people sleep, its main side-effects are drowsiness
and sedation due to its anti-cholinergic activity, though not as potent as insomnia meds like benzodiazepines, ambien, or Lunesta, it is comparable in effectiveness in relieving insomnia to medications such as Seroquel or clonidine, which is also prescribed off label for insomnia.