Install
openclaw skills install supplychainsentinelMonitor supplier APIs, port delays, and weather in real-time to trigger automatic PO rerouting and stakeholder alerts. Use when the user needs supply chain disruption detection, logistics risk mitigation, or backup sourcing automation.
openclaw skills install supplychainsentinelSupplyChainSentinel is a real-time supply chain monitoring and disruption response system that eliminates blind spots in modern logistics networks. Post-COVID supply chain fragility demands intelligent automation—this skill monitors 15+ shipping APIs, port delay databases, and weather systems to detect disruptions before they impact your operations, then automatically triggers PO rerouting workflows and notifies stakeholders with updated ETAs.
Supply chain disruptions cost enterprises an average of $900K per incident (Gartner). Manual monitoring across Flexport, Shippo, AIS vessel tracking, customs databases, and weather APIs is impossible at scale. SupplyChainSentinel consolidates these signals into a single intelligent system that:
Monitor port delays for all active shipments using AIS data. Alert if any
vessel is delayed >12 hours from expected arrival. Include vessel name,
port code, current delay hours, and recommended alternative routes.
What happens:
Check weather forecast for Shanghai and Rotterdam ports over next 7 days.
If typhoon or severe storm detected with >60% probability, automatically
create alternative POs with backup suppliers and notify procurement team.
What happens:
Generate a live supplier health report showing: supplier name, on-time
delivery rate (last 30 days), current shipment count, average delay hours,
and risk score (1-10). Highlight any suppliers with >15% late shipments.
What happens:
Monitor shipment status across 15+ logistics providers with automatic data normalization:
Usage:
Poll supplier APIs every 30 minutes. Flag any shipment with status change
to "delayed", "held_customs", or "vessel_diversion". Cross-reference with
historical baseline to identify anomalies.
Track vessel movements and port congestion in real-time:
Usage:
For each active ocean shipment, retrieve vessel AIS data. Compare current
position against expected trajectory. If vessel speed <3 knots for >4 hours
in port area, flag as potential congestion and estimate delay.
Predict logistics disruptions from meteorological data:
Usage:
Daily 6 AM check: Query OpenWeather API for all active port regions. If
severe weather probability >50% and shipment ETA within 5 days, trigger
alternative routing evaluation.
Intelligently failover to alternative suppliers when disruptions detected:
Usage:
When primary supplier shipment delayed >24 hours, automatically:
1. Query backup supplier inventory for same SKU
2. Compare landed cost (price + expedited shipping)
3. Create PO if cost delta <15% and delivery <original ETA
4. Notify procurement with comparison matrix
5. Update master schedule with new ETA
Multi-channel alerts with updated delivery timelines:
Usage:
When disruption detected, send Slack alert:
"🚨 SUPPLY CHAIN ALERT: Maersk vessel UASC-2847 delayed 18 hours at
Rotterdam. Original ETA: Jan 15, 2 PM. Revised ETA: Jan 16, 8 PM.
Backup supplier PO created. Procurement notified. [View Details]"
# Shipping & Logistics APIs
export SHIPPO_API_KEY="your_shippo_token"
export FLEXPORT_API_KEY="your_flexport_api_key"
export MAERSK_API_KEY="your_maersk_api_key"
# Weather & Geolocation
export OPENWEATHER_API_KEY="your_openweather_key"
export AIS_API_KEY="your_ais_provider_key" # e.g., MarineTraffic
# Notifications
export SLACK_WEBHOOK_URL="https://hooks.slack.com/services/YOUR/WEBHOOK/URL"
export SENDGRID_API_KEY="your_sendgrid_key"
# Database & ERP
export DATABASE_URL="postgresql://user:pass@localhost/supply_chain_db"
export NETSUITE_ACCOUNT_ID="your_netsuite_account"
export NETSUITE_API_KEY="your_netsuite_key"
monitoring:
poll_interval_minutes: 30 # How often to check APIs
delay_threshold_hours: 12 # Trigger alert if delayed >12h
weather_severity_threshold: 0.60 # Storm probability threshold
rerouting:
cost_variance_threshold: 0.15 # Allow 15% cost increase for backup
enable_auto_po_creation: true # Auto-create POs or notify only
safety_stock_buffer_days: 2 # Additional buffer for backup orders
notifications:
slack_enabled: true
email_enabled: true
channels:
- "#supply-chain"
- "procurement@company.com"
- "cfo@company.com" # Finance alerts on cost changes
CREATE TABLE suppliers (
supplier_id UUID PRIMARY KEY,
name VARCHAR(255),
api_type VARCHAR(50),
api_credentials JSONB,
backup_suppliers UUID[],
on_time_rate DECIMAL,
last_updated TIMESTAMP
);
Configure API credentials in your .env file or secrets manager (AWS Secrets Manager, HashiCorp Vault)
Connect to your ERP system (NetSuite, SAP, Dynamics 365) via API or webhook
Set up Slack workspace and generate incoming webhook URL
Initialize monitoring with historical shipment data (last 90 days) to establish baselines
🚨 SUPPLY CHAIN DISRUPTION DETECTED
Shipment: #SHP-2024-001847
Carrier: Maersk Line
Vessel: UASC-2847
Current Location: Rotterdam Port, Netherlands
Current Delay: +18 hours from scheduled ETA
📊 Details:
• Scheduled Port Arrival: Jan 15, 2:00 PM UTC
• Revised ETA: Jan 16, 8:00 PM UTC
• Reason: Port congestion (12 vessels ahead in queue)
• Weather Impact: None detected
✅ Action Taken:
• Backup supplier PO created (cost +8%)
• New delivery date: Jan 18, 10:00 AM
• Procurement team notified
• Customer notification scheduled
🔗 View Full Details | Escalate | Dismiss
{
"report_date": "2024-01-15T10:30:00Z",
"suppliers": [
{
"supplier_id": "SUP-001",
"name": "Shanghai Electronics Ltd",
"on_time_delivery_rate": 0.94,
"active_shipments": 7,
"avg_delay_hours": 2.1,
"risk_score": 3,
"status": "healthy",
"last_shipment": "2024-01-14T16:45:00Z"
},
{
"supplier_id": "SUP-004",
"name": "Port Klang Logistics",
"on_time_delivery_rate": 0.71,
"active_shipments": 3,
"avg_delay_hours": 14.8,
"risk_score": 7,
"status": "at_risk",
"recommendation": "Shift 40% volume to backup supplier SUP-007"
}
]
}
Subject: Supply Chain Update - Shipment #SHP-2024-001847
Dear Procurement Team,
Your shipment from Shanghai to Rotterdam has been updated:
Original ETA: January 15, 2:00 PM
Updated ETA: January 16, 8:00 PM
Delay Reason: Port congestion + AIS data indicates vessel speed reduced
Backup Action:
A secondary shipment has been created with Alternative Supplier (DHL Express)
Expected Delivery: January 17, 6:00 PM
Cost Impact: +$2,400 (8% premium)
Next Steps:
1. Review backup PO in NetSuite: [Link]
2. Confirm customer notification preference
3. Approve cost variance (auto-approved if <15%)
Questions? Contact supply-chain-ops@company.com
Before automating rerouting, collect 60-90 days of historical data to understand:
Action: Run in "monitoring only" mode for 60 days before enabling auto-rerouting.
Manually map 2-3 backup suppliers per critical SKU before activating automation:
Too many false alarms cause alert fatigue; too few miss real disruptions:
Connect to NetSuite, SAP, or Dynamics 365 to:
Example: NetSuite webhook integration to update PO status and notify accounting of cost variances.
The ETA recalculation model improves over time with more data:
Not all disruptions require immediate action:
Example: Typhoon warning for port closing = Red (auto-reroute). Single vessel delayed 6 hours = Green (monitor).
❌ Will NOT override human approval for cost-significant decisions
❌ Will NOT make supplier decisions based solely on price
❌ Will NOT create orders for suppliers without pre-configuration
❌ Will NOT send customer notifications without approval
❌ Will NOT bypass compliance or regulatory requirements
⚠️ API availability: Relies on third-party APIs (Shippo, Flexport, OpenWeather). Degradation in their service = delayed alerts. Mitigation: Implement redundant data sources and fallback thresholds.
⚠️ AIS data lag: Vessel position data may be 15-30 minutes delayed. Mitigation: Use conservative delay thresholds (>12 hours) to avoid false alerts.
⚠️ Weather forecast accuracy: Severe weather predictions >5