API methods
All API methods can be invoked on window.amioWebchat
.
close()
window.amioWebchat.close()
- closes the chat.
init()
window.amioWebchat.init({ /* params */})
- Initializes the chat.
Following customization options can be added to the configuration object of the init()
function:
channelId
- string, required, the Channel ID of your Amio Chat channellogoUrl
- string, URL of your company logo or other picture to be used as an avatartheme
- string, color themestartOpened
- boolean, if set totrue
, the chat will be already opened when the page is loadedlang
- string, selects language. Currently supported languages areen
(English, default) andcs
(Czech)zIndex
- number or string, sets the z-index value for Web Chat's wrapper div. Default value is 100.storageType
- string, allows to choose if session data will be stored in localStorage or sessionStorage. Allowed values are:local
(use localStorage, default),session
(use sessionStorage).
open()
window.amioWebchat.open()
- opens the chat.
Updated 6 months ago