It is worth noting that family mediation does not totally eliminate the need for solicitors. In fact mediation can work well where each party has the back-up of a solicitor to provide advice between mediation sessions.
When agreement is reached a solicitor will be able to put what you have agreed into a binding legal document called a Consent Order. The Consent Order will then need to be ratified by a family court.
Or if you do not use a solicitor the Court will assist with finalising your agreements in a consent order.