openhouse-ai-sdk v1.7.0
!> The current version is a work-in-progress and will continue to be updated.
Introduction
The OpenHouse.AI SDK is used to integrate a website with OpenHouse.AI's analytics.
Note that this SDK requires JavaScript to be enabled in the browser.
Getting Started
Before you start, you will need to obtain your content space id from OpenHouse.AI. If you would like to integrate with a testing environment, you can use sdkTestSpaceId
.
Choose one of the following ways to set up the SDK:
Script Tag
Add the following code snippet in the <head>
section of the HTML pages that will use the SDK:
<script src="https://cdn.openhouse.ai/sdk/v1/openhouse-ai-sdk.js?contentSpaceId=<your-content-space-id>"></script>
This will add openhouseAiTools
to the window and can be used directly once it has loaded.
NPM
Run npm install openhouse-ai-sdk --save
. Once installed, initialize the OpenHouseAi Tools with a content space id and it is ready to be used!
import { initializeOpenHouseAiTools } from 'openhouse-ai-sdk`;
export const openhouseAiTools = initializeOpenHouseAiTools('<your-content-space-id>');
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago