> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coreflux.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Editing LoT in the HUB

> Create and edit Actions, Models, and Rules in the Coreflux HUB without VS Code or external tools

<Frame caption="The LoT Editor in the Coreflux HUB — create, edit, and manage Actions, Models, and Rules from the browser">
  <img src="https://mintcdn.com/coreflux/W9CJ-kgVY3a3sCeL/images/hub-lot-section.png?fit=max&auto=format&n=W9CJ-kgVY3a3sCeL&q=85&s=5e6c77518490ff114cb34b9aea66e065" alt="Coreflux HUB LoT Editor showing the Models tab with a ProductionCount model definition, code editor, and navigation tabs for Actions, Models, and Rules" width="1024" height="639" data-path="images/hub-lot-section.png" />
</Frame>

## Why Use the LoT Editor?

You need to deploy LoT (Language of Things) definitions quickly—Actions, Models, and Rules—without opening VS Code or publishing to MQTT command topics. The LoT Editor in the Coreflux HUB lets you create, edit, and delete Actions, Models, and Rules directly in the browser.

<Note>
  The LoT Editor manipulates **Actions**, **Models**, and **Rules** only. Routes are managed in the [Routes](/coreflux-hub/routes/overview) section. LoT Notebooks are edited in VS Code.
</Note>

## When to Use It

* **Quick deployments** — Deploy an Action or Model in seconds from the browser
* **Docker-only setups** — When you run Coreflux without VS Code
* **Rapid iteration** — Edit and save changes without switching tools

***

## LoT Editor Tabs

The LoT Editor is organized by entity type:

| Tab         | What You Manage                                  |
| ----------- | ------------------------------------------------ |
| **Actions** | LoT Actions that react to topics or timers       |
| **Models**  | LoT Models for data structure and transformation |
| **Rules**   | LoT Rules for access control and permissions     |

<Frame caption="LoT Editor Actions tab with an empty list, a prompt to select or create a LoT action, and a + New Action button in the bottom right">
  <img src="https://mintcdn.com/coreflux/W9CJ-kgVY3a3sCeL/images/lot-editor-actions.png?fit=max&auto=format&n=W9CJ-kgVY3a3sCeL&q=85&s=3a4146ed711ea12e1459978e4adf16da" alt="Coreflux HUB LoT Editor showing the Actions, Models, and Rules tabs with the Actions tab selected, an empty Actions (0) list on the left displaying a No actions found placeholder, a central editor area prompting to select a LoT action from the list or create a new one, and a + New Action button in the bottom right corner" width="1024" height="639" data-path="images/lot-editor-actions.png" />
</Frame>

## Creating an Action

1. In the top navigation, select **LoT**, then **LoT Editor**.
2. Open the **Actions** tab and click **+ New Action**.
3. Create your Action in the editor. The HUB deploys it to the broker automatically.
4. Confirm creation. The action appears in the list and runs on the broker immediately.

<Frame caption="Creating an Action in the LoT Editor — write your LoT code and see the result in the Data Viewer">
  <img src="https://mintcdn.com/coreflux/W9CJ-kgVY3a3sCeL/images/add-new-action.gif?s=d28b1fb6422b63055687588fa0087244" alt="Animated walkthrough of creating a new Action in the Coreflux HUB LoT Editor and viewing the published data in the Data Viewer" width="800" height="500" data-path="images/add-new-action.gif" />
</Frame>

Example:

```lot theme={null}
DEFINE ACTION Heartbeat
ON EVERY 10 SECONDS DO
    PUBLISH TOPIC "system/heartbeat" WITH TIMESTAMP "UTC"
```

## Creating Models and Rules

Use the **Models** and **Rules** tabs to create and edit those entities in the same way. Each tab provides a code editor where you paste or type LoT definitions.

## Editing and Deleting

* **Edit**: Select an Action, Model, or Rule from the list and modify its code in the editor. Save to apply changes.
* **Delete**: Use the delete control for the entity. Confirm the deletion to remove it from the broker.

<Frame caption="Deleting an Action — select the action, confirm deletion, and verify removal">
  <img src="https://mintcdn.com/coreflux/W9CJ-kgVY3a3sCeL/images/delete-an-action.gif?s=6e6d9a1e444c7dfc808899e327d30c02" alt="Animated walkthrough of selecting and deleting an Action in the Coreflux HUB LoT Editor" width="800" height="500" data-path="images/delete-an-action.gif" />
</Frame>

***

## Next Steps

<CardGroup cols={2}>
  <Card title="Routes" icon="route" href="/coreflux-hub/routes/overview">
    Add and configure Routes in the HUB.
  </Card>

  <Card title="LoT Actions Syntax" icon="code" href="/lot-language/actions/syntax">
    Learn LoT Action syntax and triggers.
  </Card>
</CardGroup>
