Referrals & AI Chatbot
Grow your user base with the referral program and provide instant help with the AI chatbot widget.
Referral Program
The built-in referral system lets users earn credits by inviting others to the platform. Each user gets a unique referral code they can share.
How It Works
Get your referral code
Every user gets a unique referral code automatically. Find it in the sidebar under Referrals or at /admin/referrals-admin.php.
Share your link
Share your referral link: yourdomain.com/?ref=YOUR_CODE. When someone clicks it, the referral is tracked.
Earn rewards
When a referred user signs up and later upgrades to a paid plan, you earn a reward credit.
Tracking & Stats
The referral dashboard shows:
| Metric | Description |
|---|---|
| Clicks | Total clicks on your referral link |
| Signups | Users who signed up via your link |
| Conversions | Referred users who upgraded to a paid plan |
| Total Earned | Total reward credits earned |
Referral Statuses
| Status | Meaning |
|---|---|
clicked | Someone clicked the referral link (tracked by IP) |
signed_up | The visitor created an account |
converted | The referred user upgraded to a paid plan — reward earned |
Admin Management
Super admins can manage the referral program at /admin/referrals-admin.php:
- View all referral codes and their performance
- See individual referral events with timestamps
- Mark rewards as paid
- Configure reward amounts
- Export referral data as CSV
The referral system requires the config/referral-schema.sql migration. Import it once via phpMyAdmin to create the referral_codes and referrals tables.
AI Help Chatbot
The AI Help Chatbot is a floating widget that appears on all admin dashboard pages. It provides instant answers to common questions about the platform without requiring any API calls.
Features
- Floating button — appears in the bottom-right corner of every admin page
- Topic categories — quick-access buttons for Getting Started, Site Builder, Page Editor, Domains, E-Commerce, Billing, SEO, and Troubleshooting
- Search — type a question and get instant answers from the knowledge base
- Static Q&A — no API calls needed, answers are served from a built-in knowledge base
- Contextual help — answers link to relevant documentation pages
Customization (Super Admin)
Super admins can customize the chatbot at:
- Q&A Management (
/admin/chatbot-qa.php) — add, edit, or remove questions and answers in the knowledge base - Styles (
/admin/chatbot-styles.php) — customize colors, position, and appearance of the chat widget
Embedding on Client Sites
The chatbot widget can also be embedded on client-facing sites for customer support. Configure it in Site Settings → Chatbot Widget to enable it on generated sites.
The help chatbot uses a static knowledge base — it works without any AI API key configured. For AI-powered responses, configure your Gemini or OpenAI key in .env.