Autonomous Task AI 🟑 BETA

The Machine Does the Work


Overview

Autonomous Tasks let you describe what you want and the system builds it. No coding required - just describe your application in plain language.

You say:

β€œCreate a CRM for my cellphone store”

You get:

  • Working HTMX application at /apps/cellphone-crm
  • Database tables: customers, products, sales, repairs
  • Forms, lists, search, filters - all functional
  • Direct connection to botserver API

Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                         Your App                                 β”‚
β”‚                                                                  β”‚
β”‚   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                 β”‚
β”‚   β”‚  Forms   β”‚    β”‚  Lists   β”‚    β”‚  Actions β”‚                 β”‚
β”‚   β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜                 β”‚
β”‚        β”‚               β”‚               β”‚                        β”‚
β”‚        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                        β”‚
β”‚                        β”‚ HTMX                                   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                         β”‚
                         β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                      botserver API                               β”‚
β”‚                                                                  β”‚
β”‚   /api/db/*          /api/drive/*         /api/llm/*           β”‚
β”‚   CRUD operations    File storage         AI features           β”‚
β”‚                                                                  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                         β”‚
                         β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚              PostgreSQL + MinIO + LLM                           β”‚
β”‚              (user_data virtual table)                          β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Key insight: Apps talk directly to botserver. No middleware, no generated backend code - just HTMX calling the API.


The user_data Virtual Table

All app data lives in one flexible table system:

App: cellphone-crm
Table: customers
     β”‚
     β–Ό
Namespace: cellphone-crm.customers
     β”‚
     β–Ό
Storage: user_data table with proper indexing

Your app calls /api/db/customers and botserver handles the rest.

Benefits

  • No migrations - Tables created on demand
  • Isolation - Each app’s data is separate
  • Flexibility - Add fields anytime
  • Security - Per-app access control

How It Works

1. Describe

Tell the system what you want:

"Create a CRM for my cellphone store with:
- Customer tracking (name, phone, email)
- Product inventory with stock levels
- Sales linked to customers
- Repair status board"

2. Plan

System creates execution steps:

Step 1: Create tables (customers, products, sales, repairs)
Step 2: Generate HTMX application
Step 3: Add search and filters
Step 4: Configure repair workflow

3. Execute

Each step runs and shows progress:

[β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘] 75%
Step 3 of 4: Adding search...

4. Deliver

Your app is ready:

βœ… Application: /apps/cellphone-crm
βœ… Tables: customers, products, sales, repairs
βœ… Features: CRUD, search, status board

Generated App Structure

.gbdrive/apps/cellphone-crm/
β”œβ”€β”€ index.html          # HTMX application
β”œβ”€β”€ _assets/
β”‚   β”œβ”€β”€ htmx.min.js     # HTMX library
β”‚   β”œβ”€β”€ app.js          # Helpers
β”‚   └── styles.css      # Styling
└── schema.json         # Table definitions

HTMX Patterns

List with Auto-Refresh

<div id="customers"
     hx-get="/api/db/customers"
     hx-trigger="load, every 30s"
     hx-swap="innerHTML">
    Loading...
</div>

Create Form

<form hx-post="/api/db/customers"
      hx-target="#customers"
      hx-swap="afterbegin">
    <input name="name" required>
    <input name="phone">
    <button type="submit">Add</button>
</form>
<input type="search"
       hx-get="/api/db/customers"
       hx-trigger="keyup changed delay:300ms"
       hx-target="#customers"
       placeholder="Search...">

Delete

<button hx-delete="/api/db/customers/${id}"
        hx-target="closest tr"
        hx-confirm="Delete?">
    πŸ—‘οΈ
</button>

API Mapping

HTMXEndpointAction
hx-get/api/db/customersList
hx-get/api/db/customers/123Get one
hx-post/api/db/customersCreate
hx-put/api/db/customers/123Update
hx-delete/api/db/customers/123Delete

Query Parameters

?q=john              # Search
?status=active       # Filter
?sort=created_at     # Sort
?order=desc          # Direction
?limit=20&offset=40  # Pagination

Task Steps Storage

Every task stores its steps for:

  • Continuation - Resume if interrupted
  • Progress - Know exactly where you are
  • Debugging - See what happened
{
  "task_id": "abc123",
  "steps": [
    {"order": 1, "name": "Create tables", "status": "completed"},
    {"order": 2, "name": "Generate UI", "status": "running", "progress": 60},
    {"order": 3, "name": "Add search", "status": "pending"}
  ]
}

Execution Modes

ModeBehavior
AutomaticRuns without stopping
SupervisedPauses before each step
Dry RunShows what would happen

Dev Chat Widget

Test your app without leaving the page:

  1. Add ?dev=1 to URL or run on localhost
  2. Click the floating chat icon (or Ctrl+Shift+D)
  3. Talk to modify your app in real-time
<script src="/_assets/dev-chat.js"></script>

The dev chat uses the same user_data system for history storage.


Example: Cellphone Store CRM

Request:

β€œCRM for cellphone store with customers, products, sales, and repair tracking”

Result:

TableFields
customersid, name, phone, email, notes
productsid, name, brand, model, price, stock
salesid, customer_id, product_id, quantity, total
repairsid, customer_id, device, status, price

Features:

  • Customer list with search
  • Product inventory with stock alerts
  • Sales entry form
  • Repair status board (Kanban)

Access: /apps/cellphone-crm


Best Practices

Be Specific

βœ… Good:

β€œCRM for cellphone store with customer tracking, sales, and repair status workflow”

❌ Vague:

β€œMake an app”

Include Workflows

βœ… Good:

β€œRepair status: received β†’ diagnosing β†’ repairing β†’ ready β†’ delivered”

❌ Missing:

β€œTrack repairs”

Mention Relationships

βœ… Good:

β€œSales linked to customers and products”

❌ Unclear:

β€œSales tracking”


See Also