Baby falls asleep soon during breastfeeding

Hi ladies

My Baby is 4 weeks now

We had a rough start on breasts feeding

She was initially on formula

Now I have started breast feeding but whenever I try to breastfeed she feeds for about 5 minutes and then falls asleep

If I put her down she then cries and then if I put her to my breast she sleeps again

Any way to make her stay awake while feeding?