/* Floating Chat Icon (Launcher) */ /* Chatbox Container */ /* Chat Header */ /* Chat Messages Container */ /* Chat Footer */ /* Message Bubbles */ /* Ad container inside bot messages */ // On page load, try to get user location // Toggle chat visibility // Close chat when clicking the X // Listen for "Send" button // Listen for Enter key in the input // Send user message to server // Append the user's message // Show a temporary "thinking..." message from the bot // Make AJAX call to your Laravel route (POST /api/v1/search) // Remove "thinking..." message // If the server returned a chat_response let reply = data.chat_response.replace(/\n/g, '
'); // format newlines // If we have results, append them to reply // Append user message to chat // Append bot message to chat (can also pass an ID for easy removal/updates)
No result. Refine your search using other criteria.

Do have anything to sell?

Sell your products online FOR FREE. It is easier than you think!
Start Now!