Your chat button sends visitors to WhatsApp, but inside your account area the people are already signed in.
There it can open your web chat and say who is writing.
Transcript · 1:32
On pages where your customers are signed in, the SkedX chat button can open web chat, and say who is writing. Your web chat and the SkedX script are on your website, so the chat button shows on every page. On pages where people are signed in, set launch to web chat. The button then opens web chat there, with the chat icon and your brand colour. Give the chat the person's name, email and phone. Every message carries them, the chat lands on their contact, and the pre-chat form is skipped. Your server signs the email and phone with your widget's identity secret. In SkedX Flow, it is under Settings, Channels, Web Chat, the widget's code button. Only admins can show it. On sign-out, clear the details and forget the chat on this browser. The button goes back to what it does on the rest of the site. Prefer a Help link of your own? Call open. The chat may load a moment after the page, so wait for it.
1Have the chat button on your website
2Make it open web chat on signed-in pages
window.SkodeWidget = window.SkodeWidget || {};
window.SkodeWidget.launch = 'webchat'; // or 'menu': Chat here + WhatsApp
// The button is already on the page? Repaint it now:
if (window.SkodeWidget.setLaunch) window.SkodeWidget.setLaunch('webchat');3Tell the chat who is signed in
window.SkodeWidget.getVisitor = function () {
return { name: 'Asha Rao', email: '[email protected]', phone: '+91 90000 00000' };
};4Sign the details on your server
// On your server (Node.js). email: trimmed, lower case. phone: '+' and its digits, or ''.
const signature = 'v1:' + require('crypto').createHmac('sha256', IDENTITY_SECRET)
.update('v1|' + email + '|' + phone).digest('hex');
// The page: return { name, email, phone, signature } from getVisitor().
5Forget the chat when they sign out
delete window.SkodeWidget.getVisitor;
if (window.SkodeWidget.setLaunch) window.SkodeWidget.setLaunch(null);
if (window.SkodeWidget.reset) window.SkodeWidget.reset();6Or open it from your own button
function openChat() {
if (window.SkodeWidget && window.SkodeWidget.open) return window.SkodeWidget.open();
window.addEventListener('skode:widget-ready', function () { window.SkodeWidget.open(); }, { once: true });
}© 2026 SkedX · Sample data only · Share and link freely · Copying the product or its design is not allowed · Terms
Common questions
Does this sign the person in to SkedX?
What if someone else signs in on the same browser and reset() was never called?
What if I give only a name?
Will pages without this code change?
Which page does my team see?
Previous: Build your Flow integration with an AI assistant · All APIs & Developers guides

