Moments allows you to open a web view to load any web application inside the ongoing chat.
Nowadays, visitors don’t want to jump between different websites to finish the ordering or booking. Thanks to Moments, you can start and end the process without leaving the chat window.
How it works
-
The visitor receives a rich message.
-
The visitor clicks the webview button.
-
Moments appear, and web applications load.
-
The customer performs activities in the web application.
-
Moments can be closed either by web application with triggering SDK method or manually by the user.
From a developer’s point of view, it’s an embedded website in an iframe that is shown during a chat.
You can specify the height of the web view by setting the height property. Available values:
-
full - 100% of widget size
-
tall - 75% of widget size
-
compact - 50% of widget size
Use Cases
Moments let you open any web application in the conversation. However, you shouldn’t use this for opening complex web applications or websites. This is an action dedicated to particular tasks which are useful in your chat.
Imagine that you’ve added a chatbot to your shoe store. With Moments you can collect user preferences like size and color and show the products tailored to their needs. Sounds good, right?
Examples:
-
Schedule meeting - display an interactive calendar for scheduling a meeting.
-
Shopping cart - gives customers an option to manage the shopping cart and make a deal without leaving the chat window.
-
Reservation system - automate your sales with a chatbot by connecting your reservation system.
-
Authorization - authorize your user and show specific data which shouldn’t be visible for public use.
-
Articles view - share the knowledge without leaving the chat window. You can open your knowledge base or article without opening a new tab.
Supported integrations
Moments in LiveChat
Moments in LiveChat can be triggered only by clicking the button. You can use the same SDK, which is supported by our chat widget.
Moments in Facebook Messenger
Moments are also supported in our Facebook integration. However, to handle communication between an open web view and Messenger, you must use the SDK provided by Facebook.
Moment SDK
Moment SDK is a communication layer between your opened web view and the chat widget. Thanks to that, you can manage your webview from your application side. Click here for further information.
Examples
Date Picker
An app written in Vue.js allows a customer to pick a date from the date picker. It sends a chosen option back to a chat.
The source code is available on github, preview is deployed here.