Informativos

Ano 1 – Edição 7 – Fevereiro 2025

Ano 1 – Edição 6 – Janeiro de 2025

Ano 1 – Edição 5 – Dezembro de 2024

Ano 1 – Edição 4 – Novembro de 2024

Ano 1 – Edição 3 – Outubro 2024

Ano 1 – Edição 2 – Setembro 2024

Ano 1 – Edição 2 – Setembro 2024

HELP: custom chat button ================== - provide a chat button to open the chat - use &chatbubble=false so that chat button will disappear when chat window is closed Example:- use the chat button from sapios ================================ - use following method in javascript - use &openit=false,so it does not open on load of page openChat('https://live.sapios.com.br/webchat/?t=48b758ca-bdaf-4b50-90ed-18bfa673838c&openit=false'); //this is to make sure the window does not cover the whole screen setContainerHeight("85px") For mobile just append /mobile in url after /webchat ===================================================== Example:- Desktop openChat('https://live.sapios.com.br/webchat/?t=48b758ca-bdaf-4b50-90ed-18bfa673838c'); Mobile openChat('https://live.sapios.com.br/webchat/mobile?t=48b758ca-bdaf-4b50-90ed-18bfa673838c'); Handle notifications ======================== window.onmessage = function (e) { if (e.data == 'closedSapiosChat') { //dont remove this setContainerHeight("85px") } else if (e.data == 'openedSapiosChat') { //dont remove this setContainerHeight("100%") } else if (e.data && e.data.eventName === 'receivedMesageFromBot') { //console.log('receivedMesageFromBot ' + JSON.stringify(e.data.eventData)) } else if (e.data && e.data.eventName === 'receivedMesageFromUser') { //console.log('receivedMesageFromUser ' + JSON.stringify(e.data.eventData)) } else if (e.data && e.data.eventName === 'receivedChatAction') { //console.log('receivedChatAction ' + JSON.stringify(e.data.eventData)) } };