Beginner data analysis: merge, filter & summarize in Google Sheets with GPT-4o
Ready for 3.0What this workflow does
This AI workflow has 15 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Sheets and OpenAI Chat Model.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Sample Marketing Data (Google Sheets): uses Google Sheets
- Google Sheets: uses Google Sheets
- Merge: merges the data from its input branches
- Filter: keeps only the items that match a condition
- Check if spend over $ (If): checks a condition and branches into true / false
- Count bad days (Summarize): summarizes / groups the items
- Count good days (Summarize): summarizes / groups the items
- Organize fields into table (Edit Fields (Set)): sets 3 fields: Outcome, # of Days, Leader
- Organize second data into table (Edit Fields (Set)): sets 3 fields: Outcome, # of Days, Leader
- Append datasources together (Merge): merges the data from its input branches
…plus 2 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 (11)
- Google Sheets
n8n-nodes-base.googleSheets - Filter
n8n-nodes-base.filter - Code
n8n-nodes-base.code - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Manual Trigger
n8n-nodes-base.manualTrigger - Merge
n8n-nodes-base.merge - If
n8n-nodes-base.if - Summarize
n8n-nodes-base.summarize - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent
From the author
This beginner-friendly n8n workflow teaches essential data manipulation techniques using Google Sheets and AI. You'll learn how to: - ✅ Merge two datasets by a shared column (Channel) - 🔍 Filter rows based on performance metrics (Clicks, Spend) - 🔀 Branch…