Templates / Optimize vessel fuel consumption, alerts, and reports with OpenAI and Gmail

Optimize vessel fuel consumption, alerts, and reports with OpenAI and Gmail

Ready for 3.0

by Cheng Siong Chin ✓ · 29 views · created 2026-08-25 · Engineering, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What 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).

  1. Normalize Data (Code): runs custom JavaScript code
  2. Get All History (Data table): get
  3. Get Vessel History (Data table): get
  4. Build Fleet Report (Code): runs custom JavaScript code
  5. Aggregate Context (Code): runs custom JavaScript code
  6. Send Fleet Report (Gmail): uses Gmail
  7. Statistical Baseline (Code): runs custom JavaScript code
  8. 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
  9. Optimization Agent (AI Agent): runs an AI agent, with model: Optimization Model; memory: Vessel Memory; output parser: Optimization Schema
  10. 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

OpenAI Chat ModelData tableGmail

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)

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…

Excerpt from Cheng Siong Chin's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.