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.
Navigation Path
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.
- Toggle Multi Tenant switch
- Enter the database column name that identifies tenants (e.g.,
client_id,tenant_id) - 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.
- Toggle User Isolation switch
- Enter the database column name that identifies users (e.g.,
user_id,member_id) - 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.
- Select Single mode
- Enter your currency symbol (e.g., USD, EUR, AED)
- LILA will format all amounts with this symbol
Multi-Currency Mode
Use when your database stores multiple currencies.
- Select Multi mode
- No currency symbol needed
- 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:
- LILA examines your database structure
- AI generates targeted questions based on your schema, tool, and industry
- Questions appear above the text area
- Answer only what’s relevant to your business
- 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.
Related Pages
- Schema Upload - Upload your database schema
- Database Connection - Configure database credentials
- Playground - Test queries with your business logic