JavaScript API
Available API methods to programmatically interface with the chat widget
window.Pylon("show")
window.Pylon("hide")
window.Pylon("onShow")
window.Pylon("onShow", function () {
console.log("show chat!");
});window.Pylon("onHide")
window.Pylon("onHide", function () {
console.log("hide chat!");
});window.Pylon("hideChatBubble")
window.Pylon("showChatBubble")
window.Pylon("setTheme", "string")
window.Pylon("onChangeUnreadMessagesCount")
window.Pylon("setNewIssueCustomFields")

window.Pylon("setTicketFormFields")

window.Pylon("setVisibleTicketForms")

window.Pylon("showNewMessage", "string")
window.Pylon("showTicketForm", "string")
window.Pylon("showKnowledgeBaseArticle", "string")


Last updated
Was this helpful?

