Search in the Documentation:

Typical usage

Macros can be very useful for editors to that need dynamically changing values (stock price, weather, revenues…) or to interact with users and offer a more compelling user experience (display the current user name or it’s country for instance).