Overview

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.

Learn about Interfaces →

Flows

Visual, node-based workflows that power your backend logic. Process data, make API calls, send messages, and more.

Learn about Flows →

Agents

AI assistants that can analyze data, make decisions, and handle phone calls using natural language.

Learn about Agents →

Data

Store and manage your data with SQL tables (Turso) and key-value storage (Cloudflare KV).

Learn about Data →

Quick Links

SectionDescription
InterfacesBuild and deploy user interfaces
FlowsCreate automation workflows
DataTables and KV storage
KnowledgeDocument storage for AI context
AgentsAI assistants and voice agents
IntegrationsEmail, SMS, voice, custom APIs
SettingsCredentials and billing
CLICommand-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

  1. Open Lux Studio
  2. Click New Interface
  3. Build your UI with Next.js/React code
  4. Deploy with one click

3. Build a Flow

  1. Navigate to Flows
  2. Create a new flow
  3. Add a trigger (webhook, schedule, or interface event)
  4. Connect action nodes
  5. 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 →