Tune ROV PPO reward weights with OpenAI, Google Sheets and Gmail
Ready for 3.0What this workflow does
This AI workflow has 60 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects Google Sheets, Gmail, Anthropic Chat Model and Slack and 1 more.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- Set Run Config (Edit Fields (Set)): sets 22 fields: runId, trainerBaseUrl, notificationEmail…
- Format Error Details (Edit Fields (Set)): sets 4 fields: workflowName, failedNode, errorMessage…
- Request Valid? (If): checks a condition and branches into true / false
- Send Workflow Error Alert (Gmail): uses Gmail
- Check Trainer Health (HTTP Request): calls an HTTP API
- Respond Run Rejected (Respond to Webhook): sends the response back to the webhook caller
- Trainer Healthy? (If): checks a condition and branches into true / false
- Load Prior Lessons (Google Sheets): uses Google Sheets
- Respond Trainer Unavailable (Respond to Webhook): sends the response back to the webhook caller
- Merge Prior Lessons Into Run State (Code): runs custom JavaScript code
…plus 37 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (17)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - Respond to Webhook
n8n-nodes-base.respondToWebhook - Wait
n8n-nodes-base.wait - Switch
n8n-nodes-base.switch - Gmail
n8n-nodes-base.gmail - AI Agent
@n8n/n8n-nodes-langchain.agent - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Slack
n8n-nodes-base.slack - Merge
n8n-nodes-base.merge - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Error Trigger
n8n-nodes-base.errorTrigger
From the author
Quick overview This workflow starts a webhook-driven PPO training loop for an ROV, logs each round’s metrics to Google Sheets, uses OpenAI to propose updated reward weights, clamps changes to safe bounds, and emails a final report (or a failure alert) via…