Quick Overview
This workflow runs every 15 minutes to pull vessel telemetry/AIS data, enrich it with port and weather context, and use OpenAI to detect disruptions, simulate route alternatives, and generate an executive briefing that requires human approval before notifying teams in Slack.
How it works
- Runs every 15 minutes on a schedule.
- Fetches fleet vessel telemetry and AIS data from a configured HTTP API.
- Retrieves weather forecast and port congestion context for each vessel/route from a second HTTP API.
- Uses OpenAI to analyze telemetry against historical baselines and classify any operational anomalies with severity and confidence.
- Uses OpenAI to aggregate anomaly, weather, and port context into risk factors, urgency, and an action category.
- Uses OpenAI to simulate 2–3 routing and speed options, estimating cost, emissions, fuel, duration, and weather risk, and selects a recommended route.
- Generates an executive briefing with compliance and master-authority notes, pauses for human approval via an n8n form, and then posts the decision and recommendation to a Slack channel.
Setup
- Add OpenAI API credentials for the three OpenAI chat model steps.
- Configure HTTP Header Auth credentials and replace the placeholder URLs and query parameters for your AIS/telemetry API and your weather/port API.
- Ensure the upstream APIs return the fields referenced in the prompts (for example position, speed, fuel consumption, historical baselines, forecast, and port congestion).
- Connect a Slack OAuth2 credential and select the target channel for posting the approved briefing.
- Test the approval form step in n8n and confirm who will receive and complete approvals before enabling the workflow.