Business Logic Configuration

Configure how LILA’s AI interprets your database. Define data isolation rules, set currency formats, and give the AI context about your business operations so it answers questions accurately.

Dashboard → Select Project → Business Logic

Data Isolation Settings

Ensure users only see their own data by configuring isolation rules.

Multi-Tenant Isolation

For SaaS platforms with multiple clients sharing one database. Isolate data by client or tenant organization.

  1. Toggle Multi Tenant switch
  2. Enter the database column name that identifies tenants (e.g., client_id, tenant_id)
  3. LILA automatically filters all queries by this field

Use case: SaaS platforms where each client has their own data subset in the same database.

User Isolation

Isolate data by individual users or members.

  1. Toggle User Isolation switch
  2. Enter the database column name that identifies users (e.g., user_id, member_id)
  3. LILA automatically filters queries to show only the current user’s data

Use case: Applications where users should only see their own records (orders, profiles, activity).

Combined isolation: You can enable both Multi-Tenant and User Isolation for double-layer security (tenant + user filtering).

Currency Settings

Single Currency Mode

Use when all monetary values in your database use the same currency.

  1. Select Single mode
  2. Enter your currency symbol (e.g., USD, EUR, AED)
  3. LILA will format all amounts with this symbol

Multi-Currency Mode

Use when your database stores multiple currencies.

  1. Select Multi mode
  2. No currency symbol needed
  3. LILA will preserve currency data from your database

Business Context

Teach the AI about your specific business. Provide context so the AI understands your terminology, metrics, and data relationships.

Tool Selection

Choose the platform or framework your database powers:

  • WooCommerce
  • Laravel
  • Shopify
  • Custom applications
  • And more…

Search through the dropdown to find your platform.

Industry Selection

Select your business industry:

  • E-commerce
  • Healthcare
  • Education
  • Finance
  • And more…

This helps LILA understand industry-specific terminology and common patterns.

Business Description

Tell LILA about your business operations. This context helps the AI provide more accurate and relevant query results.

What to include:

  • What your business does
  • Key metrics you track
  • Important relationships between data
  • Business-specific terminology
  • Common questions users ask

Example:

We run an online electronics store. We track inventory across
multiple warehouses. Orders can have multiple items, and we
need to monitor stock levels in real-time. Returns are handled
separately from cancellations.

Generate Questions (AI Assistant)

Let LILA’s AI analyze your database schema and suggest relevant questions about your business.

How it works:

  1. LILA examines your database structure
  2. AI generates targeted questions based on your schema, tool, and industry
  3. Questions appear above the text area
  4. Answer only what’s relevant to your business
  5. Type answers directly in the Business Description field

When to use:

  • First-time setup (helps identify important context)
  • After schema changes (ensure context is still accurate)
  • When users get irrelevant AI responses (add missing context)

Note: Questions are suggestions. Skip anything that doesn’t apply to your business.

Save Changes

Click Save Changes to update your business logic configuration. Changes take effect immediately for new queries.