Opening up live chat within your Tolstoy can be a super helpful tool providing immediate support to your users interacting with your Tolstoy 💬

Ready to integrate live chat with your Tolstoy?

Integrating Tolstoy with Intercom, Gorgias, tawk.to, LiveChat, or HubSpot for live chat

If you're using Intercom, Gorgias, tawk.to, LiveChat, HelpScout, Drift or HubSpot, you can simply add this chat feature through your Tolstoy builder:

  1. Within your Tolstoy builder, click on the circled button to open the drop down menu of answer options.

  2. Select Chat.

  3. Open up this new drop down menu to see the available live chat platforms you can connect to.

  4. Choose the live chat platform that you want to use!


    As long as you have the live chat platform installed on your site that you selected, then you're good to go. Users can click on the button and it will automatically open up the live chat.

Integrating Tolstoy with a different live chat platform

If the platform you used isn't mentioned above, then add the following code to your site to enable live chat within your Tolstoy:

**This is an example of the complete code for Drift**:

<script>
// setting the Tolstoy widget to display
window.tolstoyWidgetId = 'bidu9d2bedptm';

// Hide the chat widget - drift **
window.drift.api.widget.hide();

// Catch button click in Tolstoy
window.addEventListener('message', function(message) {
if (message.data.name === 'tolstoyAnswerClicked' && message.data.text === 'Chat with me') {

// show the widget ***
window.drift.api.toggleChat();

// hide the Tolstoy
window.tolstoyWidget.hide();
}
});
</script>
<script async src="https://widget.gotolstoy.com/widget.js"></script>

As this is an example code for Drift, you will need to replace the lines of code in bold (labeled with **) that match the code for your specific platform for hiding and opening the chat widget.

*Note: The text "Chat with me" within the code should match the text you display on the button you use in your Tolstoy to open live chat.

Place this code where you want it to appear on your site!


You are all set!

If you need any additional help, please reach out to support@gotolstoy.com and we're happy to assist you.

Did this answer your question?