CRM + AI Email Marketing
Complete guide to the Convrly CRM and its built-in AI Email Marketing studio: installation, leads, the calling screen, customers and payments, reports, ROAS, team roles and email campaigns. Product overview
Overview
The Convrly CRM is a self-hosted web application (PHP 8 + MySQL) that manages your whole sales cycle: leads come in from ads and forms, your team follows them up by phone, WhatsApp and email, converted leads become customers with payments and receipts, and every rupee of ad spend is tied back to revenue.
AI Email Marketing ships alongside the CRM on the same server and lets you write, design and send email campaigns with AI, then track opens and clicks.
| Area | What it covers |
|---|---|
| Leads | Pipeline stages, scoring, assignment, follow-ups, My Day, calling screen, recycle bin |
| Capture | Lead webhook, CSV import (Meta Ads exports), public enquiry form, UTM tracking |
| Customers | Customer records, products/plans, payments, instalments, discounts, receipts |
| Money | Ad spend, other income, expenses, monthly reports, funnel & ROAS |
| Team | Admin / manager / staff roles, activity log, password policy |
| AI Email | AI email writer, campaigns, contacts, drip sending, analytics, unsubscribes |
Requirements
| Component | Requirement |
|---|---|
| Hosting | Linux VPS or shared hosting (Hostinger, cPanel or similar) — 1st year included with your purchase |
| PHP | 8.1 or higher with PDO MySQL and cURL |
| Database | MySQL 5.7+ or MariaDB 10.3+ |
| HTTPS | SSL certificate on your domain (forced automatically by .htaccess) |
| Cron | One cron job every minute for email sending |
| Email service | A Brevo account (free tier: 300 emails/day) with a verified sender |
| AI (optional) | An Anthropic API key for the AI email writer |
We install and configure everything for you as part of your purchase. The steps below are for reference and for re-installing on a new server.
Installation
- Create a MySQL database and user in your hosting panel (hPanel → Databases → MySQL Databases).
- Upload the CRM files to your web root (for example
public_html/orpublic_html/crm/). Make sure the hidden.htaccessfile is uploaded. - Copy
config.local.sample.phptoconfig.local.phpand fill inDB_HOST,DB_NAME,DB_USER,DB_PASS. The CRM refuses to start without this file. - Generate a webhook token with
openssl rand -hex 32and paste it intoWEBHOOK_TOKENin the same file. - Make sure the
data/anduploads/folders are writable by PHP (755). - Log in as admin. You are sent straight to
migrate.php— press Run migration. It only adds tables and columns, never deletes anything, and is safe to run more than once. - Open Staff and create your team (see Team & roles).
Verify: opening https://yourdomain.com/config.local.php in a browser must return 403 Forbidden.
First-time setup checklist
- Settings → Payment & Email Setup: add your email service key, sender email and sender name, and your payment links.
- Settings → message templates: edit the WhatsApp and email templates your team sends from each lead (course/product details, “we tried calling you”).
- Products / plans: add what you sell with its duration and price (the “Courses” page).
- Staff: add every team member with the right role.
- Automatic lead capture: connect your ads and website forms to the lead webhook.
- Ad Spend: start recording what you spend per campaign so ROAS works from day one.
Lead pipeline & stages
Every lead has a stage. The default funnel order is:
| Stage | Meaning |
|---|---|
| New Lead | Just arrived, nobody has contacted them yet |
| Contacted | A team member has spoken to or messaged them |
| Demo Confirmed | They agreed to a demo / meeting / consultation |
| No Response | Tried, could not reach |
| Demo Attended | They showed up |
| Demo No-Show | They booked but did not show up |
| Enrolled | Converted to a paying customer |
| Not Enrolled | Lost — a lost reason is recorded |
| Follow-up | Interested, needs another contact later |
Change a stage from the lead page or the calling screen. Every change is written to the lead's activity history with who changed it and when.
Lead fields
- Full name and WhatsApp/phone (required)
- Email, state, current status
- Interested product / course
- Desired start date
- Assigned team member
- Source and UTM fields (source, medium, campaign, content, term)
- Follow-up date
- Lost reason when marked “Not Enrolled”
Lead scoring & My Day
Each open lead gets a score and a Hot / Warm / Cold band, calculated from its stage, how complete its contact details are, how engaged it has been and how old it is. The rules are plain, readable code in the configuration, so they can be tuned to match what actually predicts a sale in your business.
My Day
My Day is each team member's call list for today, split into four buckets:
- Overdue — follow-up date has passed
- Due today — follow-up date is today
- New, never contacted — fresh leads with no follow-up date
- Next 7 days — what is coming up this week
Each row shows the score, stage and due date, with Call and WhatsApp buttons. Staff see only their own leads; admins and managers can filter by team member.
Calling screen
The Dialer page turns your lead list into a focused calling session — one lead on screen at a time.
- Filter by stage or search by name/number.
- Tap Call — on a phone this opens the dialer with the number filled in.
- After the call, choose the call outcome, write notes, set a follow-up date and optionally move the stage.
- Press Save & Next → to log everything and jump to the next lead, or Skip.
From the same screen you can send a pre-filled WhatsApp message (“we tried calling you” or product details) with one tap.
Need to dial hundreds of numbers back-to-back? Use the Auto Dialer Android app, included free with the CRM.
WhatsApp & email from a lead
Every lead page has quick actions to contact the lead:
| Action | What happens |
|---|---|
| Call | Opens the phone dialer (click-to-call) |
| WhatsApp — product details | Opens WhatsApp with your “product details” template, personalised with the lead's name and product |
| WhatsApp — we tried calling | Opens WhatsApp with your missed-call template |
| Sends an email from your verified sender. The recipient is always the email on the lead record. |
Templates support the placeholders {name} and {course} (the product the lead is interested in). Edit them in Settings.
Emails are throttled to 60 per user per hour to protect your sender reputation. 10-digit phone numbers are treated as Indian (+91) numbers for WhatsApp links — include the country code for other countries.
Importing leads (CSV)
Leads → Import accepts a CSV file — a Meta Ads Manager lead export works as-is.
- Columns are matched automatically: Name, Phone / WhatsApp / Mobile / Contact number, Email, State.
- At least a name and a phone column are required.
- Phone numbers are normalised, so
+91 93154-57961and9315457961are recognised as the same person and duplicates are skipped. - Choose a team member to assign all imported leads to, or leave them unassigned.
Automatic lead capture (webhook)
Send leads from your website, Zapier/Make, Meta Lead Ads or Google Lead Forms straight into the CRM. Your webhook URL is shown under Settings → Automatic lead capture:
POST https://yourdomain.com/webhook_lead.php?token=YOUR_WEBHOOK_TOKENThe token can also be sent in an X-Webhook-Token header. JSON and form-encoded bodies are both accepted. Recognised fields:
| Field | Accepted names |
|---|---|
| Name | name, full_name, or first_name + last_name |
| Phone | phone, whatsapp, mobile, phone_number |
email | |
| Other | state, current_status |
| Attribution | utm_source/source/platform, utm_medium/medium, utm_campaign/campaign/campaign_name, utm_content, utm_term |
Meta's nested field_data format is flattened automatically. Example:
curl -X POST "https://yourdomain.com/webhook_lead.php?token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Riya Mehta","phone":"+919876543210","email":"riya@example.com","utm_source":"meta","utm_campaign":"oct-leadform"}'| Response | Meaning |
|---|---|
| 201 created | New lead added and auto-assigned |
| 200 duplicate | Same phone already exists — merged into the existing lead |
| 422 rejected | Missing name or phone |
| 401 unauthorised | Wrong or missing token |
| 429 rate limited | More than 300 requests per hour from one IP |
New leads are assigned round-robin to the team member with the fewest open leads. Every webhook call is logged.
Public enquiry / enrolment form
The CRM includes a public form (enroll.php) you can link from ads and your website. It collects name, date of birth, gender, email, WhatsApp number, address, state, PIN code and the product chosen, optionally a payment screenshot, then sends the person to the payment page.
- Protected with a CSRF token, a hidden bot trap and a limit of 5 submissions per IP per hour.
- Duplicate phone numbers are detected.
- UTM parameters in the link are saved with the lead for attribution.
https://yourdomain.com/enroll.php?utm_source=meta&utm_medium=cpc&utm_campaign=oct-cold
Deleting & restoring leads
Deleting a lead moves it to the Recycle Bin instead of destroying it. From there you can restore one lead, restore all, or empty the bin permanently. “Delete ALL leads” requires typing a confirmation phrase, and permanent deletion needs a second typed confirmation.
Customers
When a lead buys, create a customer record (the “Students” section). A record holds:
- Full name, date of birth, gender, WhatsApp number, email
- Full address, district, state, PIN code
- Optional guardian / parent names and qualification
- Product / plan (“course”) and batch
- Total fee — auto-filled from the product price, editable
- Discount with a reason (scholarship, offer…)
- Status: Active, Completed, Dropped or Revoked
- Optional ID number (masked to the last 4 digits everywhere except the edit form)
Import existing customers from CSV (the header row is skipped and duplicates on phone are ignored), and export them anytime. Dropped and revoked customers are listed separately with what they paid and what was written off.
Payments, instalments & receipts
Each customer page shows the fee, discount, amount paid and balance due. Add a payment with:
| Field | Options |
|---|---|
| Payment for | Registration Fees, Full Payment, Instalment 2, Instalment 3, Other |
| Method | Cash, UPI, Bank Transfer, Card, Cheque |
| Amount & date | Payments above the outstanding balance need an explicit confirmation tick |
- Send payment link — sends your saved payment link for the selected instalment to the customer on WhatsApp.
- Public payment page — a page listing your payment options and links.
- Receipts — printable receipt for every payment; use “Print / Save as PDF”.
- Confirmation email — send a registration confirmation with product, batch, timing and start date, with live preview.
Products / plans
The Courses page is your product catalogue: name, duration in months and total price. The price auto-fills new customer records, and each product shows how many customers are enrolled. Rename the labels to match what you sell — services, packages, memberships or courses.
Income, expenses & reports
| Page | What it does |
|---|---|
| Other Revenue | Record income that is not a customer payment (source, amount, date, note) |
| Expenses | Record spending by category: Salary, Rent, Utilities, Marketing, Equipment, Software, Misc |
| Reports | Month-by-month: customers enrolled, fees billed, collected, pending, other revenue, expenses and net |
Reports include completed and revoked customers, so past months never shrink.
Ad spend, funnel & ROAS
This is how you prove which ads make money.
- Put UTM parameters on every ad link or lead form, e.g.
utm_source=meta&utm_campaign=oct-cold. - Record what you spend under Ad Spend: date, platform (Meta, Google, YouTube, LinkedIn, Other), campaign name, amount and note. The campaign name must match
utm_campaignexactly — the page suggests names it has already seen on your leads. - Open Funnel & Attribution.
For each campaign and each team member the Funnel page shows:
| Metric | Meaning |
|---|---|
| Leads | Leads received |
| Demos | Leads that reached a demo stage |
| Enrolled | Leads that became customers |
| Conv. | Conversion rate |
| Spend | Ad spend recorded |
| Cost / lead | Spend ÷ leads |
| Cost / enrolment | Spend ÷ customers |
| Revenue | Money actually collected (not just billed) |
| ROAS | Revenue ÷ spend |
It also shows a stage-by-stage funnel with conversion percentages, a breakdown of lost reasons, and a leaderboard per team member.
Team & roles
| Role | Can see |
|---|---|
| Admin | Everything: leads, customers, money, reports, settings, staff |
| Manager | All leads and the funnel reports — no money, customers or settings |
| Staff | Only their own leads, My Day and the calling screen |
- New users must change their password at first login.
- Admins can reset passwords and deactivate users — deactivated users can't log in but stay in reports.
- Every user can change their own password (minimum 8 characters).
Activity log
Activity Log records who did what, when and from which IP — logins, lead changes, deletes, payments and settings. Filter by area and person.
Security & backups
- Login rate limits: 10 attempts per IP and 5 per username every 15 minutes.
- Hardened sessions with an 8-hour idle timeout.
- HTTPS forced, directory listing disabled, configuration and data files blocked from the web.
- Uploads verified as real images, renamed randomly, capped at 5 MB, and never executable.
- Export / Backup downloads every table plus a leads CSV. Take a backup before any update.
Overview
AI Email Marketing is the email campaign studio included with the CRM. It runs as its own module on the same server and sends through your email service (Brevo) with an AI writer (Claude).
| Page | What it does |
|---|---|
| Dashboard | Campaigns, emails sent, contacts, click rate and queue status |
| Create Campaign | Write or AI-generate an email and send or save as draft |
| Contacts | Import and manage your email list |
| Campaign History | Status, progress, pause / resume, delete |
| Analytics | Opens, clicks, top links, unsubscribes, failed sends |
| Settings | Keys, sender identity, sending limits, test email, password |
Email setup
- Visit the email module (e.g.
https://yourdomain.com/email/) — the first visit opens setup to create the admin login. - Open Settings and add your Brevo v3 API key and your Anthropic API key (for AI writing; choose the Claude model).
- Set the sender email — it must be a verified sender in Brevo. Authenticate your domain with SPF and DKIM in Brevo: this is the single biggest factor in landing in the inbox.
- Enter your company name and address — required in the footer of bulk email.
- Set a random cron secret key, a batch size per run and a daily send cap.
- Press Send test to confirm sending works.
- Add the sending cron job (every minute):
php /home/USER/domains/yourdomain.com/public_html/email/cron/worker.php
# or, if CLI cron is not available:
wget -q -O /dev/null "https://yourdomain.com/email/cron/worker.php?key=YOUR_CRON_KEY"Brevo's free plan allows 300 emails a day, so the daily cap defaults to 290. A 500-person campaign then drips out over two days. Upgrade Brevo and raise the cap to send faster.
AI email writer
In Create Campaign → AI Email Generator, describe what you want and the AI writes the complete email:
| You enter | You get |
|---|---|
| Business name*, industry, product / service* | Subject line |
| Offer, target audience, goal of the email | Preview text |
| Tone: Formal, Friendly, Professional | Responsive HTML design |
| Primary link / CTA URL | Plain-text version, call-to-action button and footer |
- Regenerate as many times as you like.
- Edit the HTML or text by hand and see a live preview.
- Or start from a ready template: Sales, Promotional, Follow-up, Reminder.
- Add your logo (replaces
{{logo_url}}) and attachments up to 8 MB each.
Campaigns & sending
A campaign has a name, subject, preview text, sender name, reply-to, the HTML and plain-text body, logo and attachments. Choose recipients (all contacts, or upload / paste a list of up to 500), then Save draft or Send.
Sending is done by the cron worker in batches, never above your daily cap, so large lists drip out safely. Pause, resume or delete any campaign from Campaign History.
Merge tags
| Tag | Filled with |
|---|---|
{{name}} | Recipient's name |
{{email}} | Recipient's email |
{{unsubscribe_url}} | One-click unsubscribe link |
{{cta_url}} | Your primary link |
{{logo_url}} | Your uploaded logo |
{{company_address}} | Your company address |
If you remove the unsubscribe tag, a compliant unsubscribe footer is added automatically.
Contacts & unsubscribes
- Upload a CSV or paste emails (one per line, or
email,name) — up to 500 per import. - Duplicates are removed automatically.
- Each contact shows its status; unsubscribed contacts are never emailed again.
- Unsubscribe is one click from any email.
Analytics
Per campaign: sent, opens and open %, clicks and click %, top clicked links, unsubscribes and failed sends with the error.
Open tracking uses a pixel and is unreliable (Apple Mail pre-loads images). Clicks are the number to trust.
Troubleshooting
| Problem | Fix |
|---|---|
| “Database connection failed” | Check the DB values in config.local.php |
| Sent to migrate.php after login | Press Run migration — the database needs new columns |
| Emails not sending | Check the cron job, the Brevo key, that the sender is verified, and the daily cap |
| Cost per lead shows nothing | The Ad Spend campaign name must exactly match the leads' utm_campaign |
| Webhook returns 401 | The token in the URL/header does not match WEBHOOK_TOKEN |
FAQ
| Question | Answer |
|---|---|
| Is there a user or lead limit? | No. Unlimited users and leads, limited only by your server. |
| Can I rename “Courses” and “Students”? | Yes — labels can be changed to Products and Customers to fit your business. |
| Who owns the data? | You. It lives on a server in your name. |
| What does support cost after 3 months? | Pay only when you need help — no yearly contract. |
Need help? Every purchase includes three months of support. Contact us and we'll walk you through it.