Chat Widget
Overview
This module allows a user to manage multiple conversation threads with different users. A user can click into one of the threads and send or view messages/attachments.


Structure
When this module is added to a page, it has a reusable element inside called
chatwidget. This reusable element contains all of the logic and UI for the module.The module comes with two data types:
t-Threadwill store the threads between userst-Messagewill store the messages and attachments in each thread
All of the threads are displayed in
RepeatingGroup t-ThreadAll of the messages are displayed in
RepeatingGroup t-MessageButton SENDsends a new message andButton SEND ATTACHMENTinPopup Uploadsends an attachment
How to set up
Open the
chatwidgetreusable

Open
Popup Hidden Variables. This popup contains three group variables that are used in the chat widget. For more information on how to usePopup Hidden Variables, click here.var - Website objectstores the app's website object. It is used inButton Search for t-Messageto pull the website's primary color.var - chat threadstores the thread that the user is viewing.var - user viewing chatstores the user information (current user who is viewing the thread and messages).

[OPTIONAL] Modify the data source of
var - user viewing chatto include any filters you need for the user that is viewing the thread

Messenger styles
This chat widget comes with two messenger styles:
iMessage Style

Slack Style

By default, the chat widget uses the iMessage style. You can switch to a different style by opening the chatwidget reusable element, hiding Group M-iMessage, and showing Group M-Slack
Last updated
Was this helpful?