Running a Shopify store means checking a lot of screens: new orders, stock levels, product pages that still need copy. Most of that checking can be handed to n8n. In this tutorial you will connect Shopify to n8n (including the new 2026 app setup), then build four workflows that alert, report and even write product descriptions with AI.
What you’ll build
- Instant order alerts sent to Telegram the moment an order is created
- A daily low-stock report pulled from the Shopify GraphQL Admin API
- AI product descriptions written by an LLM and saved back to Shopify
- An order log in Google Sheets for quick reporting
Step 1: Connect Shopify to n8n
n8n ships a Shopify node (create, update, delete and get orders and products) and a Shopify Trigger node. Both use a Shopify credential. The catch: Shopify stopped allowing new legacy custom apps in the store admin on January 1, 2026. Which path you take depends on when your app was created.
Option A: You already have a legacy custom app
Legacy custom apps created before 2026 keep working, and their Admin API access token still works with the built-in node.
- In Shopify, open Settings → Apps and sales channels → Develop apps and open your app.
- Make sure it has the
read_orders,write_orders,read_productsandwrite_productsscopes. - In n8n, create a Shopify Access Token API credential. Enter your Shop Subdomain (the part before
.myshopify.com), the Admin API access token and the API secret key.
Option B: New app from the Dev Dashboard (2026 and later)
New apps are created at dev.shopify.com. They don’t show a static token. Instead you exchange a Client ID and Client Secret for a token that lasts 24 hours, using the client credentials grant.
- In the Dev Dashboard, go to Apps → Create app and give it a name such as n8n Integration.
- Create a version, select the Admin API scopes you need (add
read_inventoryfor stock data), and release it. - Install the app on your store. The app and the store must belong to the same organization.
- Open Settings and copy the Client ID and Client secret.
- In n8n, add an HTTP Request node named Get Token:
- Method:
POST - URL:
https://your-store.myshopify.com/admin/oauth/access_token - Body Content Type: Form Urlencoded with
grant_type=client_credentials,client_idandclient_secret
- Method:
The response contains access_token. Every later API call sends it in the X-Shopify-Access-Token header: {{ $('Get Token').item.json.access_token }}. Because the token expires daily, simply request a fresh one at the start of each run. If you are new to calling APIs directly, our n8n HTTP Request tutorial covers the basics.
Workflow 1: Instant order alerts to Telegram
Shopify webhook (Order creation)
↓
n8n Webhook node
↓
Telegram: "New order #1042 - PHP 2,350"
Shopify’s admin webhooks work with any app setup, so this is the most reliable trigger.
- Add a Webhook node, set the method to
POSTand copy the Production URL. Activate the workflow. - In Shopify go to Settings → Notifications → Webhooks → Create webhook. Choose the Order creation event, format JSON, and paste your n8n URL.
- Add a Telegram node (Send Message) with this text:
New order {{ $json.body.name }} Total: {{ $json.body.currency }} {{ $json.body.total_price }} Items: {{ $json.body.line_items.map(i => i.quantity + 'x ' + i.title).join(', ') }} - Use Send test on the Shopify webhook row to confirm it arrives.
Need a bot first? Follow our n8n Telegram bot tutorial. If you prefer, the Shopify Trigger node does the same job when you have a working Shopify credential.
Workflow 2: Daily low-stock report
Schedule Trigger (8:00 AM)
↓
Get Token (HTTP Request)
↓
GraphQL: variants with stock below 5
↓
IF any results → Telegram / Slack summary
- Add a Schedule Trigger set to every day at 8:00.
- Add the Get Token node from Step 1 (skip it if you use a legacy token).
- Add an HTTP Request node:
POST https://your-store.myshopify.com/admin/api/2026-10/graphql.json, headerX-Shopify-Access-Token, and a JSON body:{ "query": "{ productVariants(first: 50, query: "inventory_quantity:<5") { edges { node { sku displayName inventoryQuantity } } } }" } - Add an IF node checking
{{ $json.data.productVariants.edges.length }}is greater than 0. - Send the list with Telegram or Slack:
{{ $json.data.productVariants.edges.map(e => e.node.displayName + ': ' + e.node.inventoryQuantity).join('n') }}
Replace 2026-10 with any currently supported API version listed in Shopify’s developer docs.
Workflow 3: AI-written product descriptions
Manual / Schedule Trigger
↓
GraphQL: products tagged "needs-copy"
↓
Basic LLM Chain (OpenAI Chat Model)
↓
GraphQL productUpdate → save descriptionHtml
- Tag products that need copy with
needs-copyin Shopify. - Query them with an HTTP Request node:
{ products(first: 10, query: "tag:needs-copy") { edges { node { id title productType vendor } } } } - Add a Split Out node on
data.products.edgesso each product becomes one item. - Add a Basic LLM Chain with an OpenAI Chat Model sub-node and a prompt such as:
Write a 90-word product description in simple HTML (one <p> and a short <ul> of 3 benefits). Product: {{ $json.node.title }} Type: {{ $json.node.productType }} Brand: {{ $json.node.vendor }} No made-up specs or claims. - Save it with another HTTP Request node using Body → JSON:
{{ JSON.stringify({ query: "mutation ($product: ProductUpdateInput!) { productUpdate(product: $product) { product { id } userErrors { field message } } }", variables: { product: { id: $('Split Out').item.json.node.id, descriptionHtml: $json.text } } }) }} - Check
userErrorsin the response, then remove theneeds-copytag once you’ve reviewed the text.
Keep a human review step for anything published. A simple approach is to write the drafts to a Google Sheet first and only push approved rows.
Workflow 4: Order log in Google Sheets
Webhook (Order creation)
↓
Google Sheets: Append Row
- Reuse the webhook from Workflow 1, or add a second branch to it.
- Add a Google Sheets node (Append Row) and map columns:
- Order:
{{ $json.body.name }} - Date:
{{ $json.body.created_at }} - Email:
{{ $json.body.email }} - Total:
{{ $json.body.total_price }} - Status:
{{ $json.body.financial_status }}
- Order:
With a legacy token you can also backfill history using the Shopify node’s Order → Get Many operation.
Troubleshooting
- “Create a custom app” is missing: new legacy apps can’t be created after January 1, 2026. Use the Dev Dashboard flow in Option B.
shop_not_permittedwhen requesting a token: the app and store are in different organizations. Check both under the same org in the Dev Dashboard.- “Invalid API key or access token”: you sent the client ID or secret to the API directly. Exchange them for an
access_tokenfirst. - Forbidden or access denied: a scope is missing. For example,
read_ordersalso needsread_products. Release a new app version with the scope and approve it on the store. - Webhook never arrives: use the Production URL, keep the workflow active, and remember Shopify won’t deliver to localhost.
- Verify requests: Shopify signs webhooks with an
X-Shopify-Hmac-Sha256header. Check it in a Code node if the URL is public.
Wrapping up
You now have a Shopify connection that works with both old and new app setups, plus order alerts, stock reports, AI product copy and an order log. Start with the order alert, then add the others one at a time. For video walkthroughs of builds like this, subscribe to Node & Volt on YouTube.


