The AI assistant is built into the web interface of every Weble IoT Universal Gateway. Open it with the AI button in the header and talk to your device in plain language: ask what a gateway is doing, find why a route stopped, read logs, create addresses and routes, diagnose the network, back up the configuration, or write a maintenance script. The assistant works through the same API and the same access rights as the interface, and asks for your permission before touching anything.
It runs in one of three modes:
Assistants can also run unattended on the device and answer over SMS, WhatsApp, MQTT or any other protocol: see the AI driver.
The language model runs in the Weble cloud and at the chosen AI provider, never on the device. Your messages and the information the assistant consults are sent there. See section 8.
Devices installed before version 9.1 (r722, 27 October 2026) do not have credits yet. The Credits window shows how to request the 5 $ welcome credit; devices prepared since then receive it at installation.
On the gateways page, right-click one or more addresses, or open a gateway's menu, and choose AI assistant: Route to (then the target gateway), Diagnose or Ask something else…. Some drivers add their own actions, for example Create addresses from a documentation on Modbus. The panel opens on a new conversation with the request already written, including the gateway and addresses; nothing is sent until you review it and press Send.
The + button next to the input offers Send a file, Map a SCADA ↔ PLC (a request to complete before sending) and Box diagnostic (sent at once).
The full guide to the balance, credit licences, sharing between devices and owner management is on AI credits and credit licences.
The Built-in mode is paid with AI credits held on a balance attached to the device. One credit is worth 0.01 $. Each answer shows the number of tokens used and its cost in credits. The price depends on the model, as shown by the cost meter in the model menu.
The Credits window (model menu, Connection, Manage) shows:
Credits are ordered on weble.ch or from support@weble.ch. When the balance reaches zero, the assistant refuses new turns until credits are added; conversations and permissions are kept.
A credit licence is a shared balance identified by a code of the form WL-XXXX-XXXX-XXXX. Attach it to a device from the assistant's Credits window or from System › License configuration › License manager › Insert license, which recognises the WL format: it is the same window as the product licences, see Product licences. Several licences can be attached to one device, with a priority order. A licence can be shared by several devices; its owner can set a monthly cap per device. The owner manages the licence after an e-mail proof: caps, code renewal, transfers, bearer licences.
The code can be entered while the device is offline: it is stored and attached at the next connection to the AI service, by whoever opens the assistant. The Licences page then shows the licence as a regular row with its remaining balance, its last refresh date and a refresh button.
Attaching, detaching or transferring licences requires an administrator account, or the right to insert product licences.
The chat on credits needs no product licence. Two features require the AI Connect licence (product code 1010) or the FULL licence (2628, 9779):
| Feature | Without licence | With AI Connect or FULL |
|---|---|---|
| AI driver | does not start | enabled |
| MCP connector | per-box URL and manual tokens refused; generic URL with a seat or credit licence, or on the device's credits | enabled |
| Your own API key | allowed, with a service retention (currently 20 %, set by Weble and shown in the panel) of the credit equivalent of each message; when the rate is 0 %, the licence is required | no retention |
When a message cannot be paid, the assistant answers with a refusal message: AI credits exhausted, The AI credits licence of this box is empty, suspended, Monthly AI credits cap reached for this box on its licence or The AI credits system is temporarily unavailable. Their meaning and what to do are listed in AI credits › Refusal messages.
With an AI Connect or FULL licence, My API key and the MCP connector keep working without credits.
The model menu groups the available models by provider, with a cost, speed and capability meter and a note on data residency for each one. The list is maintained server-side and grows without a device update.
| Provider | Models | Notes |
|---|---|---|
| Anthropic | Claude Haiku, Claude Sonnet, Claude Opus, Claude Fable | Read files and images. Reasoning effort adjustable on Sonnet, Opus and Fable; extended thinking on Haiku, Sonnet and Opus (Fable always thinks before answering). Fable is markedly more expensive than Opus. |
| OpenAI | GPT-5.5, GPT-5.4 mini, GPT-6 Astra | Reasoning effort adjustable (low, medium, high). GPT-6 Astra costs about twice GPT-5.5. The model menu flags the models that cannot read attached images. |
| DeepSeek | DeepSeek fast, DeepSeek pro | Data processed on servers in China: avoid for sensitive data. Cannot read files or images. |
The default model is chosen by Weble on the AI service and may change without a device update; the model menu always shows which one it is.
The model is chosen per conversation; switching in the middle of a conversation shows a warning. Your last choice is remembered in the browser for this device.
Choose My key in the model menu and add a key for Anthropic, OpenAI or DeepSeek. The key is tested with a minimal call, then stored encrypted on the Weble server for your account on this device. Only a masked form is shown afterwards; the key never appears in conversations or logs. You can save one key per provider and remove them at any time.
In My key mode, your key pays only for the models of its provider: the key tab lists the Models covered by this key. If you select a model of another provider, that conversation runs on the device's credits, and the Connection panel says so. If My key is selected and no key is saved, the input is blocked rather than silently charging credits.
The assistant talks to the device through its peers API: gateways, addresses, routes, loggers, logic, alarms, system, network, accounts, views. Anything the interface can do, the assistant can do, within your rights and with your permission. On top of the API it has dedicated tools:
Reading and analysing
Acting
Files
The assistant's browser
Once you allow it (Allow this time or Allow for the session), the assistant can open the device's own web pages in a headless browser, logged in with your account: open a page, take a screenshot, click, fill a form, read the page text.
Inside this browser the assistant acts as you, without permission cards: a click that saves a configuration is applied at once, within the limits of your role. Allow it only when you want the assistant to look at or test a screen, and close it as soon as it is done.
Every browser session is announced by a card and shown by a header pill, Assistant browser active, with a Close button that ends it immediately. The browser also closes after 10 minutes of inactivity and when your session ends.
The assistant starts locked: even reading needs your approval. Permissions are organised in groups ordered by risk:
| Group | Scope | Risk |
|---|---|---|
| Read | devices, values, logs, configuration | — |
| Network & field diagnostics | ping, traceroute, interfaces | low |
| Process logs | logs of the device's processes | low |
| Write values | write address values | low |
| Add | create gateways, addresses, routes, logic… | low |
| Edit | modify, enable, disable, save | medium |
| Scripts | launch a proposed script without its approval card when every group it needs is already granted; without this group, each script still asks for approval | medium |
| Delete | delete, purge, reset | high |
| Services | restart, stop, reboot | high |
| Accounts | accounts, secrets, certificates | critical |
| Other actions | unclassified functions (dispatchers, unknown methods): confirmed on every call unless granted from the permissions panel | unknown |
When the assistant needs something it does not have, a permission card offers: this session, whole group; this session, this function only for the risky groups; just this time; or deny. Session grants are shared by all your windows on the device and expire one hour after the last window closes. The permissions button shows a colour pill, grey for none, green for read-only, orange for modification, red for deletion, services or accounts, and lets you allow everything for the session or revoke all.
Allow everything grants every group for the session, including Other actions and Send executable code when your role allows them, but not Accounts, which must be granted separately.
Three rules always apply:
There is no permanent grant for the interactive assistant: every session starts locked. Permanent grants exist only for AI driver assistants, which must work unattended.
Conversations are stored per user on the Weble server, not in the browser: you find them again from another computer, and the conversation list only shows your own conversations. The panel lists them and lets you rename, delete and search them. Memory is per conversation; each thread keeps its own context.
The assistant can search the journal of every conversation of this device, all accounts and AI driver assistant threads included, and quote short excerpts from them (tool
recall), including when it is driven from an MCP client connected to this device. Do not write confidential information in a conversation on a device shared with other accounts.
The panel follows the interface language, shows token counters per message and per conversation, and a Stop button interrupts a running answer. A turn is limited to 25 steps (one step can run several tools). When the limit is reached, the assistant stops calling tools and sums up what it found and what remains; type continue to resume.
The device opens an outgoing, certificate-verified connection to the Weble AI service and identifies itself with its own token. Nothing needs to be opened in your firewall.
If the device has no internet access but your computer has, the panel can connect through your browser: the browser reaches the AI service and relays it to the device. The device still authenticates itself; the browser only carries the traffic. When the AI service does not answer, the device waits longer between attempts rather than retrying every few seconds.
When the assistant does not connect or refuses an action, see AI assistant troubleshooting.
| Page | Description |
|---|---|
| AI credits and credit licences | Balance, buying and attaching credits, sharing a licence between devices, refusal messages. |
| AI assistant troubleshooting | The panel does not connect, key and role refusals, large results. |
| MCP: external AI clients | Connect Claude Desktop or any MCP client to the device, tokens, takeover, exposed tools. |
| Connecting a SCADA to a PLC | Method to map SCADA tags to PLC variables, with the help of the assistant. |
| Product licences | AI Connect and FULL licences, inserting a licence. |
| AI driver | Assistants running on the device, triggered by routes, answering over SMS, WhatsApp, MQTT. |
| Releases | Version history: r718, r720, r721, r722 (v9.1), r723. |