🀝 Predict Shopify stockouts with GPT-4o and email suppliers via Gmail

⚑ 98 views · 🀝 CRM & Sales Operations

Description

πŸš€ How it works

Runs daily at 06:00 UTC, pulls every Shopify product variant’s stock level,
calculates real sales velocity from the last 7 days of orders, then uses
GPT-4o to predict stockout dates and decide whether to reorder β€” automatically.

πŸ› οΈ Set up steps

Estimated setup time: ~15 minutes

  1. Shopify β€” create a Custom App in your Shopify Admin β†’ Apps β†’ Develop Apps; enable read_products and read_orders scopes; copy the Admin API Access Token
  2. OpenAI β€” connect your OpenAI API credential (GPT-4o)
  3. Gmail β€” connect Gmail OAuth2; replace supplier@example.com with your real supplier address
  4. Google Sheets β€” connect Google Sheets OAuth2; replace YOUR_REORDER_LOG_SHEET_ID with your sheet ID; create a sheet tab named Reorder Log
  5. Follow the sticky notes inside the workflow for per-node guidance

πŸ“‹ Prerequisites

Custom Workflow Request with Personal Dashboard

kumar@smartflowcraft.com

https://www.smartflowcraft.com/contact

More free templates

https://www.smartflowcraft.com/n8n-templates

πŸ”— Nodes Used

Google Sheets, Shopify, Gmail, Schedule Trigger, AI Agent, OpenAI Chat Model

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup