OBS Studio does not directly provide stream alerts. However, you can display alert overlays from third-party alert providers, which is then embedded in the stream using a Browser Source.
To learn how to set up alerts, see Stream Layout Tutorial 2: Alerts & Chat Box.