Summarize daily Shopify product profit with Meta, Google Ads, GPT-4o-mini & Slack
Needs changesWhat this workflow does
This AI workflow has 89 nodes and runs on a schedule (cron 0 8 * * *) (plus 2 other triggers). Along the way it connects Google Sheets, Slack, OpenAI and Gmail and 2 more. It also calls apiv2.shiprocket.in over HTTP.
How it runs
Trigger: On a schedule (cron 0 8 * * *) (plus 2 other triggers).
- Read RTO Assumptions (Google Sheets): uses Google Sheets
- Read Daily P&L (Weekly) (Google Sheets): uses Google Sheets
- Normalize Question (Edit Fields (Set)): sets 3 fields: question, channel, thread_ts
- Set Profit Config (Code): runs custom JavaScript code
- Cast & Bucket Daily Rows (Edit Fields (Set)): sets 7 fields: date, revenue_n, profit_n…
- Profit Q&A Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 3 tools (daily_pnl, product_pnl, rto_assumptions); memory: Chat Memory
- Get Meta Campaign Spend (HTTP Request): calls an HTTP API
- Summarize: summarizes / groups the items
- Reply in Slack Thread (Slack): uses Slack
- Get Google Ads Campaign Cost (HTTP Request): calls an HTTP API (POST)
…plus 71 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)
HTTP calls to: apiv2.shiprocket.in
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Profit Q&A Agent (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
- Also check Slack Trigger requires a signing secret on the Slack API credential.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2026 — 6% of 2026 templates need changes for 3.0. See how template age affects 3.0 readiness →
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Profit Q&A Agent (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (21)
- Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - Split Out
n8n-nodes-base.splitOut - Filter
n8n-nodes-base.filter - Edit Fields (Set)
n8n-nodes-base.set - Merge
n8n-nodes-base.merge - Summarize
n8n-nodes-base.summarize - HTTP Request
n8n-nodes-base.httpRequest - Sort
n8n-nodes-base.sort - Slack
n8n-nodes-base.slack - OpenAI
@n8n/n8n-nodes-langchain.openAi - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Gmail
n8n-nodes-base.gmail - Slack Trigger
n8n-nodes-base.slackTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Google Sheets Tool
n8n-nodes-base.googleSheetsTool - Limit
n8n-nodes-base.limit - WhatsApp Business Cloud
n8n-nodes-base.whatsApp
From the author
Quick overview This workflow runs daily and calculates yesterday’s profit per product by combining Shopify orders with Meta and Google Ads spend, Shiprocket shipping charges, and configured fees and RTO provisions, then uses OpenAI to write a summary and…