Route AI handoff tasks from Google Sheets with OpenAI and Claude

Go to Workflow
0 views
Built by Maksym Ivanov Maksym Ivanov
Created on August 27, 2026

Description

Quick overview
Production-grade AI workflow with pre-spend budget enforcement, dual-model verification (OpenAI + Claude), and full audit logging. Built and refined over 3+ months of real-world use.

How it works
Most “AI automation” templates connect an AI to a workflow with no safety net. This one is different.
Budget enforcement BEFORE spending — projects cost and blocks the call if it exceeds your limit, instead of reporting overspend afterward
Dual-model verification — run OpenAI and Claude in parallel and compare their answers before trusting a result on high-stakes tasks
Full audit trail — every task is logged with a tracking ID from intake to completion, so nothing happens silently
Fail-closed safety checks — malformed or duplicate tasks are rejected before they ever reach an AI model
69-node n8n workflow, fully documented with 6 in-canvas setup guides
Clean, numbered node names (1 → 15) so the logic is readable at a glance
Zero personal data, zero credentials, zero test values — ready for your own setup
README with step-by-step setup instructions

Setup
Connect a Google Sheets credential and replace YOUR_SHEET_ID_HERE and YOUR_SHEET_TAB_NAME_HERE in all Google Sheets trigger and update steps.
Ensure your sheet includes the required columns (at minimum Handoff ID, Status, Question / Task, Required Output, and Context / Source Link) and that new items enter with Status set to NEW.
Provide api_cost_budget and estimated_cost_next_call values in each row to enable the budget gate, and review the MAX_ITEMS_PER_EXECUTION safety limit in the safety code step.
Add an OpenAI API credential for the OpenAI steps and an Anthropic API credential for the Claude steps, and review the configured model IDs.
Update the HTTP request URL (YOUR_N8N_DOMAIN_HERE/webhook/ai-handoff-write) if you use the AI handoff webhook endpoint in your environment.

Customization
Setup and customization services available separately — see README for details.

Additional info
WHO THIS IS FOR
Anyone building AI-powered automation who needs it to be reliable, not just functional — agencies, in-house automation builders, and technical founders who don’t want a demo that breaks the first time something unexpected happens.

SETUP TIME
15–30 minutes if you’re comfortable with n8n and have your OpenAI/Anthropic API keys ready.

NEED IT CONFIGURED FOR YOU?
Setup and customization services available separately — see README for details.

Preferred public title: AI Task Orchestration Hub — Budget-Controlled Multi-Model Pipeline (n8n)

Nodes Used (5)

Anthropic
@n8n/n8n-nodes-langchain.anthropic
Code
n8n-nodes-base.code
Google Sheets
n8n-nodes-base.googleSheets
HTTP Request
n8n-nodes-base.httpRequest
OpenAI
@n8n/n8n-nodes-langchain.openAi