Luxury Car Search Widget Demonstration
This page demonstrates the MPH Car Search Assistant embedded on a website. Specializing in luxury and exotic vehicles, the chat button should appear in the bottom-right corner of this page. Click it to open the chat interface and discover premium automobiles.
Usage
Installation
Configuration
How to Use
The MPH Car Search Assistant provides an AI-powered chat interface for discovering luxury and exotic vehicles. Try asking about high-end car models, exclusive features, or premium price ranges.
Example Luxury Car Queries:
- "Show me Ferrari models under $300,000"
- "I'm looking for a Lamborghini Urus"
- "Find Bentley convertibles with less than 10,000 miles"
- "What's the best Rolls-Royce for chauffeur-driven experiences?"
- "Compare Aston Martin to Maserati sports cars"
- "Show me Porsche 911 models from the last 3 years"
Controls
Use these buttons to interact with the widget programmatically:
Event Log
JavaScript API Reference
Opening the Chat
window.mphChatWidget.open();
Closing the Chat
window.mphChatWidget.close();
Toggling the Chat
window.mphChatWidget.toggle();
Checking if the Chat is Open
const isOpen = window.mphChatWidget.isOpen();
console.log('Chat is open:', isOpen);
Sending a Message Programmatically
window.mphChatWidget.sendMessage("Show me Porsche 911 models");
Listening for Widget Events
// Listen for when the chat is opened
document.addEventListener('mph-chat-opened', function() {
console.log('Chat window was opened');
});
// Listen for when the chat is closed
document.addEventListener('mph-chat-closed', function() {
console.log('Chat window was closed');
});