Welcome Message
If you want to send a welcome message when users enter the conversation page, or send a greeting message when users re-enter the Mini Program after a period of time, you can add the following logic to the createAgent function.
For more detailed information, please visit Customizing Welcome and Greeting Messages.