So you have your sites connected to a mpls cloud. And these sites also have internet where you run a vpn tunnel between the locations.
Now you want to auto use the vpn connection over the internet if the mpls is down?
As helper stated this is normally done via running a routing protocol.. If the mpls goes away that route drops off and you use the less priority route.