Skip to main content

Settings

settings controls the widget's runtime behaviour: polling, throttling, and error-banner timing. Values are numbers (milliseconds or counts).

Plain JavaScript callers may pass numeric strings — they are coerced with a console warning — and all values are clamped to safe ranges.

Example

setConfig({
apiUrl,
accountNumber,
userEmail,
settings: {
fetchIntervalMs: 5000,
fetchAmountPerRequest: 25,
},
});

Default values

KeyTypeDefaultWhat it controls
fetchIntervalMsnumber10000Interval between poll ticks while the panel is open and a conversation exists (ms). Ticks are skipped while the tab is hidden. Clamped to 500–60000 ms. See Polling.
fetchPreviousThrottleMsnumber1000Minimum gap between "load older messages" requests (ms).
fetchAmountPerRequestnumber50Page size when loading older messages.
sendErrorDismissMsnumber5000How long the send-error banner stays visible before auto-dismiss (ms).

Tuning refresh timing

The poll interval is the main lever for how quickly inbound messages appear. Lower fetchIntervalMs for snappier updates, at the cost of more requests. See the Polling guide for the full picture, including how tab visibility and panel state affect refresh.