I don't know much about valerian, but I don't think ambien acts in the same way as valerian.
It's not a totally weak hypnotic, but its effective for mild insomnia.
Valerian isn't effective for insomnia at all.
Despite the above mentioned studies finding valerian ineffective as an alternative for benzodiazepines, valerian is used for sleeping disorders, restlessness and anxiety, and as a muscle relaxant. Valerian often seems only to work when taken over longer periods (several weeks), though many users find that it takes effect immediately.[citation needed] Some studies have demonstrated that valerian extracts interact with the GABA receptors. Valerian is also used traditionally to treat gastrointestinal pain and irritable bowel syndrome. However, long term safety studies are absent.
wikipedia