Gorgias logo
Gorgias logo

All articles

Set the current page of the ChatUpdated a month ago

This suggestion isn't an official feature of our Chat widget, so our support for it is limited - we recommend that it be implemented by someone with a technical background.


You can change the current page of the Chat with this method:

1<script>
2var initGorgiasChatPromise = (window.GorgiasChat) ? window.GorgiasChat.init() : new Promise(function (resolve) { window.addEventListener('gorgias-widget-loaded', function () { resolve();})});
3
4initGorgiasChatPromise.then(function() {
5 // To show the conversation page.
6 GorgiasChat.setPage('conversation')
7
8 // To show the Automate screen.
9 GorgiasChat.setPage('homepage') // Note that the conversation page is showed if the Automate is disabled.
10})
11</script>
Was this article helpful?
Yes
No