Product
Add Pointer’s copilot and answer engine to your application.
What you’ll get
When you integrate Pointer into your product, your users will have access to:
- AI copilot: an intelligent assistant that can help users navigate your app, understand features, and complete tasks
- Answer engine: instant answers to user questions based on your product documentation and knowledge base
Prerequisites
- A web application (any framework or vanilla JavaScript)
- Node.js 16.0+ (for React/npm-based projects)
- A Pointer project with your project ID
Installation
Perfect for React and React-based frameworks (e.g. Next.js, Remix, Vite, etc.).
Install the Pointer SDK
Get your project ID
- Login to the Pointer dashboard
- Create a new project or select an existing one
- Copy your project ID from the setup section
Add the PointerProvider
Wrap your application with the PointerProvider
component. Place it as high as possible in your component tree.
Framework-specific setup
Verify the integration
Start your development server and look for the Pointer widget in the bottom-right corner of your application. You can test the connection in your project settings.
Perfect for React and React-based frameworks (e.g. Next.js, Remix, Vite, etc.).
Install the Pointer SDK
Get your project ID
- Login to the Pointer dashboard
- Create a new project or select an existing one
- Copy your project ID from the setup section
Add the PointerProvider
Wrap your application with the PointerProvider
component. Place it as high as possible in your component tree.
Framework-specific setup
Verify the integration
Start your development server and look for the Pointer widget in the bottom-right corner of your application. You can test the connection in your project settings.
Perfect for any non-React application (e.g. Vue, Angular, Svelte, etc.).
Get your project ID
- Login to the Pointer dashboard
- Create a new project or select an existing one
- Copy your project ID from the setup section
Add the script tag
Add the Pointer script to your HTML file, ideally right before the closing </body>
tag:
Framework-specific examples
Verify the integration
Reload your application and look for the Pointer widget in the bottom-right corner. You can test the connection in your project settings.
Best practices
Allowed origins
Always configure allowed origins in your project settings to prevent unauthorized use of your project ID.
Performance
- Pointer automatically lazy loads to minimize impact on your app’s initial load time.
- Place the
PointerProvider
as close as possible to the components that need it, but high enough to cover your entire app.
User experience
- Pointer works best when it has context about your app. Consider adding knowledge sources to help the AI understand your product.
- Use the playground to customize the widget’s appearance to match your brand.
Advanced configuration
Conditional loading
You might want to load Pointer only in production or for specific user segments:
Custom triggers
If you want the Pointer widget to appear on a specific button, follow these steps:
- On the playground page, toggle “Set custom trigger” to true and set the trigger ID.
- In your code, set the
triggerId
in thePointerProvider
component. - In your app, add a button with the ID of the trigger ID.
The Pointer widget will not be visible by default, but will appear when the button is clicked.
Next steps
After successfully integrating Pointer into your product:
Add knowledge sources
Upload your product documentation, help articles, and other relevant content in the knowledge section to train your AI assistant.
Customize the experience
Use the playground to customize your widget’s appearance, behavior, and responses to match your brand and user needs.
Set up analytics
Monitor how users interact with your AI assistant in the analytics dashboard to identify common questions and improve your knowledge base.
Configure team access
Invite team members and set up appropriate permissions in your team settings to collaborate on your AI assistant.