Algolia Assist
How can I help you today?
I search through your content to help you find answers to your questions, fast.
The Composable Platform, Created for Builders
The most powerful and easy to use APIs to build leading digital experiences.
<div id="searchbox"></div>
<div id="refinement"></div>
<div id="hits"></div>
<script>
const {
searchBox,
hits
} = instantsearch.widgets;
search.addWidgets([
searchBox({
container: "#searchbox"
}),
hits({
container: "#hits"
}),
refinementList({
container: "#refinement",
attribute: "company"
}),
]);
search.start();
</script>
my_index = client.init_index('contacts')
my_index.save_object({
firstname: "Jimmie",
lastname: "Barninger",
company: "California Paint"
})
Insights.register(
appId: "ALGOLIA_APP_ID",
apiKey: "ALGOLIA_API_KEY",
userToken: "user-123456"
)
Insights.shared?.clickedAfterSearch(
eventName: "Product Clicked",
indexName: "products",
objectIDs: ["9780545139700"],
positions: [7],
queryID: "cba8245617aeace44"
)

Front-end