Optimize vessel fuel consumption, alerts, and reports with OpenAI and Gmail
Ready for 3.0What this workflow does
This AI workflow has 28 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects OpenAI Chat Model, Data table and Gmail.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- Normalize Data (Code): runs custom JavaScript code
- Get All History (Data table): get
- Get Vessel History (Data table): get
- Build Fleet Report (Code): runs custom JavaScript code
- Aggregate Context (Code): runs custom JavaScript code
- Send Fleet Report (Gmail): uses Gmail
- Statistical Baseline (Code): runs custom JavaScript code
- Fuel Prediction Agent (AI Agent): runs an AI agent, with model: Prediction Model; 1 tool (get_vessel_history); memory: Vessel Memory; output parser: Prediction Schema
- Optimization Agent (AI Agent): runs an AI agent, with model: Optimization Model; memory: Vessel Memory; output parser: Optimization Schema
- Advisory & Monitoring Agent (AI Agent): runs an AI agent, with model: Advisory Model; memory: Vessel Memory; output parser: Advisory Schema
…plus 7 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (13)
- Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - Data table
n8n-nodes-base.dataTable - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Data Table Tool
n8n-nodes-base.dataTableTool - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Respond to Webhook
n8n-nodes-base.respondToWebhook - Switch
n8n-nodes-base.switch - Gmail
n8n-nodes-base.gmail - No Operation, do nothing
n8n-nodes-base.noOp - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
Quick overview This workflow ingests vessel telemetry via a webhook, pulls historical performance from an n8n Data Table, and uses OpenAI agents to predict fuel burn, recommend fuel-minimizing speed/RPM settings within ETA and safety constraints, store…