Add an IoT Trigger element
Right-click on an empty area of your canvas and select IoT Trigger. Click the element to open the sidebar where you find the generated URLs and authentication token.Sidebar reference
The production endpoint your external system calls to trigger your real robot or Avatar. Use this URL in live deployments.
A separate endpoint for development and testing. Calls to the Test URL are displayed in the Test window but do not trigger live devices.
Copies the authorization token to your clipboard. Include this token in every request as the
Authorization header value: Token <YOUR_TOKEN>.Map a field from the incoming JSON request body to a Plural flow variable. Enter the JSON parameter name on the left and the target variable name on the right.
Opens a live debug window that displays all incoming messages sent to the Test URL. You can also send test trigger messages directly from this window.
Trigger the IoT element via HTTP
Structure your HTTP request as follows:Copy the URL
Click Copy Live URL (for production) or note the Test URL (for testing) in the IoT Trigger sidebar.
Add the Authorization header
In your HTTP client (Postman, cURL, your backend code), add a header named
Authorization with the value Token <your_token>.Send a JSON body (optional)
Add any data you want to pass into the flow as a JSON body, for example
{ "goToLocation": "Meetingroom" }.Authenticate without an Authorization header
If your system cannot set custom HTTP headers, pass the auth token as a URL query parameter instead:Map request body fields to variables
Use the Add transformation rule panel to extract values from the request body and store them in Plural variables:- Enter the JSON parameter name from your request body (for example,
goToLocation). - Enter the Plural variable name to store it in (for example,
desiredLocation).
#ATTRI/desiredLocation.
Target a specific Avatar session
By default, triggering the IoT element fires on all active Avatar sessions running that project. To target a specific session:Get the session ID
Retrieve the active session ID from your flow. Display it on a Media Designer slide or pass it to your backend at flow start using a Custom API Request element. The session ID changes with each new flow run.
session parameter triggers all active Avatar sessions. Calling it with an incorrect session ID triggers nothing.
Debug with the test window
Send a request to the Test URL
Use Postman, cURL, or any HTTP client to send a request to the Test URL (not the Live URL).
Inspect the log
The test window displays the full payload of each incoming message, including any variables set by transformation rules. This is especially useful when debugging Plural Automation frames.
The IoT Trigger operates independently from Human Detection triggers. Adding it to a flow does not interfere with proximity or face detection logic.
Use in Plural Automation
When placed inside a Plural Automation frame, the IoT Trigger acts as the entry point that starts the automation when called from an Avatar frame or an external system. See the Plural Automation page for a complete walkthrough.Multilingual automation
To run a Knowledge Base or other language-sensitive element in an automation frame in the user’s current language, append?lang=#ATTRI/LanguageISO2 to the IoT Trigger URL in your API call:
