Getting Started
Before getting started, ensure that you’ve had a chance to review the Quickstart prerequisites. Once you have your API key, you can integrate Bonsai AI Search Bar into any website in just a few minutes using our web component.If you need the full search experience with AI summary and product results,
use the Bonsai Search Web Component instead.
use the Bonsai Search Web Component instead.
Quick Installation
Use this minimal 2-step setup to render Bonsai Search Bar on your website.Install the script
Add the Bonsai Search Bar
<script> tag to your HTML page. Place this in the <head> section, or before the closing </body> tag.
This ensures the script is loaded before the component is rendered.Test the search bar with a query
Not working? Check the Troubleshooting guide for common issues.
Next Steps
Configuration
Full attribute reference and default values for the Search Bar component.
Advanced Styling
::part(...) usage and full parts reference for Search Bar customization.