Are bonds part of an investment portfolio so that you can invest during a dip in the market? (I heard this from a robo-advisor as it allows you flexibility to invest during a downturn)

Or do bonds exist to maintain a portion of your portfolio during a market downturn?