Automate Smart Factory Incident Response
detail.loadingPreview
This workflow automatically monitors factory sensor data, detects overheating, and triggers immediate incident alerts. It ensures timely response to critical equipment issues, minimizing downtime.
About This Workflow
The 'Smart Factory Use Case' n8n workflow is designed to proactively manage potential issues within a manufacturing environment. It begins by ingesting real-time data from factory sensors, specifically monitoring temperature readings from machines. If a sensor detects a temperature exceeding 50°C, the workflow immediately triggers an incident creation via PagerDuty, providing a direct link to the issue. Simultaneously, all relevant sensor data, including converted Fahrenheit temperatures, machine uptime, and timestamps, is enriched and then stored in a CrateDB database for historical analysis. This automated process ensures that critical equipment anomalies are identified and addressed swiftly, enhancing operational efficiency and preventing costly failures.
Key Features
- Real-time Sensor Monitoring: Continuously ingest data from factory sensors.
- Automated Anomaly Detection: Automatically identify temperatures exceeding a critical threshold (50°C).
- Instant Incident Alerting: Trigger PagerDuty alerts for immediate response to critical events.
- Data Enrichment & Conversion: Convert temperatures from Celsius to Fahrenheit and gather relevant machine details.
- Database Ingestion: Store both machine operational data and incident details for analysis and auditing.
How To Use
- Configure AMQP Trigger: Set up the 'Data from factory sensors' node to connect to your factory's message queue (e.g., RabbitMQ) and specify the sink (e.g., 'berlin_factory_01').
- Define Temperature Threshold: In the 'Values higher than 50°C' node, ensure the
value1parameter correctly points to your temperature data and theoperationis set tolargerEqual. - Set Up Data Enrichment: Configure the 'Data enrichment (°C to °F)' function node to perform the Celsius to Fahrenheit conversion if needed.
- Configure PagerDuty Integration: Set up the 'Create an incident' node by linking your PagerDuty credentials and defining the incident
titleto include machine name. - Map Sensor Data: Customize the 'Set sensor data' node to map and format all desired sensor readings (temperature in C/F, uptime, timestamp, machine name) for storage.
- Configure Database Ingestion: Set up the 'Ingest machine data' node to connect to your CrateDB instance and specify the target table ('machine_data') and columns.
- Ingest Incident Data: Set up the 'Ingest incident data' node to connect to your CrateDB instance and specify the target table ('incident_data') and columns for incident details.
Apps Used
Workflow JSON
{
"id": "230a5b3a-e86f-40ed-8635-2c6ab711caaa",
"name": "Automate Smart Factory Incident Response",
"nodes": 24,
"category": "Operations",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 230a5b3a-e86f...
About the Author
Free n8n Workflows Official
System Admin
The official repository for verified enterprise-grade workflows.
Statistics
Related Workflows
Discover more workflows you might like
Universal CSV to JSON API Converter
Effortlessly transform CSV data into structured JSON with this versatile n8n workflow. Integrate it into any application as a custom API endpoint, supporting various input methods including file uploads and raw text.
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
On-Demand Microsoft SQL Query Execution
This workflow allows you to manually trigger and execute any SQL query against your Microsoft SQL Server database. Perfect for ad-hoc data lookups, administrative tasks, or quick tests, giving you direct control over your database operations.