Widget Configuration

Widget configuration can come from the dashboard, the runtime config endpoint, or client-side overrides passed to init or config.

Common Options

OptionTypeDescription
projectIdstringRequired project ID.
beaconIdstringOptional linked beacon ID.
themelight, dark, autoWidget theme.
colorhexPrimary widget color.
docsEnabledbooleanEnable docs and AI answer surfaces.
messagingEnabledbooleanEnable customer messaging.
modeselfService, neutral, askFirstDefault support posture.
enablePreviousMessagesbooleanLet visitors reopen previous conversations.
enableStreamingbooleanStream AI responses when supported.
consentModeimplicit, opt-in, opt-outAnalytics consent behavior.

Display Options

js
RogerIQ("init", { projectId: "prj_...", display: { style: "iconAndText", text: "Support", position: "bottom-right", zIndex: 2147483000 }});

Messaging Options

js
RogerIQ("config", { messaging: { chatEnabled: true, contactForm: { showName: true, showSubject: true, allowAttachments: true } }});

Label Overrides

Use labels to localize or adjust widget copy.

js
RogerIQ("config", { labels: { chatButtonLabel: "Chat with us", messageSubmitLabel: "Send message", docsSearchEmptyText: "No matching articles" }});

Prefer dashboard defaults for stable configuration and config overrides for page-specific behavior.

Ask a question... ⌘I