Privacy and consent
Choose how privacy links and pre-chat consent appear while retaining workspace requirements.
Privacy link and required consent
window.TruComWidgetConfig = {
privacyNoticeEnabled: true,
privacyNoticeUrl: 'https://example.com/privacy',
privacyNoticeCheckRequired: true,
consentText: 'I agree to share these details so the team can help.'
};Requirement precedence
A runtime requirement can strengthen saved workspace consent. Once required for a visitor session, it cannot be turned off by a later client configuration; reset the session if the requirement changes. The backend validates consent when starting a conversation. Required saved pre-chat fields, allowed departments and upload rules remain authoritative.
Hide a widget on a page
hideWidget hides the installation. hideLauncher only hides the default button and allows your custom button to open the panel. Device-specific flags apply to the corresponding device category.
await TruComWidget.configure({ hideWidget: true });
// When the page should show support again:
await TruComWidget.show();Account changes
Call reset on logout or account switching. Session reset is different from deleting a customer or account. It clears this visitor’s displayed history and local draft/outbox state and revokes the active widget session.