Skip to main content
SkedX
Help · Flow · APIs & Developers

Make your chat button open web chat for signed-in customers, and tell it who they are

4 min readFor adminsUpdated 17 Nov 2026Verified 30 Nov 2026

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

Your web chat and the SkedX script are already on the site, so the chat button (1) shows on every page.

2Make it open web chat on signed-in pages

On the pages where people are signed in, run this once. The button (1) then opens web chat there, with the chat icon and your brand colour. Use 'menu' instead to offer two choices: Chat here and your WhatsApp (2).
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

Give the chat the person’s name, email and phone (1). Every message carries them, the chat lands on their contact, and the pre-chat form is skipped.
window.SkodeWidget.getVisitor = function () {
  return { name: 'Asha Rao', email: '[email protected]', phone: '+91 90000 00000' };
};

4Sign the details on your server

So the first message can go straight to the person who owns them in your CRM, your server signs the email and phone with your widget's identity secret. Find it in SkedX Flow: Settings → Channels → Web Chat, the widget's code button, Identity secret → Show (1); admins only; How to sign (2) opens this step. Your page then adds signature. Without it the details only fill the contact.
// 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().
The Identity secret block in Install Widget, the secret hidden with its last four characters and when it was renewed: Show (1) and How to sign (2)

5Forget the chat when they sign out

On sign-out, clear the details and forget the chat on this browser (1). The button goes back to what it does on the rest of the site.
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

Prefer a Help link of your own? Call open() (1). The chat may load a moment after the page, so wait for it.
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?

No. The details are a claim, like the pre-chat form. They fill the contact so your team sees who wrote, and nothing more.

What if someone else signs in on the same browser and reset() was never called?

The chat sees a different email or phone from getVisitor() and starts a new chat, so they never see the last person’s messages. Still call reset() on sign-out. Added 23 Nov 2026.

What if I give only a name?

Nothing is sent: a name alone identifies nobody. Give an email or a phone.

Will pages without this code change?

No. The button keeps doing what your web chat settings say.

Which page does my team see?

Every message carries the address of the page it was sent from.

Previous: Build your Flow integration with an AI assistant · All APIs & Developers guides

Did this guide help?

View as markdown

Keep reading

READY WHEN YOU ARE

One record
Start there

Free plan, no card. Five tools replaced in an afternoon; your data stays yours.

pick a slot. we call you, on your clock.
pick a slot.
we call you,
on your clock.

Try SkedX on your own business. Free

Ten seconds to start. Or take 20 minutes with a real person, on your clock.

No card. We only use your details to set you up or call you back.

SetupUnder 5 min
CardNot required
Replaces5 tools
Your dataExport anytime