How to configure auto switch when 1 link down to other active link

2 Router.
1 Switch
2 ISP Pt-Pt link

How to configure auto switch when 1 link down to other active link.
What will be the connectivity design (topology) of network devices.

Please suggest.