All Collections
Core Features
Inbox
Chat widget triggers and parameter options
Chat widget triggers and parameter options
Leo Bassam avatar
Written by Leo Bassam
Updated over a week ago

Messengers are live-chat widgets that can be added to proposals, invoices and wikis or easily embedded into your website.

Advanced triggers:

Below is a list of options which can be used to trigger certain actions such as opening or closing the messenger window.

$plutio_msg.init()

Initiates messenger instance

$plutio_msg.close()

Hides chat window

$plutio_msg.open()

Shows chat window

$plutio_msg.setUser()

Sets user data

$plutio_msg.unsetUser()

Un-sets user data

Parameter options:

uniqueUserId : The unique user identifier can be anything

user object: user: { name: { firstName: '', lastName: '' }, contactEmails: [{ address: '', type: '' // Can be one of 'email', 'personal', 'work' 'alternative' }] // Can be multiple emails in array, contactPhones: [{ number: '', type: '' // Can be one of 'mobile', 'phone', 'work', 'office' ,'personal', 'fax' }] // Can be multiple phone numbers in array, address: { street: '', city: '', zipCode: '', country: '' // 2 letter country code }, birthDay: Date, ... additional fields, can be Number, String, Date or Array of: Numbers, Strings, Date or mixed. }
Did this answer your question?