Automations Workflow
Automations allow you to build event-driven workflows that execute automatically whenever entity records are created, updated, or when specific metric thresholds are breached.
1. Automation Architecture: Trigger → Condition → Action
Section titled “1. Automation Architecture: Trigger → Condition → Action”Every automation rule consists of three core components:
flowchart LR A["Event Trigger\n(Entity Created / Updated / Metric Ingested)"] --> B["Condition Evaluation\n(e.g. Cargo Temperature > 10°C)"] B -->|Match True| C["Action Execution\n(Webhook / Telegram / Push)"]1. Triggers
Section titled “1. Triggers”- On Entity Created: Fires immediately when a new entity is created under a specified template.
- On Entity Updated: Fires whenever an entity record is modified.
- On Attribute Changed: Fires when a specific dimension or metric attribute changes (e.g. when
Cargo Temperatureexceeds limit orStatuschanges from Operational to Pre-Failure).
2. Conditions
Section titled “2. Conditions”Filter rule evaluation using logical operators:
Equals,Not EqualsGreater Than,Less Than,Greater or Equal,Less or EqualContains,Not ContainsIs Empty,Is Not Empty
3. Actions & Channels
Section titled “3. Actions & Channels”- Telegram Channel: Sends formatted messages to Telegram chats/groups via a bot.
- Webhook Channel: Executes RESTful HTTP requests (
POST,PUT,PATCH,GET,DELETE) with dynamic URL paths, query parameters, authorization headers (None,Bearer Token,Basic Auth), custom headers, and JSON body templates. - Push Notification Channel: Sends instant push notifications to team members’ Android mobile devices via Firebase Cloud Messaging (FCM).
2. Step-by-Step Automation Setup
Section titled “2. Step-by-Step Automation Setup”- Navigate to Automation → Search.
- Click + Create Automation.
- Basic Settings: Enter a name (e.g.,
Cargo Overheat Alert) and select the target Template (e.g.Vehicle). - Select Trigger: Choose On Attribute Changed and select
Temperature. - Add Conditions: Set rule
Temperature Greater Than 10. - Configure Action:
- Select notification target channel (e.g. Omni Webhook).
- For Webhooks:
- Choose HTTP Method (
PATCH). - Enter Endpoint URL template with dynamic variable placeholders (e.g.,
/entities/{entity.id}). - Optionally add Query Parameters (e.g.,
automation=true). - Configure JSON Payload Template for body requests.
- Choose HTTP Method (
- Click Save & Enable.

3. Real-World Scenario: Cold-Chain Fleet Management Rules Engine
Section titled “3. Real-World Scenario: Cold-Chain Fleet Management Rules Engine”Automations transform Omnismith into an active business rules engine. For example, in a cold-chain fleet management system tracking vehicles and shipments:
Scenario Setup
Section titled “Scenario Setup”- Template:
Vehicle - Attributes:
Temperature(Metric / Number),Vehicle Status(List Attribute / Dimension: Operational, Pre-Failure, Failure) - Goal: When a vehicle’s
Temperatureexceeds10°C, automatically issue aPATCHwebhook request to update the vehicle’sVehicle Statusattribute value to"Pre-Failure".
Webhook Channel Setup
Section titled “Webhook Channel Setup”- Channel Name:
Omni Webhook - Webhook Base URL:
https://api.omnismith.io/ - Authorization Type:
Bearer Token - Bearer Token:
omni_0f61c1f023b24db0bb2d15ad71719b8694cc24f5
Action Configuration in Automation
Section titled “Action Configuration in Automation”- HTTP Method:
PATCH - URL / Endpoint Path:
/entities/{entity.id} - Payload Template (JSON):
{"attribute_values": [{"attribute_id": "019fb43d-f9bf-7e9c-aa6d-175ab3a35e54","value": "019fb43e-de74-7149-a92d-5448f16001bc","updated_at": null}]}
Supported dynamic template variables include: {automation.id}, {automation.name}, {entity.id}, {entity.template_id}, {values.<attribute_id>}, {previous.<attribute_id>}, and {timestamp}.
4. Execution Logs & Monitoring
Section titled “4. Execution Logs & Monitoring”Under the Executions tab of any automation rule, you can inspect execution logs in real-time:
- Success: Webhook delivered and accepted by destination API (e.g. HTTP 200/204).
- Failed: Action failed (e.g. HTTP 405 Method Not Allowed, connection refused, or invalid auth). Inspect status codes and message details.
- Partial Failure: Some target channels succeeded while others failed.