Route AI handoff tasks from Google Sheets with OpenAI and Claude
Ready for 3.0What this workflow does
This AI workflow has 63 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Google Sheets, OpenAI and Anthropic.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Accept New Task (Filter): keeps only the items that match a condition
- Check Input Safety (Code): runs custom JavaScript code
- Input Safety Passed? (If): checks a condition and branches into true / false
- Normalize Task (Code): runs custom JavaScript code
- Build Safety Rejection (Code): runs custom JavaScript code
- Queue Task Status Update (Loop Over Items (Split in Batches)): loops over the items in batches
- Queue Safety Rejection (Loop Over Items (Split in Batches)): loops over the items in batches
- Select AI Route (Code): runs custom JavaScript code
- Mark Task In Progress (Google Sheets): update
- Save Safety Rejection (Google Sheets): update
…plus 51 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 (12)
- Google Sheets Trigger
n8n-nodes-base.googleSheetsTrigger - Google Sheets
n8n-nodes-base.googleSheets - Manual Trigger
n8n-nodes-base.manualTrigger - Filter
n8n-nodes-base.filter - Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - OpenAI
@n8n/n8n-nodes-langchain.openAi - Anthropic
@n8n/n8n-nodes-langchain.anthropic - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Switch
n8n-nodes-base.switch
From the author
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 1. Most “AI automation” templates connect an AI…