Avoid BGP link to get saturated

In my company, time ago, i’ve experienced a saturation of a BGP link, and I saw that on grafana monitoring that notified me about the issue.

In this case we had shutdown BGP session to reroute the traffic over another carrier.

Can I automate this process? ( we had shutdown the BGP session, but I’m looking for a solution more soft, e.g. an ACL or a route-map)

Thanks