login Sign In

Referrals & AI Chatbot

Grow your user base with the referral program and provide instant help with the AI chatbot widget.

schedule 5 min read update Updated Aug 2026

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

1

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.

2

Share your link

Share your referral link: yourdomain.com/?ref=YOUR_CODE. When someone clicks it, the referral is tracked.

3

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:

MetricDescription
ClicksTotal clicks on your referral link
SignupsUsers who signed up via your link
ConversionsReferred users who upgraded to a paid plan
Total EarnedTotal reward credits earned

Referral Statuses

StatusMeaning
clickedSomeone clicked the referral link (tracked by IP)
signed_upThe visitor created an account
convertedThe 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
info
Database Setup

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.

tips_and_updates
No API Key Required

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.