AI Chat for developers

Updated

If you have a cookie banner, you may want to hide the AI chat until the user has accepted the use of cookies. Here’s an example of how this can be implemented:

Cookie Banner Markup:

 


Show Cookie Banner if Not Previously Accepted:


  1. Display the Kundo widget only if the user accepts the cookie banner.
  2. If the cookie banner was accepted earlier, set isHidden = false to show the widget.

Kundo Widget with onLoad Callback to Update Visibility:


To get the correct code for the Kundo widget, you need access to Kundo's Dashboard.

  1. Go to Account Settings.
  2. Click on Widget in the left menu.
  3. Select the "Code to Copy" tab for your chosen widget.

warning Created with Sketch.