Skip to main content

Auto Reset Channel

Since 0.3.x, on mount the chatbot first checks the channel metadata, then decides:

  • The channel already exists on the backend → it is always restored (the server transcript is replayed), regardless of autoResetChannel.
  • The channel does not exist yet → follow autoResetChannel: the default true dispatches RESET_CHANNEL for a fresh conversation; false skips the reset and preserves the messages you pass via initMessages (useful for demos or client-side restore of a saved conversation).

Channel Settings

Behavior

Channel will be reset on mount (sends RESET_CHANNEL action). This is the default behavior.

Loading chatbot...

Code Example

<Chatbot
autoResetChannel={false}
initMessages={savedHistory}
{...rest}
/>