Extend your Discord AI assistant to your website! A modern chat widget that gives your website visitors access to the same AI that helps your Discord community. No separate training needed - your Discord knowledge automatically powers your website support.
Perfect for Discord communities wanting to provide consistent AI assistance across platforms.
- ๐ Discord Extension - Same AI assistant from your Discord server, now on your website
- ๐ง Unified Knowledge - No separate training needed - uses your existing Discord knowledge base
- ๐ฑ Mobile Responsive - Works perfectly on desktop, tablet, and mobile devices
- ๐จ Highly Customizable - 5 built-in themes plus easy color customization
- โก Ultra-Simple Setup - Download one file, configure API key, done!
- ๐ Secure - Uses public API keys that only allow message sending
- ๐ Discord Integration - Optional webhook logging to track conversations
- Discord communities wanting to extend their AI to their website
- Gaming servers with websites that need consistent support
- SaaS products that use Discord for community support
- Content creators with both Discord and website presence
- Any business that has built up knowledge in Discord and wants to share it with website visitors
3 steps to extend your Discord AI to your website:
- Download the
wallu-widget.jsfile to your website's folder - Configure your API key and theme inside the file (takes 30 seconds)
- Add one line to your website:
<script defer src="./wallu-widget.js"></script>
That's it! Your Discord AI is now available on your website. ๐
Experience your future Discord-powered website support:
- Open
demo.htmlin your browser (or visit our demo site) - Chat with the AI - it's the same one helping Discord communities
- See how it would look on your website
- Then download
wallu-widget.jsand set up your own!
- Visit Wallu Panel - Addons
- Create a new public API key (starts with
pk_) - Copy your API key and use it in your chosen installation method
<script>
// Configure your API key BEFORE loading the widget
window.WALLU_CONFIG = {
apiKey: 'pk_your_actual_key_here', // ๐ REQUIRED: Get from https://panel.wallubot.com/addons
theme: 'gaming',
}
</script>
<script defer src="https://wallubot.com/wallu-widget.js"></script>TIP: Ask AI (Claude or ChatGPT) to customize the widget!
Open wallu-widget.js and update the WALLU_CONFIG section:
const WALLU_CONFIG = {
// ๐ REQUIRED: Get this from https://panel.wallubot.com/addons
apiKey: 'pk_your_actual_key_here',
// ๐จ THEME: Pick one that matches your brand
theme: 'discord', // 'discord', 'corporate', 'tech', 'gaming', 'minimal'
// ๐ OPTIONAL: Customize the experience
botName: 'AI Assistant',
welcomeMessage: 'Hey! I\'m here to help with the same knowledge from our Discord.',
position: 'bottom-right', // or 'bottom-left'
// ๐ OPTIONAL: Log conversations to Discord
discordWebhook: true,
};Custom Bot Instructions per Channel:
You can set specific instructions for your AI assistant for different parts of your website by configuring channels in
the Wallu Panel - Channels. This allows you to have different bot behavior on different pages or sections of your site.
Examples:
- Homepage: General welcome and company info
- Support Page: Technical troubleshooting focus
- Sales Page: Product-focused responses
- Documentation: Code examples and technical details
Option 1: No file editing (Recommended)
- Use a plugin like "Insert Headers and Footers"
- Add to Footer section:
<script> // Configure your API key BEFORE loading the widget window.WALLU_CONFIG = { apiKey: 'pk_your_actual_key_here', // ๐ REQUIRED: Get from https://panel.wallubot.com/addons theme: 'corporate', botName: 'Support Assistant' }; </script> <script defer src="https://wallubot.com/wallu-widget.js"></script>
Option 2: Download and configure
- Download
wallu-widget.jsto your theme folder or upload via Media Library - Configure your API key in the
wallu-widget.jsfile - Add this to your theme's
functions.phpor use "Insert Headers and Footers":<script defer src="./wallu-widget.js"></script>
- Upload
wallu-widget.jsto your theme assets folder - Open
layout/theme.liquid - Add before
</body>:<script defer src="{{ 'wallu-widget.js' | asset_url }}"></script>
- Configure your API key in the uploaded file and save
- Go to Settings โ Advanced โ Code Injection
- Add to Footer section:
<script> // Configure your API key BEFORE loading the widget window.WALLU_CONFIG = { apiKey: 'pk_your_actual_key_here', // ๐ REQUIRED: Get from https://panel.wallubot.com/addons theme: 'corporate', botName: 'AI Assistant' }; </script> <script defer src="https://wallubot.com/wallu-widget.js"></script>
- Save changes
- Go to Settings โ Custom Code
- Add new code โ Body - end
- Add this code:
<script> // Configure your API key BEFORE loading the widget window.WALLU_CONFIG = { apiKey: 'pk_your_actual_key_here', // ๐ REQUIRED: Get from https://panel.wallubot.com/addons theme: 'minimal', botName: 'AI Assistant' }; </script> <script defer src="https://wallubot.com/wallu-widget.js"></script>
- Apply to all pages
Option 1: Configure API key via window.WALLU_CONFIG (Recommended)
import { useEffect } from 'react';
export default function ChatWidget() {
useEffect(() => {
// Configure your API key BEFORE loading the widget
window.WALLU_CONFIG = {
apiKey: 'pk_your_actual_key_here', // ๐ REQUIRED: Get from https://panel.wallubot.com/addons
theme: 'discord',
botName: 'AI Assistant',
welcomeMessage: 'Hey! I\'m here to help with the same knowledge from our Discord.'
};
// Load the Wallu widget
const script = document.createElement('script');
script.src = 'https://wallubot.com/wallu-widget.js';
script.defer = true;
document.body.appendChild(script);
return () => {
document.body.removeChild(script);
};
}, []);
return null; // Widget renders itself
}Option 2: Download and configure wallu-widget.js
- Download
wallu-widget.jsto your/publicfolder - Edit the
WALLU_CONFIGsection inside the file to set your API key - Use this component:
import { useEffect } from 'react';
export default function ChatWidget() {
useEffect(() => {
const script = document.createElement('script');
script.src = '/wallu-widget.js'; // Local file with your API key configured
script.defer = true;
document.body.appendChild(script);
return () => {
document.body.removeChild(script);
};
}, []);
return null;
}Option 1: Configure API key via window.WALLU_CONFIG (No downloading & editing wallu_widget.js)
<!DOCTYPE html>
<html>
<head>
<title>Your Site</title>
</head>
<body>
<!-- Your site content -->
<!-- Wallu Chat Widget -->
<script>
// Configure your API key BEFORE loading the widget
window.WALLU_CONFIG = {
apiKey: 'pk_your_actual_key_here', // ๐ REQUIRED: Get from https://panel.wallubot.com/addons
theme: 'discord',
botName: 'AI Assistant',
welcomeMessage: 'Hello! How can I help you today?'
};
</script>
<script defer src="https://wallubot.com/wallu-widget.js"></script>
</body>
</html>Option 2: Download and configure wallu-widget.js
- Download
wallu-widget.jsto your website folder - Open the file and edit the
WALLU_CONFIGsection to set your API key - Add one line before closing
</body>tag:
<!DOCTYPE html>
<html>
<head>
<title>Your Site</title>
</head>
<body>
<!-- Your site content -->
<!-- Wallu Chat Widget -->
<script defer src="./wallu-widget.js"></script>
</body>
</html>// Custom color themes
const themes = {
blue: { primaryColor: '3b82f6' },
green: { primaryColor: '10b981' },
purple: { primaryColor: '8b5cf6' },
red: { primaryColor: 'ef4444' },
custom: { primaryColor: 'your-hex-color' }
};// Customize all text content
new WalluChatWidget({
botName: 'Your Bot Name',
botAvatar: 'AI', // Or emoji like '๐ค'
welcomeMessage: 'Custom welcome message here!',
placeholderText: 'Type your question...',
// ... other options
});-
โ Public keys (
pk_*) - Safe to use in frontend code- Only allow sending messages to the API (just like user messages on Discord)
- Cannot modify bot settings
- Perfectly fine to include in your website code
-
โ Private keys - Never use in frontend
- Allow full access to your bot settings
- Can modify documents, settings, etc.
- Keep these server-side only
- The API has built-in rate limiting
- Consider implementing client-side rate limiting for heavy traffic sites
- Discord webhook logging helps monitor for abuse
- Public keys have limited scope to minimize abuse potential
Track conversations in Discord:
new WalluChatWidget({
// Send logs to staff notification channel configured in https://panel.wallubot.com/settings
discordWebhook: true,
// ... other config
});wallu-web-widget/
โโโ wallu-widget.js # ๐ Ultra-simple one-file installation (RECOMMENDED)
โโโ demo.html # ๐ฎ Live demo page with Discord theme
โโโ index.html # ๐ HTML template with theme presets
โโโ README.md # ๐ This documentation
- Fork this repository
- Modify
index.htmlas needed - Test thoroughly on different devices
- Submit a pull request (optional)
Need help customizing or integrating? Ask Claude or ChatGPT:
"Help me integrate the Wallu chat widget into my [platform] website and customize it to match my brand colors [colors] and change the welcome message to [message]."
Widget not appearing:
- Check browser console for JavaScript errors
- Verify API key format (should start with
pk_) - Ensure proper HTML structure
API not responding:
- Verify your API key is active at panel.wallubot.com
- Check network connectivity
- Look for CORS issues in browser console
Mobile display issues:
- Test responsive design on actual devices
- Check CSS media queries
- Verify touch event handling
Styling conflicts:
- Use more specific CSS selectors
- Add
!importantto custom styles - Check for conflicting CSS frameworks
- Check Wallu Documentation
- Join our Discord Community
- Contact support via the widget itself (meta!)
- Ask Claude or ChatGPT for coding help
We welcome contributions! Areas where you can help:
- Platform-specific integration guides
- Theme templates and presets
- Bug fixes and improvements
- Documentation enhancements
This project is open source and available under the MIT License.
Made with โค๏ธ for Discord communities
Transform your website visitors into engaged community members with AI-powered support that connects directly to your Discord knowledge base.