Skip to main content

REFERENCE

SDK Demos

How to use @asgard-js/core and @asgard-js/react, with demos you can try on the page.

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).
  1. Code Example​

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

Ready to get started?

Want to see how Asgard fits your team? Talk to us.

Contact us