Send daily purchase plans from Shopify, Amazon, Etsy with OpenAI and Gmail
Ready for 3.0What this workflow does
This workflow has 14 nodes and runs on a schedule (every day at 07:00). Along the way it connects Telegram, Gmail and Google Sheets. It also calls sellingpartnerapi-na.amazon.com, openapi.etsy.com and api.openai.com over HTTP.
How it runs
Trigger: On a schedule (every day at 07:00).
- Fetch Shopify Stock (HTTP Request): calls an HTTP API (GET)
- Fetch Amazon Stock (HTTP Request): calls sellingpartnerapi-na.amazon.com (GET)
- Fetch Etsy Stock (HTTP Request): calls openapi.etsy.com (GET)
- Merge Channels (Code): runs custom JavaScript code
- Compute Cover (Code): runs custom JavaScript code
- Anything Low? (If): checks a condition and branches into true / false
- Ask For A Purchase Plan (HTTP Request): calls api.openai.com (POST)
- Nothing To Reorder (Telegram): uses Telegram
- Build Email Body (Code): runs custom JavaScript code
- Email The Plan (Gmail): uses Gmail
…plus 3 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: sellingpartnerapi-na.amazon.com, openapi.etsy.com, api.openai.com
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 (7)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Telegram
n8n-nodes-base.telegram - Gmail
n8n-nodes-base.gmail - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick overview This workflow runs every morning to pull inventory from Shopify, Amazon SP-API, and Etsy, calculates days of cover and reorder quantities, then uses OpenAI to draft a purchase brief that is emailed via Gmail, summarized in Telegram, and logged…