Create an alert in the panel and learn about message format

I am currently using Grafana version 8.0 and the data source is monitored through Cloudwatch.
I’m creating an Alert, but can’t I do it in the format I want in the Panel → Alert → Notification → Message section?

For example

{{ define "message" }}
  {{ if gt (len .Alerts. Firing) 0 }}
    {{ len Alerts. Firing }} Self Service Terminals that have not generated transactions within the last 48 hours:
    {{ range .Alerts.Firing }} {{ end }}
  {{ end }}
  {{ if gt (len .Alerts. Resolved) @ }}
    {{ len Alerts.Resolved }} resolved:
    {{ range .Alerts.Resolved }} {{ template "alert" .}} {{ end }}
  {{ end }}
{{ end }}
````Preformatted text`