How to add error descrption in email message body

Hi Team,

we are trying to send email notifications using few filters. requirement is we need to add the error description in the email body. we didnt find any solution in the OpenSearch dashboard monitoring document. could you please help me how to add the message body in the email notification.