Put the TalkJS chat tag in your template, open conversations from jQuery clicks, and read chat events from e.originalEvent. Tested on jQuery 4.1.