To set up alerts you must create an alert group. When end-users save a query as an alert, they must select an alert group for their alert.
To avoid spam issues, real-time alerts cannot be sent directly through email as for scheduled alerts. Real-time alerts can only be sent to a web service that will handle processing and publishing.