Using Live Chat¶
What the customer sees¶
The widget¶
On every page where the widget is switched on, a round blue chat button sits in the bottom right corner. A click opens the chat window:
- the title Live Chat with your availability note below it,
- a status line with Online or Offline and the name of the support agent,
- the messages,
- a field for typing, an attach button and Send,
- the buttons New (start a new conversation) and a cross that minimises the window.
The widget is inserted into the page as one block of HTML, CSS and JavaScript before the closing </body> tag. It brings its own styling and does not use your theme's colours. It is dark by default and switches to a light look when the visitor's system is set to a light colour scheme. All widget texts are in English and fixed in the code.
Starting a chat¶
- Guests with the pre-chat form on. The widget shows Before we start with the fields Your name and Your email. After Start Chat, the conversation is created.
- Guests with the pre-chat form off. The conversation is created as soon as the widget is opened.
If a welcome message is set, it appears as the first message from support.
The browser remembers the conversation in its local storage and in a cookie named livechat_conversation_id that lasts 7 days. The customer can change pages or come back later and continue the same conversation in the same browser. The widget also remembers whether it was open and opens again by itself on the next page.
New forgets the current conversation in that browser and starts a new one. The old conversation stays in the admin area.
Logged-in customers¶
The widget knows whether the visitor is logged in and skips the pre-chat form for logged-in customers. The chat addresses that create conversations and store messages do not load the Paymenter session, so they cannot tell who is logged in. This has two effects:
- A conversation is not linked to the customer's account. In the admin area it appears as Guest.
- While Require pre-chat form for guests is on, the server asks for a name and an e-mail address that the widget does not send for a logged-in customer, and the chat does not start.
Warning
If logged-in customers should be able to chat, for example with Show widget on dashboard, set Require pre-chat form for guests to No. Ask for the customer's e-mail address in the chat if you need it.
Sending messages and files¶
- A message can have up to 2000 characters.
- With uploads allowed, the customer can attach one file per message, with or without text. Allowed types:
jpg,jpeg,png,gif,webp,pdf,txt,doc,docx,zip. - A file above the limit is refused in the browser with the message "File too large. Maximum size is … MB.". The server checks size and type again.
- Images (
jpg,jpeg,png,gif,webp) are shown as a preview in the chat. Other files are shown as a link with the file name.
Receiving replies¶
While the widget is open, it asks the server for the whole conversation every 2.5 seconds. It does not use websockets. When the widget is minimised, it stops asking, and new replies appear when the customer opens it again.
- Replies show the name of the admin who wrote them. The welcome message is shown as Support.
- A short sound plays when a new reply arrives.
- While an admin types, the widget shows "… is typing". The indicator ends 10 seconds after the admin's last keystroke or when the reply is sent.
Rating¶
When you archive a conversation, the customer's widget switches to How was your experience? the next time it refreshes. The customer picks 1 to 5 stars, can add feedback of up to 500 characters, and clicks Submit Rating. The widget shows Thank you! and then resets to an empty chat.
The rating screen is also shown when the customer clicks New on an archived conversation that has no rating yet.
Working in the admin area¶
The conversation list¶
Open Support, then Chat Conversations. The list shows the newest conversation first, 25 per page (50 and 100 are available).
| Column | Content |
|---|---|
| ID | Number of the conversation. |
| User | The account's e-mail address if the conversation is linked to an account, otherwise the guest's name with the e-mail address in brackets, otherwise Guest. |
| Status | open for every new conversation. |
| Rating | The stars the customer gave, or a dash. |
| Created at | When the conversation was started. |
| Updated at | Hidden by default. You can switch it on in the column menu. |
The filter Open limits the list to open conversations. Archived conversations are not shown in this list.
The list does not refresh by itself and does not mark conversations with new messages. Use the Discord notification to learn about new messages.
Replying¶
Click a conversation to open Conversation #….
- The header shows the guest's name and e-mail address, the rating with feedback if there is one, and Online or Offline according to your support hours.
- Customer messages are on the right in blue, support messages on the left. Each has the sender and the time. Attachments are shown as an image preview or as a link.
- Type into Reply and click Send Reply. A reply can have up to 2000 characters. It cannot have an attachment.
- The page loads new messages every 4 seconds.
Archiving and deleting¶
Both buttons are at the top of the conversation page and ask for confirmation.
- Archive sets the status to
archived. The conversation leaves the list and the customer is asked for a rating. There is no button to bring it back. - Delete removes the conversation from the list for good. Its messages stay in the table
ext_livechat_messagesand its attachment files stay instorage/app/livechat-attachments/.
Automatic behaviour¶
The extension has no scheduled task and sends no e-mails.
Welcome message¶
Every new conversation gets the text of Welcome message (first reply) as its first support message, if the setting has a saved, non-empty value.
Discord notification¶
With a webhook URL in Discord Webhook (optional), every customer message, with or without attachment, is posted to Discord as an embed titled New Live Chat Message. It contains the sender (Guest, or the account's e-mail address for a message linked to an account), the conversation number and the first 1800 characters of the message. Admin replies and the welcome message are not posted. If Discord cannot be reached, the error is ignored and the message is still saved.
Where the data is stored¶
| What | Where |
|---|---|
| Conversations, guest name and e-mail address, status, rating and feedback | Table ext_livechat_conversations |
| Messages, attachment path and original file name | Table ext_livechat_messages |
| Attachment files | storage/app/livechat-attachments/ on Paymenter's local disk |
| The customer's current conversation number | The customer's browser (local storage and a 7-day cookie) |
Warning
The chat addresses under /livechat/ work without a login. A conversation is identified only by its number, and an attachment only by the number of its message. Anyone who knows or guesses a number can read that conversation or open that file. Tell customers not to send passwords or other secrets in the chat.