Core Services

FastAPI Backend Checking…
MySQL Database Checking…
N8N Automation localhost:5678
ML Model (XGBoost) Checking…

Data Refresh Status

Last Data Refresh
Next Scheduled Refresh
Active Shipments
Unresolved Alerts

N8N Automation Workflows

📦

Workflow 1: Shipment Data Refresh

Fetches courier updates every 30 minutes · Cron: */30 * * * *

⚡ Scheduled
🚦

Workflow 2: Traffic Data Collection

TomTom API → POST /webhooks/traffic/update

⚡ Scheduled
🌤️

Workflow 3: Weather Data Collection

OpenWeatherMap → POST /webhooks/weather/update

⚡ Scheduled
📰

Workflow 4: News Disruption Monitor

NewsAPI logistics scan → POST /webhooks/news/update

⚡ Scheduled
🤖

Workflow 5: ML Model Training

Daily retraining at midnight · POST /model/update

✓ Active
🔮

Workflow 6: Prediction Trigger

Runs batch predictions after each data refresh

✓ Active
🔔

Workflow 7: Alert Automation

Email + Slack + SMS when delay_probability > 70%

✓ Active

⚡ To activate N8N workflows: Start N8N with n8n start, then import automation/n8n_workflows.json from the backend project.

ML Model Status

92%
Accuracy
XGBoost
Algorithm
5
Features
Training Samples
✓ Model features: Traffic congestion · Weather severity · News disruption score · Route distance · Carrier reliability