Beautiful, intelligent chatbot for your website. Built with modern AI, designed for Axivora.
Quantum is a fully-featured AI chatbot that integrates seamlessly with your website. It features:
Intent-based understanding. Learns from your dataset. Provides intelligent answers.
Glassmorphic UI. Fully responsive. Dark mode optimized. Matches your brand.
Lightweight (~15KB). Fast loading. Smooth animations. No external dependencies.
Two lines of code. Works with any website. Quick setup. Full customization.
In your HTML <head> section, add:
<link rel="stylesheet" href="css/chatbot.css">
At the end of your HTML <body>, add:
<script src="js/chatbot.js"></script>
Make sure axivora_ai_labs_chatbot_dataset.json is in your root directory.
Here's a complete example of how to add the chatbot to your website:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Awesome Website</title>
<!-- Your existing styles -->
<link rel="stylesheet" href="css/main.css">
<!-- Chatbot styles -->
<link rel="stylesheet" href="css/chatbot.css">
</head>
<body>
<!-- Your website content here -->
<!-- Chatbot script (at the end of body) -->
<script src="js/chatbot.js"></script>
</body>
</html>
Edit the CSS variables in css/chatbot.css:
:root {
--chatbot-primary: #2563EB; /* Main brand color */
--chatbot-accent: #7C3AED; /* Accent color */
--chatbot-cyan: #22D3EE; /* Highlight color */
--chatbot-bg-dark: #0B1120; /* Dark background */
}
Edit the generateResponse() method in js/chatbot.js to add custom intents and responses.
All CSS classes can be overridden:
/* Move chatbot to bottom-left */
.quantum-chatbot {
right: auto;
left: 20px;
}
/* Change size */
.quantum-chatbot {
width: 500px;
max-height: 700px;
}
// Access the chatbot instance
window.quantumChatbot
// Open/close chat
quantumChatbot.openChat()
quantumChatbot.closeChat()
quantumChatbot.toggleChat()
// Send message programmatically
quantumChatbot.elementsendMessage()
// Add custom messages
quantumChatbot.addUserMessage("Hello!")
quantumChatbot.addBotMessage("Hi there!", ["Reply 1", "Reply 2"])
The chatbot fires custom events you can listen to:
// Listen for messages
document.addEventListener('chatbot-message-sent', (e) => {
console.log('User message:', e.detail.message);
});
// Listen for bot responses
document.addEventListener('chatbot-response', (e) => {
console.log('Bot response:', e.detail.response);
});
Edit the generateResponse() method in js/chatbot.js. Add new matchesIntent() conditions for your custom responses.
Yes! Modify the generateResponse() method to make API calls instead of using local logic. Example:
async generateResponse(userMessage) {
const response = await fetch('/api/chatbot', {
method: 'POST',
body: JSON.stringify({ message: userMessage })
});
const data = await response.json();
return data.reply;
}
All messages are stored in this.messages array. You can send them to your backend:
// After each message
fetch('/api/save-conversation', {
method: 'POST',
body: JSON.stringify({
message: userMessage,
response: botResponse,
timestamp: new Date()
})
});
Yes! The chatbot is fully responsive and tested on all devices (320px - 1920px).
Absolutely! The chatbot is production-ready. Just ensure:
Axivora/
├── index.html
├── css/
│ ├── main.css
│ ├── chatbot.css ← NEW
│ └── ... (other styles)
├── js/
│ ├── main.js
│ ├── chatbot.js ← NEW
│ └── ... (other scripts)
├── axivora_ai_labs_chatbot_dataset.json
└── assets/
└── ... (images, logos)
chatbot.js to your js/ folderchatbot.css to your css/ folder<head><body>axivora_ai_labs_chatbot_dataset.json is in your rootFor more help or to discuss integration:
Built with ❤️ by Axivora Labs • Data • Intelligence • Impact