You can use message templates in commands (see E-mail notification, SMS notificationExecuting a web query) that involve sending notifications:

Templates allow  {} and %%. For example, %cameraId%. 

E.g. this macro sends an email of the following format when a water level detection tool triggers:

Subject: Notification: Attention, water level detection is triggered.

Server: Server1
Camera: 10.0.11.36 34.Camera
Time: 20190812T085517.926430