Before You Start: Whitelist Your Website
Setup Options
There are two ways to get the widget running. The dashboard approach is recommended — it requires no code changes when you update settings.- Dashboard (Recommended)
- Inline Config
Configure everything from the Lua AI admin dashboard and embed a single script with no payload.
1
Whitelist your site
In the admin dashboard, go to Chat Widget → Customization and add your website URL(s) to the allowed sites list. The widget will only load on whitelisted domains.
2
Configure in the dashboard
Set your agent behavior, appearance, and features directly in the dashboard UI — no code required.
3
Add the script
Copy and paste this code right before the closing
</body> tag:4
Test
Refresh your page — the chat button will appear using your dashboard settings.
That’s it! Update appearance or behavior any time from the dashboard — no code deploys needed. ✨
Configuration priority: If you pass options to
window.LuaPop.init({...}), those values override the dashboard settings. To use dashboard settings exclusively, call window.LuaPop.init() with no arguments.Common Setups
Customer Support
Sales Assistant
Embedded Chat (No Floating Button)
Quick Customizations
Change Position
- Bottom Right
- Bottom Left
- Top Right
- Top Left
Custom Colors & Button
Testing Environments
Staging (For Testing)
Production (Live)
Framework Integration Quick Start
React
Vue
More Framework Examples
See integration guides for Angular, Next.js, and more
Troubleshooting
Widget not appearing?
Widget not appearing?
Check these:
- Open browser console for JavaScript errors
- Verify your agent ID is correct
- Ensure script is loaded after DOM is ready
- Check if another chat widget is conflicting
Styling issues?
Styling issues?
Solutions:
- Check for CSS conflicts using browser dev tools
- Try a different position
- Add higher z-index:
Next Steps
Full Configuration
Explore all configuration options
Custom Styling
Match your brand perfectly
Real Examples
See production implementations
Track Events
Monitor chat interactions

