What is the AI Page?
The AI Page provides:- Full-page experience: Immersive chat interface that fills the entire browser window
- Conversational AI: Interactive chat with streaming responses
- Source citations: AI responses include links to relevant content from your knowledge base
- Customizable appearance: Light and dark themes to match your brand
- Lazy loading: Optimized performance with code splitting
Use Cases
The AI Page is ideal for:- Dedicated help centers:
/helpor/supportpages - AI-powered landing pages: Interactive product demos or onboarding
- Knowledge base search: Full-page search interface for documentation
- Internal tools: Employee support portals or FAQ pages
- Customer portals: Integrated chat in customer dashboard areas
Installation
Basic Setup
Add the AI Page to your website in two simple steps:The AI Page will automatically create the container if you don’t provide one, but we recommend adding it explicitly for better control.
Configuration Options
Required Attributes
| Attribute | Description | Example |
|---|---|---|
src | Script URL | https://www.bubblav.com/ai-page.js |
data-site-id | Your unique website identifier | 812b25b4-02df-40fa-9f68-3a99b372b1a1 |
Optional Attributes
| Attribute | Description | Default |
|---|---|---|
data-theme | Visual theme (light or dark) | light |
data-title | Header text for the chat | "What can I help with?" |
data-placeholder | Input placeholder text | "Ask me anything..." |
Platform-Specific Instructions
- HTML
- React
- WordPress
- Webflow
- Framer
Styling & Layout
Container Styling
The AI Page fills its parent container. For best results:Theme Options
Choose between two built-in themes: Light Theme:Advanced Configuration
Custom Titles
Change the header text:Custom Placeholder
Change the input placeholder:How It Works
- Script loads: The ai-page.js loader fetches the latest version
- Widget initializes: React component mounts in the container
- User sends message: Chat streams responses in real-time
- Sources displayed: AI responses include citations from your knowledge base
- Conversation history: Chat persists during the session
Best Practices
Dedicated pages work best
Dedicated pages work best
The AI Page is designed for full-page experiences. Use it on dedicated routes like
/help, /support, or /ai-chat.Match your brand theme
Match your brand theme
Choose light or dark theme based on your website’s design for seamless integration.
Provide context
Provide context
Customize the title and placeholder to match the purpose of your page (e.g., “Product Support” vs “Sales Assistant”).
Test API connectivity
Test API connectivity
Ensure your API endpoint is accessible and properly configured before going live.
Monitor message limits
Monitor message limits
The AI Page uses your plan’s message limits. Monitor usage in your dashboard.
Troubleshooting
AI Page not appearing
AI Page not appearing
- Verify the container div with
id="bubblav-ai-page"exists - Check browser console for JavaScript errors
- Ensure your API key is correct
- Confirm the script URL is loading (check Network tab)
API connection errors
API connection errors
- Verify
data-api-urlpoints to a valid endpoint - Check CORS settings on your API
- Ensure your API key is valid and not expired
- Review browser console for specific error messages
Styling issues
Styling issues
- Ensure parent container has defined height
- Check for CSS conflicts from your site’s stylesheets
- Verify
overflow: hiddenon the container - Test in different browsers
Slow loading
Slow loading
- The widget uses lazy loading for optimal performance
- Initial load may take 1-2 seconds
- Subsequent loads are faster due to browser caching
- Check your network connection
Comparison: AI Page vs Widget
| Feature | AI Page | Widget |
|---|---|---|
| Layout | Full-page immersion | Floating bubble |
| Best for | Dedicated help pages | Site-wide support |
| Screen usage | 100% viewport | Minimal footprint |
| User experience | Focused conversation | Quick assistance |
| Installation | Per page | Site-wide |
