It is better to think of this product as helping you get into sleep, not as a strong sleep-inducing drug. The product description says melatonin contributes to reducing the time needed to fall asleep. That is different from forcing sleep for the whole night. The herbal part is there to encourage a more settled evening state, so the formula fits situations where a busy mind makes it harder to drift off.
Because it is meant for use shortly before bedtime, the product is not designed for middle-of-the-night wake-ups. Take one capsule when you are ready to lie down and can stay in bed for a full night. The description warns that it may cause drowsiness, so avoid driving or operating machinery after taking it. If you often wake up during the night or have a more complex sleep pattern, this kind of pre-bed supplement may not address the specific cause; that is worth discussing with a doctor or pharmacist.
It also helps to pair the capsule with basic sleep habits: a consistent bedtime, dim light in the evening, limited screen time and a quiet environment. The supplement is a small part of that routine, not a replacement for it.