nanorep.floatingWidget.on('ask', function(query) {})
Called after user asked something inside the widget (search and conversational modes)
query: String |
Search query |
nanorep.floatingWidget.on('noResults', function(query) {})
Called when there are no search results (search mode only)
query: String |
Search query |
nanorep.floatingWidget.on('searchResults', function(results, query) {})
Called on incoming search results and when there's no search results as well (search mode only)
results: Array |
Array of results |
query: String |
Search query |
nanorep.floatingWidget.on('escalate', function(channel, answer) {})
Called when user initiated escalation using channeling buttons (search mode only)
channel: Object |
Channel that was escalated |
answer: Object |
Answer of channel |
nanorep.floatingWidget.on('feedback', function(feedbackInfo, answer) {})
Called after user feedback action. Feedback info object contains something like: { positive: false, type: 4, text: '' }
. (search mode only)
feedbackInfo: Object |
Object with feedback information |
answer: Object |
Answer object |
nanorep.floatingWidget.on('showAnswer', function(answer) {})
Called when answer becomes visible (search mode only)
answer: Object |
nanorep.floatingWidget.on('toggleAnswer', function(answer, isOpened) {})
Called when answer becomes visible or invisible (search mode only)
answer: Object |
Answer object |
isOpened: Boolean |
New answer state |
nanorep.floatingWidget.on('activateBlockquote', function(blockQuoteText, answerId, searchQuery) {})
Called when user clicks on "<blockquote>" tag inside the article. Will be emitted only if "Touchpoints → Advanced → Actionable block quotes in answer text" is checked. (search mode only)
blockQuoteText: String |
Quoted text |
answerId: String |
Answer id |
searchQuery: String |
Search query string |
nanorep.floatingWidget.on('activateWidget', function() {})
Called when widget is activated by visitor (search and conversational modes)
nanorep.floatingWidget.on('closeWidget', function() {})
Called when widget is closed by visitor (conversational mode only and "Minimized Widget Mode: Minimized" setting)
nanorep.floatingWidget.on('collapseWidget', function() {})
Called when widget expanded (conversational mode only and "Minimized Widget Mode: Minimized" setting)
nanorep.floatingWidget.on('expandWidget', function() {})
Called when widget expanded (conversational mode only and "Minimized Widget Mode: Minimized" setting)
nanorep.floatingWidget.on('chatSessionStarted', function() {})
Called when live chat session within AI widget started (search and conversational modes)
nanorep.floatingWidget.on('chatSessionEnded', function() {})
Called when live chat session within AI widget ended (search and conversational modes)
nanorep.floatingWidget.on('userAction', function() {})
Called when user makes any activity within the widget. For example: send message, select suggestion, press the button, etc. (conversational mode only)
nanorep.floatingWidget.on('cnfReceive', function(cnf) {})
Called when widget get config. This is the place, where cnf can be patched
nanorep.floatingWidget.on('ticketSent', function() {})
Called when contact form sent
nanorep.floatingWidget.on('BoldChat:preChat', function() {})
Called when preChat form has been shown in a chat
nanorep.floatingWidget.on('BoldChat:postChat', function() {})
Called when postChat form has been shown in a chat
nanorep.floatingWidget.on('BoldChat:chatStarted', function() {})
Called when chat with agent starts (after preChat if it exists)
nanorep.floatingWidget.on('BoldChat:chatFormSent', function(params) {})
Called when postChat or transcript form submit
params.type: String |
transcript | postChat |
nanorep.floatingWidget.on('BoldChat:chatEnded', function() {})
Called when chat ended
nanorep.floatingWidget.on('BoldChat:newMessage', function(entryModel, entryElement) {})
Called when any new message appears in the chat log
entryModel: Object |
Entry model object, like { type: 1, text: 'Entry text', avatar... } |
entryElement: DOM element |
Entry DOM element. Could be used to update entry |