Turn Your Broker Into a Teammate — and Your Automations Into Thinkers
Your devices, integrations, and databases already run on Coreflux — whether you monitor a factory, a solar site, a building portfolio, or a mobile fleet. AI agents live in LoT on that same broker: no separate AI platform, no copy-paste into another chat app. Talk with live data and automate with judgment. Teams ask in plain language and get answers from what the broker sees right now. Your Actions already react to MQTT and timers; with agents they can also reason on a schedule or when an event fires — a status digest, a plain-language take on an alarm, a handover brief — all throughCALL AGENT in LoT.
You define agents once in LoT (alongside your Actions and Routes). Below are ready-to-use use cases you can paste and deploy — pick one to prove value in minutes, or combine several on the same broker. Full options — multi-agent teams, MCP tools, safety rails — are in AI Routes.
Ready-to-Use Use Cases (Copy & Deploy)
Each tab is a full recipe: agent Route, LoT Action where needed, and MQTT topics to try. Adapt names to your vertical — examples in the table.
Some examples of use-cases for your industry:
Before you start
- A running broker — Installation and Getting Started if you are new
-
A model provider — OpenAI, Anthropic, Mistral, or local Ollama on your network. Every recipe in the tabs below uses OpenAI; swap
PROVIDER,MODEL, and the secret name if you prefer another cloud provider or edge inference (see Picking a Provider). For these examples, store an OpenAI API key once on the broker:
The HUB AI Assistant (Coreflux icon in the dock) is a separate built-in helper for drafting LoT and dashboards. This guide is about your agents — the ones you own in LoT.
- Talk with your data
- Automatic report
- Alert triage
- Shift handover
Outcome: Anyone with MQTT access can ask questions; answers use live broker data (topics, Routes, recent payloads).Paste into the LoT Editor (Routes, then Actions) or your notebook:
1
Deploy and confirm
In HUB Routes, check SiteGuide (AGENT). In Actions, check AskSiteGuide. Both should show healthy.
2
Ask a real question
In MQTT Explorer or HUB Data Viewer, publish to (Rename
agents/site/ask and subscribe to agents/site/reply. Try a question that fits your data, for example:telemetry/ to production/, solar/, buildings/, or your own tree.)3
Read the answer on reply
The reply topic carries the agent’s answer — grounded in what your broker actually sees.
You just talked with your data. No extra AI server — the agent runs where your MQTT already lives.
When You’re Ready to Grow
You already have the building blocks: chat (ask/reply topics), schedules (ON EVERY), and event-driven (ON TOPIC) automations with CALL AGENT. Next level is tuning models per job, adding MCP Routes for Slack or databases, and naming agents by role so LoT stays readable.
For multi-agent patterns (operator, specialist, watchdog, reader), see Multi-Agent Deployments.
Stay Safe While You Experiment
Try read-only first
Try read-only first
Add
WITH AGENT_MODE "insight" on a Route so it can explore but not publish or trigger downstream equipment. Switch to full mode when you trust the prompt.Keep API keys off the clipboard in LoT files
Keep API keys off the clipboard in LoT files
Always use
GET SECRET "OPENAI_KEY" — never paste keys into Route definitions that get saved or shared.Match the agent to the audience
Match the agent to the audience
Chat for people; timed Actions for machines. Do not put a public chat line on agents that should only run in the background.
What to Explore Next
AI Routes (full reference)
Providers, MCP tools, multi-agent teams, and deployment settings when you outgrow this tutorial.
Using AI with Coreflux
Use MCP in your editor to write LoT faster — separate from agents running on the broker.

