Sync new Shopify orders to Google Sheets with GPT-4.1-mini analysis
Ready for 3.0What this workflow does
This AI workflow has 11 nodes and runs on a schedule (every minute). Along the way it connects OpenAI Chat Model, Shopify and Google Sheets.
How it runs
Trigger: On a schedule (every minute).
- Get Last Successful Sync Time (Code): runs custom JavaScript code
- Fetch Orders from Shopify (Shopify): get many
- Mark Orders as New or Old (Code): runs custom JavaScript code
- Is This a New Order? (If): checks a condition and branches into true / false
- AI Order Analysis (AI Agent): runs an AI agent, with model: OpenAI Chat Model
- Convert AI Response to Data (Code): runs custom JavaScript code
- Prepare Final Order Data (Edit Fields (Set)): sets 12 fields: id, order_number, order_created_at…
- Save Order to Google Sheet (Google Sheets): append
- Update Sync Time (Code): runs custom JavaScript code
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other Shopify + Google Sheets templates (52) · Other Shopify + OpenAI templates (32)
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 (8)
- OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Code
n8n-nodes-base.code - Shopify
n8n-nodes-base.shopify - If
n8n-nodes-base.if - AI Agent
@n8n/n8n-nodes-langchain.agent - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets
From the author
Shopify New Orders Auto-Sync to Google Sheets & AI Analysis This workflow automatically fetches new Shopify orders on a schedule, detects only newly created orders, enriches them using AI, and stores clean, structured data in Google Sheets for reporting and…