🧪 AI Assistant Widget - Bypass Parameters Test

Test Purpose: This page demonstrates the bypass parameters feature that allows skipping the guest registration modal. The widget can automatically generate guest credentials when bypassName=true is set in the URL.

The bypass parameters feature is useful for scenarios where you want to provide instant access to the chat widget without requiring users to enter their name and email. This is particularly helpful for:

Available Bypass Parameters

Test Case 1: Normal Flow (No Bypass)

Standard widget initialization - user must enter name and optional email

widget.html?assistantId=689af21ee1b7c40d053d014d&assistantName=Tommy.AI&theme=light
Normal Flow

Test Case 2: Bypass Name (Auto Guest)

Widget automatically generates a guest name and skips the registration modal

widget.html?assistantId=689af21ee1b7c40d053d014d&assistantName=Tommy.AI&theme=light&bypassName=true
Auto Guest Mode

Test Case 3: Pre-filled Name (Shows Modal)

Name is pre-filled but user can still modify it before continuing

widget.html?assistantId=689af21ee1b7c40d053d014d&assistantName=Tommy.AI&theme=light&userName=TestUser
Pre-filled Name

Test Case 4: Dark Theme with Bypass

Demonstrates bypass functionality works with different themes

widget.html?assistantId=689af21ee1b7c40d053d014d&assistantName=Tommy.AI&theme=dark&bypassName=true
Dark Theme + Auto Guest

Implementation Notes

When bypassName=true is set, the widget:

  1. Automatically generates a random guest name (e.g., "Guest 5478")
  2. Creates a guest session with this auto-generated name
  3. Immediately connects to the chat without showing the registration modal
  4. Stores the session for future visits (standard behavior)

Production Usage Example

https://widget.tommytalk.ai/widget.html?assistantId=YOUR_ASSISTANT_ID&assistantName=Your+Assistant&theme=light&bypassName=true
Security Note: The bypass feature is ideal for public-facing widgets where anonymous access is desired. For scenarios requiring user identification, use the pre-fill parameters (userName and userEmail) instead to maintain user accountability while streamlining the registration process.