Hyperlink type effect in sparkchat

I’m currently trying to modify the spark plugin to create a feature that allows users to enter certain keywords which will automatically create a hyperlink type text in the chat, allowing other chat participants to click on it and trigger a method of my choice.

I’m new to this and unsure how to go about doing it. I’ve traced to ChatTranscript which is where the new message is being added to the history. But how can I go about modifying the actual message in the chat window to change it into a Hyperlink?