Freshchat Inapp Widget
This is the Javascript API for the freshchat widget (https://www.freshworks.com/freshchat-livechat-software/)
Please use the widget API from https://wchat.freshchat.com as per our documentation. https://developers.freshchat.com
bower install freshchat-widget
For anonymous user
window.fcWidget.init({
token: "WEB_CHAT_TOKEN",
host: "WEB_CHAT_URL"
});
For logged in user
window.fcWidget.init({
token: "WEB_CHAT_TOKEN",
host: "WEB_CHAT_URL",
externalId: "EXTERNAL_ID"
});
To restore user
window.fcWidget.init({
token: "WEB_CHAT_TOKEN",
host: "WEB_CHAT_URL",
externalId: "EXTERNAL_ID",
restoreId: "RESTORE_ID"
});
Setup documentation available here: https://developers.freshchat.com