alert(message)takes a message built on the bar, so it can carry data such as a price.alertcondition(condition, title, message)takes a fixed message.
strategy.entry and strategy.exit take no alert message. A strategy that must tell another system about a trade calls alert beside the order (example: How to send a webhook when your condition fires).
See Alerts for where each function may be called and when it fires.