Post a Comment with a Mention
Make call or use the ConnectApiHelper repository to post a comment with a mention.
You can post comments with mentions two ways. Use the ConnectApiHelper repository on GitHub to write a single line of code, or use this example, which calls postCommentToFeedElement(communityId, feedElementId, comment, feedElementFileUpload).