...
Do not use product alerts to tell the user about validation errors – Use in-line alerts instead
Do not use product alerts for information that is directly relevant to the thing the user is doing on that page – Use page alerts instead
Do not use product alerts just for styling regular content (for emphasis or highlighting)
...
Write concise headings and copy
Place product alerts at the top of the page above the main heading or global header bar, as applicable
Remove alert text once the issue is resolved or enough time has passed that the information provided is no longer new
Describe the impact on the user
Use product alerts sparingly to avoid alert fatigue
Use an appropriate status – Please see the Guidelines for Alerts article
Don’t
Stack product alert banners
...