How to you send a success message

yes i wanted to send a user-facing message. I found this post: token message, I decided to go with the data attribute approach. Thank you for your help.