Ambien, generically known as Zolpidem Tartrate , is a prescription compound primarily prescribed to treat insomnia . This quickly-acting hypnotic works by affecting certain substances in the mind to induce rest . It's typically given just prior to going to bed and is not advised for long-term treatment . Individuals should co