LeadForge AI CRM

Complete Documentation & Installation Guide

Version 1.0.0

📖 Introduction

Welcome to LeadForge AI CRM - the next generation Customer Relationship Management system powered by artificial intelligence. Built on the robust Laravel 12 framework and featuring a modern Vue.js interface, LeadForge combines cutting-edge technology with intuitive design to transform how you manage customer relationships.

💡 What makes LeadForge different?
LeadForge integrates AI capabilities directly into your CRM workflow, helping you work smarter with intelligent suggestions, automated workflows, and predictive analytics.

Key Highlights

Who is this for?

LeadForge AI CRM is perfect for:

✨ Features

Core CRM Features

👥 Contact Management

Comprehensive contact database with custom fields, tags, lifecycle stages, and activity tracking.

🏢 Company Management

Track organizations, industries, company size, and relationships with contacts.

💼 Deal Pipelines

Visual pipeline management with drag-and-drop, multiple pipelines, and custom stages.

📊 Sales Analytics

Comprehensive dashboards, revenue forecasting, and performance metrics.

📧 Email Integration

Sync with Gmail, Outlook, and other providers. Track opens and clicks.

📄 Proposals & Quotes

Create professional proposals with templates, e-signatures, and tracking.

AI-Powered Features

🤖 AI Assistant

Get intelligent suggestions for email responses, deal strategies, and next actions.

✍️ Content Generation

AI-powered email writing, proposal creation, and document generation.

🎯 Lead Scoring

Automatic lead scoring based on behavior and engagement patterns.

📈 Predictive Analytics

AI-driven insights for deal probability, revenue forecasting, and trends.

Marketing & Automation

Customer Portal

Team Collaboration

Integrations

⚙️ Server Requirements

⚠️ Important: Please ensure your server meets all requirements before installation.

Minimum Requirements

Component Requirement Status
PHP Version 8.2 or higher Required
MySQL 8.0 or higher Required
Web Server Apache/Nginx Required
Composer 2.0 or higher Required
Node.js 18.x or higher Required
Redis Latest Recommended
SSL Certificate HTTPS Recommended

Required PHP Extensions

Recommended Server Specifications

Third-Party Services (Optional)

🚀 Installation Guide

📝 Note: This guide assumes you have basic knowledge of command line operations and server management.

Step 1: Upload Files

Upload all files to your server's web directory (e.g., public_html, www, or htdocs).

⚠️ Important: The public folder should be your web root. Configure your server to point to the public directory.

Step 2: Set Permissions

Set the correct permissions for Laravel directories:

chmod -R 755 storage
chmod -R 755 bootstrap/cache

Step 3: Create Database

Create a new MySQL database and user:

CREATE DATABASE leadforge_crm;
CREATE USER 'leadforge_user'@'localhost' IDENTIFIED BY 'your_strong_password';
GRANT ALL PRIVILEGES ON leadforge_crm.* TO 'leadforge_user'@'localhost';
FLUSH PRIVILEGES;

Step 4: Configure Environment

Copy .env.example to .env and update the following:

APP_NAME="LeadForge AI CRM"
APP_ENV=production
APP_KEY=
APP_DEBUG=false
APP_URL=https://yourdomain.com

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=leadforge_crm
DB_USERNAME=leadforge_user
DB_PASSWORD=your_strong_password

MAIL_MAILER=smtp
MAIL_HOST=your-smtp-host
MAIL_PORT=587
MAIL_USERNAME=your-email@domain.com
MAIL_PASSWORD=your-email-password
MAIL_FROM_ADDRESS="noreply@yourdomain.com"
MAIL_FROM_NAME="${APP_NAME}"

Step 5: Install Dependencies

Install PHP and JavaScript dependencies:

composer install --optimize-autoloader --no-dev
npm install
npm run build

Step 6: Generate Application Key

php artisan key:generate

Step 7: Run Migrations

Create database tables:

php artisan migrate --force

Step 8: Seed Demo Data (Optional)

If you want to populate the database with demo data:

php artisan db:seed --class=DemoDataSeeder
✅ Demo Credentials:
Email: admin@demo.com
Password: password

Step 9: Configure Queue Worker

Set up supervisor or cron job for queue processing:

# Add to crontab
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1

Step 10: Configure Web Server

Apache Configuration

Create a .htaccess file in your public directory:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

Nginx Configuration

server {
    listen 80;
    server_name yourdomain.com;
    root /path-to-your-project/public;

    add_header X-Frame-Options "SAMEORIGIN";
    add_header X-Content-Type-Options "nosniff";

    index index.php;

    charset utf-8;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt  { access_log off; log_not_found off; }

    error_page 404 /index.php;

    location ~ \.php$ {
        fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
        include fastcgi_params;
    }

    location ~ /\.(?!well-known).* {
        deny all;
    }
}

Step 11: Set Up SSL Certificate

We highly recommend using Let's Encrypt for free SSL certificates:

certbot --nginx -d yourdomain.com

Step 12: Create Your First User

If you didn't seed demo data, create an admin user:

php artisan make:admin
🎉 Installation Complete!
Visit https://yourdomain.com to access your LeadForge AI CRM.

⚙️ Configuration

Email Configuration

Configure your email settings in the .env file:

# Gmail Example
MAIL_MAILER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=your-email@gmail.com
MAIL_PASSWORD=your-app-password
MAIL_ENCRYPTION=tls

# Mailgun Example
MAIL_MAILER=mailgun
MAILGUN_DOMAIN=your-domain.mailgun.org
MAILGUN_SECRET=your-mailgun-key

AI Configuration (OpenAI)

To enable AI features, configure your OpenAI API key:

OPENAI_API_KEY=sk-your-openai-api-key
OPENAI_ORGANIZATION=org-your-organization-id
OPENAI_MODEL=gpt-4o-mini
OPENAI_MAX_TOKENS=1000
💡 Tip: GPT-4 provides better results but costs more. GPT-3.5-turbo is more cost-effective for basic AI features.

Payment Gateway (Stripe)

Configure Stripe for invoice payments:

STRIPE_KEY=pk_live_your_public_key
STRIPE_SECRET=sk_live_your_secret_key
STRIPE_WEBHOOK_SECRET=whsec_your_webhook_secret

Google OAuth (Gmail/Calendar)

GOOGLE_CLIENT_ID=your-client-id.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=your-client-secret

Microsoft OAuth (Outlook)

MICROSOFT_CLIENT_ID=your-client-id
MICROSOFT_CLIENT_SECRET=your-client-secret
MICROSOFT_TENANT_ID=common

Storage Configuration

Configure file storage (local, S3, etc.) in config/filesystems.php:

# AWS S3 Configuration
AWS_ACCESS_KEY_ID=your-access-key
AWS_SECRET_ACCESS_KEY=your-secret-key
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=your-bucket-name

Redis Configuration (Optional)

For better performance, configure Redis for caching and queues:

REDIS_CLIENT=phpredis
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

QUEUE_CONNECTION=redis
CACHE_DRIVER=redis
SESSION_DRIVER=redis

Application Settings

Customize application behavior:

# Trial Period
LEADFORGE_TRIAL_DAYS=14

# Currency
LEADFORGE_DEFAULT_CURRENCY=USD

# Timezone
APP_TIMEZONE=America/New_York

# Email Tracking
LEADFORGE_TRACK_OPENS=true
LEADFORGE_TRACK_CLICKS=true

📚 Usage Guide

Getting Started

After logging in for the first time, follow these steps to set up your CRM:

  1. Complete Profile: Update your profile information and preferences
  2. Configure Settings: Set up company information, currency, and timezone
  3. Create Pipelines: Set up your sales pipelines and stages
  4. Import Contacts: Import your existing contacts (CSV supported)
  5. Invite Team: Add team members and assign roles
  6. Connect Email: Integrate your email account
  7. Create Templates: Set up email and proposal templates

Managing Contacts

Adding a Contact

  1. Navigate to Contacts > Create New
  2. Fill in contact details (name, email, phone, etc.)
  3. Assign to a company (optional)
  4. Set lifecycle stage (Lead, Opportunity, Customer)
  5. Add tags for easy filtering
  6. Click Save

Importing Contacts

  1. Go to Contacts > Import
  2. Download the CSV template
  3. Fill in your contact data
  4. Upload the CSV file
  5. Map fields to CRM columns
  6. Review and confirm import

Managing Deals

Creating a Deal

  1. Go to Deals > Create New
  2. Enter deal title and value
  3. Select pipeline and stage
  4. Associate with contact/company
  5. Set expected close date
  6. Add notes and custom fields
  7. Click Save

Moving Deals Through Pipeline

Use the Kanban board view to drag and drop deals between stages, or use the deal detail page to change stages manually.

Email Features

Connecting Email Account

  1. Navigate to Settings > Email Integration
  2. Click Connect Account
  3. Choose provider (Gmail, Outlook, or IMAP)
  4. Authorize access
  5. Configure sync settings

Sending Emails

  1. Open a contact or deal record
  2. Click Send Email
  3. Choose from templates or write custom
  4. Use AI to generate or improve content (optional)
  5. Track opens and clicks
  6. Schedule send time (optional)

Using AI Features

AI Email Assistant

  1. Click AI Assist when composing email
  2. Provide context or select suggestion type
  3. Review AI-generated content
  4. Edit as needed
  5. Send or save as template

AI Deal Insights

View AI-powered predictions on deal probability, recommended next actions, and optimal pricing suggestions on each deal page.

Creating Proposals

  1. Navigate to Proposals > Create New
  2. Select template or start blank
  3. Add sections (executive summary, pricing, terms)
  4. Customize content
  5. Preview proposal
  6. Send to client via email
  7. Track views and e-signature status

Setting Up Workflows

  1. Go to Marketing > Workflows
  2. Click Create Workflow
  3. Choose trigger (e.g., "New Contact Created")
  4. Add actions (send email, create task, update field)
  5. Set conditions and delays
  6. Activate workflow

Customer Portal

Inviting Customers

  1. Navigate to Customer Portal > Invitations
  2. Click Send Invitation
  3. Select company or contact
  4. Set permissions and access level
  5. Send invitation email

Sharing Documents

  1. Go to Customer Portal > Documents
  2. Click Upload & Share
  3. Select file
  4. Choose which customers can access
  5. Set expiration date (optional)
  6. Notify customers via email

Reporting & Analytics

Access comprehensive reports from the Dashboard menu:

User Management

Adding Team Members

  1. Navigate to Settings > Team
  2. Click Invite User
  3. Enter email and name
  4. Assign role (Admin, Manager, Sales Rep, Support)
  5. Set permissions
  6. Send invitation

Role Permissions

Feature Admin Manager Sales Rep Support
View All Contacts Own Only
Manage Deals Own Only
Delete Records
Access Reports Limited Limited
Manage Settings
Manage Users

🔧 Troubleshooting

Common Installation Issues

500 Internal Server Error

Problem: White screen or 500 error after installation

Solutions:

Database Connection Error

Problem: Cannot connect to database

Solutions:

CSS/JS Not Loading

Problem: Page loads but styling is broken

Solutions:

Email Not Sending

Problem: Emails are not being sent

Solutions:

AI Features Not Working

Problem: AI assistant returns errors

Solutions:

Performance Issues

Slow Page Load Times

Solutions:

High Memory Usage

Solutions:

OAuth Integration Issues

Google OAuth Not Working

Solutions:

Getting Help

If you continue to experience issues:

  1. Check storage/logs/laravel.log for detailed error messages
  2. Enable debug mode temporarily: APP_DEBUG=true
  3. Review server error logs
  4. Search our knowledge base
  5. Contact support with detailed error information
💡 Pro Tip: When contacting support, include:
  • PHP version (php -v)
  • Laravel version
  • Error messages from logs
  • Steps to reproduce the issue
  • Server environment details

💬 Support & Updates

Getting Support

We're committed to providing excellent support for LeadForge AI CRM:

📧 Email Support

Send detailed questions to:
support@leadforge.app

Response time: 24-48 hours

📚 Documentation

Comprehensive guides and tutorials available online and in this document.

💬 Community Forum

Join our community to ask questions and share tips with other users.

🎥 Video Tutorials

Watch step-by-step video guides for common tasks and features.

Update Policy

LeadForge AI CRM receives regular updates including:

Updating LeadForge

To update to the latest version:

  1. Backup: Always backup your database and files first
  2. Download: Get the latest version from CodeCanyon
  3. Replace Files: Replace all files except .env
  4. Run Updates:
    composer install --optimize-autoloader --no-dev
    npm install && npm run build
    php artisan migrate --force
    php artisan config:clear
    php artisan cache:clear
    php artisan view:clear
  5. Test: Verify all features work correctly
⚠️ Important: Always test updates on a staging environment before applying to production.

Changelog

Version 1.0.0 (Initial Release)

License Information

LeadForge AI CRM is licensed under the Envato Regular License:

For SaaS applications or multiple installations, purchase the Extended License.

Credits & Attribution

LeadForge AI CRM is built with these excellent technologies:

Customization Services

Need custom features or integration?

Contact us at sales@leadforge.app for a quote.

🎉 Thank you for choosing LeadForge AI CRM!
We're excited to help you transform your customer relationships with the power of AI.

❓ Frequently Asked Questions

General Questions

Q: Can I use LeadForge for multiple companies?

A: Yes! LeadForge features multi-tenant architecture. Each tenant (company) has isolated data. You'll need the Extended License for SaaS use.

Q: Is the source code included?

A: Yes, you receive the complete source code and can customize it to your needs.

Q: Can I remove the "Powered by LeadForge" branding?

A: Yes, you can remove or customize all branding elements.

Q: Does this work with shared hosting?

A: While possible, we recommend VPS or dedicated hosting for best performance. Shared hosting may have limitations with cron jobs and queue workers.

Technical Questions

Q: Can I integrate with my existing systems?

A: Yes, through our REST API or custom development. We also support webhooks for real-time integrations.

Q: Is it mobile responsive?

A: Absolutely! LeadForge is fully responsive and works beautifully on all devices.

Q: Can I use my own domain?

A: Yes, you can use any domain you own. Just configure your web server accordingly.

Q: Does it support multiple languages?

A: Currently English is fully supported. The codebase is translation-ready using Laravel's localization features.

AI Features

Q: Are AI features mandatory?

A: No, AI features are optional. The CRM works fully without OpenAI integration.

Q: How much does OpenAI API cost?

A: Costs vary by usage. GPT-3.5-turbo is approximately $0.002 per 1K tokens. GPT-4 is more expensive but provides better results.

Q: Can I use a different AI provider?

A: Currently we support OpenAI. Custom integrations can be developed for other providers.

Support Questions

Q: How long is support provided?

A: Purchase includes 6 months of support. Extended support can be purchased separately.

Q: Do you offer installation services?

A: Yes, installation services are available for an additional fee. Contact us for pricing.

Q: Can you customize features for me?

A: Yes, we offer custom development services. Contact sales@leadforge.app for a quote.

Q: How do I report bugs?

A: Email support@leadforge.app with detailed information about the issue and steps to reproduce.