Hi,
you can go to Configuration -> Event Configuration. There you can edit built-in templates.
and insert whatever this script returns into resulting message.
Also you can add new event templates from there (either right click anywhere and select "new template", or by pressing plus sign in top right corner).
Best regards,
Victor