How do you stay friends after a breakup?

just tell him or her that it would be best to just stay freinds. it would be best if you did it in person