Who This Is For

We built the multi-tenant system for three types of people:

Agencies that want to offer AI tools to their clients without building the tech from scratch. You sign up for NeuroGen Enterprise, brand it with your logo and colors, create customer accounts, allocate credits, and charge whatever you want. Your clients never see the NeuroGen name.

SaaS companies that want to add AI features to their existing product. Embed NeuroGen's standalone chat, API integrations, or knowledge base into your app. Your users interact with your UI. NeuroGen handles the backend.

Consultancies that deploy AI solutions for enterprise clients. Each client gets their own isolated environment with separate data, users, permissions, and credit pools. You manage everything from a single admin panel.

Organizations, Roles, and Permissions

Everything starts with an Organization. When you sign up for Enterprise, you create an org. That org becomes the container for everything: your team members, your customers, your credits, your branding.

Each person in your org has one of five roles:

Owner Full control, billing
Admin Manage all resources
Manager Manage customers
Member Use the platform
Viewer Read-only access

On top of roles, there are 12 granular permissions that you can assign or revoke individually:

manage_members
manage_customers
manage_credits
manage_branding
manage_integrations
manage_assistants
view_analytics
view_billing
impersonate_users
manage_portals
export_data
manage_settings

This is real RBAC, not just "admin or not admin." A Manager might have manage_customers and view_analytics but not manage_credits or impersonate_users. You decide what each team member can do.

Credit Delegation

Credits flow through three levels. This is one of the most important parts of the system because it controls how your customers use (and pay for) AI resources.

Org Pool Your Enterprise credits
Customer Allocation Per-customer limits
User Deduction Actual usage

The flow is straightforward. You buy Enterprise for $997/month, which gives you 50,000 credits. Those credits sit in your org pool. You then create a customer (say "Acme Corp") and allocate 5,000 credits to them. Acme Corp's users can spend up to 5,000 credits. When they do, the credits are deducted from both the customer allocation and your org pool.

You can set hard limits (stop when credits run out) or soft limits (allow overage up to a threshold). You can also set monthly auto-refill amounts per customer. The analytics dashboard shows you exactly how much each customer is consuming so you can price your reselling accordingly.

The Math

Enterprise costs $997/month for 50,000 credits. That is about $0.02 per credit at wholesale. If you resell those credits at $0.05 each, you make a 150% margin. If you have 20 customers each using 2,000 credits per month, you are collecting $2,000 in revenue on a $997 cost base. The credit delegation system handles all the accounting automatically.

White-Label Branding

The white-label system lets you replace every visible trace of NeuroGen with your own brand. You can customize:

  • Logo: Your logo appears in the header, login page, emails, and the standalone chat widget
  • Favicon: Your icon in the browser tab
  • Color palette: Primary, secondary, accent, and background colors. These override the CSS variables throughout the entire UI
  • Custom CSS: For anything the color picker does not cover, you can inject your own CSS
  • Custom domain: Point your domain (e.g., ai.yourbrand.com) at your NeuroGen instance. Your customers visit your URL, see your branding, and have no idea NeuroGen is under the hood

The standalone chat inherits your branding too. When your customers share a chat link, the page shows your logo, your colors, and your domain. The chat experience looks like it was built by you.

Customer Portals

Each customer in your org can have their own portal. A portal is a restricted view of NeuroGen that only shows what you allow. You can configure which tools are visible, which features are enabled, and what resources (assistants, knowledge bases, agents) are available.

Customers log in through your branded portal URL. They see your logo, your colors, and only the tools you have decided they should have access to. They do not see other customers' data. They do not see your org admin panel. They do not see credit pools or RBAC settings. They just see the AI tools you are providing to them.

Admin impersonation lets you log in as any user in your org for support purposes. Every impersonation session is logged with timestamps, so there is a full audit trail. This is helpful when a customer reports a problem and you need to see exactly what they see.

All 12 Phases

We built the multi-tenant system in 12 phases over three weeks. Full scope below:

P1
Database Foundation
Organizations, memberships, roles, and relationship tables
P2
RBAC System
5 roles, 12 permissions, role-permission mapping, decorators
P3
Customer Portals
Isolated customer environments with configurable tool access
P4
Credit Delegation
Org pools, customer allocations, 3-tier deduction logic
P5
White-Label Config
Logo, favicon, colors, custom CSS, domain mapping
P6
Branded Standalone Chat
Chat widget inherits org branding for customer-facing use
P7
Analytics Dashboard
Chart.js visualizations for credit usage, user activity, costs
P8
CRM Integration
Mautic for marketing automation, SuiteCRM for sales pipeline
P9
Admin Impersonation
Log in as any org user for support, with full audit trail
P10
User Migration Tool
Move existing solo accounts into an organization
P11
Org-Level Settings
Default models, credit policies, notification preferences
P12
Billing and Invoicing
Customer-facing invoices, PDF export, usage breakdowns

CRM Integration: Mautic and SuiteCRM

The multi-tenant system connects to two CRM platforms out of the box.

Mautic 5.2 handles marketing automation. When a new customer signs up through your portal, they are automatically added to Mautic as a contact. You can set up email campaigns, lead scoring, drip sequences, and segment your customer base. NeuroGen's Mautic service handles the API calls and the toolkit makes Mautic actions available to your AI agents.

SuiteCRM 8.7 handles sales pipeline management. Customer interactions, deals, tasks, and notes all sync. The V8 JSON:API integration supports OAuth2 authentication. Your sales team can see which customers are active, which are using the most credits, and which ones might be ready for an upsell.

Both integrations are optional. If you already have a CRM, you can skip these and use the API marketplace to connect whatever you prefer (HubSpot, Salesforce, Pipedrive, etc.).

Getting Started on Enterprise

Enterprise is the $997/month tier. It comes with 50,000 credits and unlocks all multi-tenant features. The setup process:

  1. Sign up and select the Enterprise plan on the pricing page
  2. Create your organization and invite your team members
  3. Upload your logo and configure your brand colors
  4. Set up your custom domain (we provide DNS instructions)
  5. Create your first customer and allocate credits
  6. Build the assistants and agents your customers will use
  7. Share the portal URL with your customers

The whole setup takes about an hour if you have your branding assets ready. After that, you are running your own AI platform.

If you want to test the concept before committing to Enterprise, you can start with the Business tier ($297/month) and explore the platform. When you are ready to add multi-tenant and white-label features, upgrade to Enterprise. Your existing assistants, agents, and knowledge bases carry over.

Launch Your AI Platform

Enterprise gives you everything: white-label branding, customer portals, credit delegation, RBAC, analytics, CRM, and 50,000 credits. Start reselling AI under your own brand today.

Start Enterprise Trial
Back to Blog