🤖 Global Trade Expert Widget Demo

📋 How to Use This Full-Page Widget

This is a ChatGPT-like full-page chatbot widget that spans the entire viewport while respecting your website's navbar. Perfect for immersive chat experiences!

Method 1: Direct Embed (Recommended)

Add this script tag to your website:

<script src="https://gupta-tools.web.app/embed.js"></script>

Method 2: Manual Control

Load and control the widget programmatically:

<script src="https://gupta-tools.web.app/embed.js"></script> <script> // Load the full-page widget window.loadChatbot(); // Toggle the widget visibility window.toggleChatbot(); // Remove the widget window.removeChatbot(); </script>

✨ New Features

🎮 Demo Controls

Test the full-page widget functionality:

⚙️ Configuration

The widget is configured to use the following API endpoint:

API Endpoint: https://us-central1-gupta-tools.cloudfunctions.net/chatbot

To change the API endpoint, edit the API_CONFIG.endpoint in the widget.html file.

📁 File Structure

Your widget consists of these files:

🚀 Deployment

Deploy these files to any static hosting service: