Add the SDK.
Use the script tag, or install the npm package if your app has a bundle.
Paste the SDK once. Add your app URL. Record or approve the first guide from Studio when you are ready.
The SDK runs in your product. Studio keeps the project settings, keys, and guides.
Use the script tag, or install the npm package if your app has a bundle.
Mentoor only runs on origins you add. Use localhost for testing.
Record one in Studio, or review a suggestion before it goes live.
<script src="https://mentoor.ai/sdk.js"></script>
<script>
window.Mentoor.init({
projectId: 'your-project-id',
publicKey: 'pk_live_public_browser_key',
getRouteContext: () => ({
route: window.location.pathname + window.location.hash,
title: document.title,
}),
})
</script>npm install @mentoor/inline-guide
import { Mentoor } from '@mentoor/inline-guide'
Mentoor.init({
projectId: 'your-project-id',
publicKey: 'pk_live_public_browser_key',
user: currentUser ? { id: currentUser.id } : undefined,
traits: { plan: 'trial' },
getRouteContext: () => ({
route: window.location.pathname + window.location.hash,
title: document.title,
}),
})Tell us where Mentoor should be allowed to run. We create a project, add that origin to the public browser key, and give your agent a short prompt with the right values.
Install the SDK first. You can turn chat, guides, learning, and review settings on or off from Studio.
Add Mentoor to your app shell. Use Studio when you want to publish the first guide.