ECE-BOT supports multiple hardware assistants — MELFA, PLC, and CNC — each backed by a dedicated intent model and knowledge base. UseDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Kr-Yogsa/ECE-BOT/llms.txt
Use this file to discover all available pages before exploring further.
GET /hardware-list to populate a bot selector in your UI, and POST /select-bot to switch the active assistant before sending chat messages. The active bot is stored server-side in the user’s session and determines which model handles subsequent /chat requests.
Both endpoints require a valid Bearer token. Requests without a token receive a
401 Unauthorized response.GET /hardware-list
Returns all configured hardware assistants and the ID of the currently active bot.Request headers
Bearer token obtained at login. Format:
Bearer <token>.Response
Ordered list of all available hardware assistants.
The
id of the assistant currently active in the session.Example
200 response
POST /select-bot
Switches the active hardware assistant for the current session. All subsequent/chat requests will use the selected bot until changed.
Request headers
Bearer token obtained at login. Format:
Bearer <token>.Must be
application/json.Request body
The
id of the hardware assistant to activate. Must be one of the IDs returned by GET /hardware-list ("melfa", "plc", or "cnc").Response
Confirmation string:
"Bot selected successfully.".The
id of the newly active assistant, echoing the value sent in the request.Human-readable display name of the newly active assistant.
Errors
| Status | Condition |
|---|---|
400 | Request body is missing or hardware_id is absent. |
401 | Missing or invalid Bearer token. |
404 | The supplied hardware_id does not match any configured hardware. |
Example
200 response
404 response
QR code machine selection
Scanning a machine QR code navigates to/machine/<hardware_id>. ECE-BOT automatically redirects to the login page with the bot pre-selected, so users land directly in the correct hardware context without manually choosing a bot from the dropdown.
The
/machine/<hardware_id> route is a browser redirect, not a JSON API endpoint. It is not intended to be called from API clients.