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:
- Display the Kundo widget only if the user accepts the cookie banner.
- 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.
- Go to Account Settings.
- Click on Widget in the left menu.
- Select the "Code to Copy" tab for your chosen widget.