🚧 Coming SoonStructured Datastores are currently in development and will be available soon. Stay tuned for spreadsheet-like databases with natural language queries and AI-powered analysis.
Overview
Structured Datastores are spreadsheet-like databases with defined columns, schema validation, and powerful natural language querying capabilities. Think of them as SQL tables that you can query and modify using plain English.Creating a Structured Datastore
API Endpoint
Using a Template
Create from predefined templates (contacts, customer-orders, user-directory, etc.):Available Templates
Get list of templates:contacts- Contact management (Name, Email, Phone, Company)customer-orders- Order tracking (Order ID, Customer, Date, Amount, Status)user-directory- User management (Name, Email, Department, Role)task-list- Task tracking (Title, Description, Status, Priority, Due Date)
From CSV Import
Automatically detect schema from your CSV file:file- CSV file to importname- Collection nameschema- Generated schema from analyze-csvcreatedByName- Your display name
With Custom Schema
Create with your own schema definition:string- Text datanumber- Numeric valuesboolean- True/falsedate- ISO date stringsselect- Dropdown options (requiresoptionsarray)
isStructured flag is automatically set to true.
Key Features
- Schema-based structure with defined columns (string, number, boolean, date, select)
- Natural language queries - search and analyze data using plain English
- Inline editing - click cells to edit data directly
- AI-powered analysis - ask questions, get aggregations, generate charts
- Column management - add, rename, delete columns via UI
- Custom sorting - configure multi-field sort priority
- CSV import/export - bulk import data with schema detection
Natural Language Queries
The preferred way to work with structured datastores. The AI automatically translates your natural language into proper queries.Search for Data
Find specific rows using natural language:Ask Questions
Get AI-generated answers with optional charts and reports:- Aggregations (sum, average, count, min, max)
- Trend analysis and comparisons
- Generate charts (PNG, SVG)
- Export results (CSV, JSON)
- Create reports (PDF)
- AI first filters relevant rows
- For ≤25 rows: quick analysis
- For >25 rows: code execution with chart generation
- Generated files available for 15 minutes
Traditional CRUD Operations
When you need precise control over data operations.Create Item
- Use column names (Name, Email) not field IDs (f_1, f_2)
- Backend automatically converts names to field IDs
- sortField auto-generated from schema’s sortConfig
Batch Create
Create up to 500 items at once:Query with Filters
Use SQL-like operators for precise queries:- Exact:
Status=Active - Greater than:
Age_gt=25,Age_gte=25 - Less than:
Age_lt=30,Age_lte=30 - Not equal:
Status_ne=Inactive - IN (OR):
Status_in=Active,Pending(max 10 values) - Range:
Score_gt=75&Score_lt=90
Update Item
Partial Update (PATCH) - Recommended for structured datastores Only updates specified fields, preserves others:Delete Item
Event Triggers
Automatically start workflows when data changes in your structured datastore. Triggers can be set at collection-level (all items) or item-level (specific rows). Supported events:- onCreate - New rows added
- onEdit - Existing rows modified
- onDelete - Rows removed
Schema Management
View Schema
Add Column
Done via UI - click ”+ New Column” button, or update schema programmatically.Configure Sort Priority
Set which columns control the default sort order:CSV Import
Analyze CSV
Preview schema before importing:Import CSV
Create new collection from CSV:Best Practices
Use Natural Language:- Start with natural language for finding and analyzing data
- Fall back to CRUD for precise control or batch operations
- Always use column names (Name, Email, Status) in your requests
- Backend handles field ID conversion automatically
- Field IDs (f_1, f_2) are internal implementation details
- Max 10K items per query
- Batch operations support up to 500 items
- Natural answer processes up to 10K rows
- Use limit parameter to reduce response size
- Configure sortConfig for custom multi-field sorting
- sortField auto-generated on create/update
- Only sort by: createdAt, updatedAt, or sortField
Common Use Cases
- Customer and contact databases with searchable fields
- Product catalogs with filterable attributes
- Employee directories with department filtering
- Sales pipelines with status tracking
- Inventory management with stock levels
- Survey responses with demographic analysis
- Task lists with priority and status filters
Notes
- Structured collections require a schema before adding data
- Use CSV import to quickly bootstrap from existing data
- Schema can be modified after creation (add/remove columns)
- Natural language queries handle complex filters automatically
- Generated charts and reports expire after 15 minutes

