Knowledge Base Widget
You can use this script to open a widget within your website.
Adding a widget directly to an app or website.
.png?table=block&id=0d16d531-a154-4e3b-b79b-b317322af0f6&cache=v2)
Import the Script into Your App
- First, add the following widget script to your app. This could be in your index file.
<script type="text/javascript" src="https://templates.bullet.so/bullet.so/kb/widget.js"></script>
Add a button in your codebase.
- To open the widget, call the function below to open the page with the link of the page that you want to open.
Widget.open('www.example.com',{ width: 500 })
- Example: Calling the function with the button's onclick method.
<button onclick="Widget.open('www.example.com',{ width: 500 })">OpenWeb</button>