This content originally appeared on DEV Community and was authored by Ralf Elfving
“You’re a helpful Shopify app developer assistant, helping to code Shopify apps.”
That’s what I typed into the system field of GPT-4 before I copy/pasted a Shopify app tutorial from Gadget.dev into the prompt. Then I added my question:
“What other kind of Shopify app tutorials do you think you could build with Gadget using the example tutorial above? Give five reasonable Shopify app projects you think we could complete together in less than an hour.”
I wanted to know if it could do it. I assume it could, but I wanted to find out for myself. I wanted to experience it. About an hour later, I had a complete Shopify app that updated a newly created customer segmentation metafield based on custom spending tiers whenever customers places an order.
Watch me.. erh.. GPT-4 code
I recorded a video of me going from prompt to finished app. Don't worry, I fast forward over the segments where GPT-4 is responding or where I'm debugging.
There's some resources and a longer write-up linked in the video as well if you want to get more details.
Some learnings from using GPT-4 to code
I'm not a very good developer. I just have ideas that are outside of my current experience, and available time. I learned that the importance to developing with GPT-4 is primarily two things.
- Understanding what GPT-4 has context of, and what is unique to your circumstance that you need to feed it context about (in my case I used a new platform called Gadget)
- Knowing enough to debug, or how to identify bugs and feed back the errors to GPT-4 to iterate.
I'm hoping my experience can inspire others to try this or something similar out. Time box an hour, and try something new you'd normally need many hours to complete. I think you'd be surprised what you can achieve.
This content originally appeared on DEV Community and was authored by Ralf Elfving

Ralf Elfving | Sciencx (2023-03-25T15:20:59+00:00) I asked GPT-4 to build a Shopify app. In an hour. And it did.. Retrieved from https://www.scien.cx/2023/03/25/i-asked-gpt-4-to-build-a-shopify-app-in-an-hour-and-it-did/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.