Skip to main content

Search Panel

🧩 Overview

The ai12z Search Panel allows seamless integration of AI-powered search capabilities which will show the suggestions with concise information.

📖 How to use

  1. Implement the Component
    You can use the <ai12z-search-panel> tag to include the search panel component in your HTML. This tag supports customization through several attributes.
PropertyTypeRequiredDescription
data-keystring✔️API key from your ai12z Agent settings
data-modestring✔️Server to use dev or prod or local
redirect-urlstring✔️The URL to redirect the user to after a search is submitted.
placeholderstringAllow us to customize the placeholder text in the searchbar

💻 Example Code

<html>
<head>
<script
type="module"
src="https://cdn.ai12z.net/pkg/ai12z@latest/dist/esm/library.js"
></script>
<link
rel="stylesheet"
href="https://cdn.ai12z.net/pkg/ai12z@latest/dist/library/library.css"
/>
</head>
<body>
<div class="search-panel">
<ai12z-search-panel
data-key="your_api_key_here"
data-mode=""
placeholder="AI search"
redirect-url="/searchpage"
></ai12z-search-panel>
</div>
</body>
</html>