Lux Documentation
Build AI-powered applications with visual workflows.
What is Lux?
Lux is a platform for building intelligent applications. Create user interfaces, connect them to AI-powered workflows, and deploy with ease.
Core Concepts
Interfaces
User-facing web applications built with Next.js. Design UIs with code and connect them to backend flows.
Flows
Visual, node-based workflows that power your backend logic. Process data, make API calls, send messages, and more.
Agents
AI assistants that can analyze data, make decisions, and handle phone calls using natural language.
Data
Store and manage your data with SQL tables (Turso) and key-value storage (Cloudflare KV).
Quick Links
| Section | Description |
|---|---|
| Interfaces | Build and deploy user interfaces |
| Flows | Create automation workflows |
| Data | Tables and KV storage |
| Knowledge | Document storage for AI context |
| Agents | AI assistants and voice agents |
| Integrations | Email, SMS, voice, custom APIs |
| Settings | Credentials and billing |
| CLI | Command-line interface reference |
Getting Started
1. Install the Desktop App
Download Lux Studio from uselux.ai/download (opens in a new tab)
2. Create Your First Interface
- Open Lux Studio
- Click New Interface
- Build your UI with Next.js/React code
- Deploy with one click
3. Build a Flow
- Navigate to Flows
- Create a new flow
- Add a trigger (webhook, schedule, or interface event)
- Connect action nodes
- Test and publish
4. Connect to Your Interface
Call flows from your interface code using helpers:
// Server-side (SSR) - in page.tsx
const data = await executeFlow('get_products');
// Client-side - in components with 'use client'
const result = await callFlow('submit_form', { name, email });Architecture Overview
┌─────────────────────────────────────────────────────┐
│ Interfaces │
│ (Next.js Web Apps) │
│ callFlow() / executeFlow() │
└─────────────────────────┬───────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────┐
│ Flows │
│ (Visual Workflow Engine) │
├─────────────┬─────────────┬─────────────────────────┤
│ Triggers │ Actions │ Integrations │
│ • Webhook │ • Email │ • Twilio │
│ • Schedule │ • SMS │ • ElevenLabs │
│ • Event │ • Voice │ • Resend │
│ • Manual │ • AI Agent │ • Custom APIs │
└─────────────┴─────────────┴─────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────┐
│ Data │
├─────────────────────────┬───────────────────────────┤
│ Tables │ KV Store │
│ (SQL / Turso) │ (Cloudflare KV) │
└─────────────────────────┴───────────────────────────┘Need Help?
- CLI Help: Run from Lux Studio's frontend directory:
node bin/lux-cli/lux.js --help - Documentation: You're here!
- Support: Contact us at support@uselux.ai
Ready to start? Build your first Interface →