I kno everything put the part that i dont get is that, right when i got to bed what do i do and once i wake up in the middle of the dream what do i do?

Like do u like relax ur whole body till ur relax then repeat something? and once u go to sleep and wake up in the middle of the night do u repeat it again or what im confused