Skip to main content

What is LoT?

LoT (Language of Things) is a human-readable language for IoT automation. It uses near-English syntax to define logic, data structures, and integrations—all executed directly within the Coreflux MQTT broker. LoT is built by defining Actions, Models, Connectors, and Rules. Each one handles a different part of your automation, and inside them you use commands like PUBLISH, SET, and GET to make things happen. An agent (DEFINE AGENT) is a further entity: a tool-using assistant that runs on a TYPE LLM connector. See AI Connectors and Agents.
Think of LoT as SQL for real-time MQTT data. Just as SQL transforms database records, LoT transforms live MQTT streams.
Like building with LEGO blocks. You pick the right block for the job — Actions for logic, Models for data structure, Connectors for connections, Rules for security — and snap them together into a complete system.

The Building Blocks

Each construct is created with the DEFINE keyword:

Actions

Event-driven logic triggered by time or MQTT topics.

Models

Data schemas that structure MQTT messages into JSON.

Rules

Access control for topics and operations.

Connectors

Connect to databases, brokers, and external services.

Agents

A tool-using assistant on a TYPE LLM connector.

How They Work Together

A typical LoT solution combines all four building blocks. Each definition below uses valid LoT syntax — the same patterns you will see in the Models, Actions, Connectors, and Rules references.

What You’ll Learn on This Page

Below you’ll find practical examples showing LoT in action - from simple heartbeats to data transformation. Each example demonstrates a core capability you can implement immediately.

Hello World

Three examples showing what LoT can do:

Next Steps

Best Practices & Patterns

Naming, topic design, reusable logic, and pitfalls to avoid.

Actions Overview

Learn how Actions automate MQTT data processing.
Last modified on October 22, 2026