Skip to main content
The AI Page is a full-page, conversational AI interface that provides an immersive chat experience. Unlike the floating widget, the AI Page takes over the entire viewport, making it perfect for dedicated help pages, support portals, or AI-powered landing pages.

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: /help or /support pages
  • 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:
1

Create Container

Add a container div where you want the AI Page to appear:
<div id="bubblav-ai-page"></div>
2

Add Script Tag

Add the AI Page script with your configuration:
<script
  src="https://www.bubblav.com/ai-page.js"
  data-site-id="YOUR_SITE_ID"
  data-theme="dark"
  defer
></script>
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

AttributeDescriptionExample
srcScript URLhttps://www.bubblav.com/ai-page.js
data-site-idYour unique website identifier812b25b4-02df-40fa-9f68-3a99b372b1a1

Optional Attributes

AttributeDescriptionDefault
data-themeVisual theme (light or dark)light
data-titleHeader text for the chat"What can I help with?"
data-placeholderInput placeholder text"Ask me anything..."

Platform-Specific Instructions

Static HTML

Add to your HTML page:
<!DOCTYPE html>
<html>
<head>
  <title>AI Help Center</title>
  <style>
    body { margin: 0; padding: 0; }
    #bubblav-ai-page {
      width: 100%;
      height: 100vh;
    }
  </style>
</head>
<body>
  <div id="bubblav-ai-page"></div>
  <script
    src="https://www.bubblav.com/ai-page.js"
    data-site-id="YOUR_SITE_ID"
    data-theme="dark"
    defer
  ></script>
</body>
</html>

Styling & Layout

Container Styling

The AI Page fills its parent container. For best results:
#bubblav-ai-page {
  width: 100%;
  height: 100vh;  /* Full viewport height */
  margin: 0;
  padding: 0;
  overflow: hidden;  /* Prevent scrollbars */
}

Theme Options

Choose between two built-in themes: Light Theme:
data-theme="light"
Dark Theme:
data-theme="dark"
The theme controls the color scheme of the entire interface including the chat sidebar, message bubbles, and input area.

Advanced Configuration

Custom Titles

Change the header text:
data-title="How can I help you today?"

Custom Placeholder

Change the input placeholder:
data-placeholder="Type your question here..."

How It Works

  1. Script loads: The ai-page.js loader fetches the latest version
  2. Widget initializes: React component mounts in the container
  3. User sends message: Chat streams responses in real-time
  4. Sources displayed: AI responses include citations from your knowledge base
  5. Conversation history: Chat persists during the session

Best Practices

The AI Page is designed for full-page experiences. Use it on dedicated routes like /help, /support, or /ai-chat.
Choose light or dark theme based on your website’s design for seamless integration.
Customize the title and placeholder to match the purpose of your page (e.g., “Product Support” vs “Sales Assistant”).
Ensure your API endpoint is accessible and properly configured before going live.
The AI Page uses your plan’s message limits. Monitor usage in your dashboard.

Troubleshooting

  • 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)
  • Verify data-api-url points 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
  • Ensure parent container has defined height
  • Check for CSS conflicts from your site’s stylesheets
  • Verify overflow: hidden on the container
  • Test in different browsers
  • 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

FeatureAI PageWidget
LayoutFull-page immersionFloating bubble
Best forDedicated help pagesSite-wide support
Screen usage100% viewportMinimal footprint
User experienceFocused conversationQuick assistance
InstallationPer pageSite-wide
Use both! Install the widget sitewide for quick help, and add the AI Page to your dedicated support page for in-depth conversations.

Next Steps