# Handle Shopify Admin GraphQL requests: n8n workflow template

> Started by an event in a connected app. It calls services over plain HTTP rather than through connectors.

Source: https://millionrounds.com/workflow/handle-shopify-admin-graphql-requests (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [E-commerce](https://millionrounds.com/workflows?category=E-commerce#library)

# Handle Shopify Admin GraphQL requests

Started by an event in a connected app. It calls services over plain HTTP rather than through connectors. 12 steps, 2 branches, 1 loop or waits: a working afternoon to understand properly.

Medium

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fhandle-shopify-admin-graphql-requests)

**12 steps** Medium: a working afternoon

**2** Branches: places the flow splits

**1** Loop or waits

**0** Services by connector: it calls them over plain HTTP

## The flow

Starts it 1 Logic 10 Service 1

The steps in the order they run, from what starts it.

- 1 **When Executed by Another Workflow** Execute Workflow trigger *Starts it*
- 2 **Prepare Request** Code *Logic*
- 3 **Shopify GraphQL** Http Request *Service*
- 4 **Check Errors & Throttle** Code *Logic*
- 5 **Needs Retry?** If *Logic*
- 6 **Prepare Retry** Code *Logic*
- 7 **Has Errors?** If *Logic*
- 8 **Wait** Wait *Logic*
- 9 **Throw Error** Code *Logic*
- 10 **Success Response** Code *Logic*
- 11 **Format for Retry** Code *Logic*
- 12 **Stop and Error** Stop And Error *Logic*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 12, with 2 branches, 1 loop or waits
- **Size:** Medium: a working afternoon
- **Connects to:** Nothing by connector; it calls services over plain HTTP
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Plan an afternoon. 12 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 12 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fhandle-shopify-admin-graphql-requests)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Workflows like it

Also e-commerce, with the same services where possible, closest in size first.

- [**Automate e-commerce orders, inventory & feedback with Slack** 12 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/automate-e-commerce-orders-inventory-and-feedback-with-slack)
- [**Automatic re-engagement for inactive Shopify customers** 12 steps · Shopify](https://millionrounds.com/workflow/automatic-re-engagement-for-inactive-shopify-customers)
- [**E-commerce product price tracker with ScrapeGraphAI** 12 steps · Baserow, Slack](https://millionrounds.com/workflow/e-commerce-product-price-tracker-with-scrapegraphai)
- [**Handle order status webhooks with Microsoft SQL Server** 12 steps · Email](https://millionrounds.com/workflow/handle-order-status-webhooks-with-microsoft-sql-server)
- [**Log e-commerce orders in Google Sheets** 12 steps · Google Sheets](https://millionrounds.com/workflow/log-e-commerce-orders-in-google-sheets)
- [**Scrape Shopify store leads with ScraperCity** 12 steps · Slack](https://millionrounds.com/workflow/scrape-shopify-store-leads-with-scrapercity-2)
