n8n

How to Automate Shopify Theme Asset Updates?

Push campaign assets from a Baserow form into Shopify with one call. Marketing teams can upload the campaign image and save a theme snippet without logging into the store. Launch seasonal promos and product drops faster with fewer errors.

A webhook receives data from Baserow, then stored values supply your shop subdomain, theme ID, filename, and snippet content. A check step prevents bad runs. Next, a GraphQL call uses the Shopify Admin API to upload the image with fileCreate. After that, a REST call saves the Liquid snippet into the theme assets. Header based auth keeps your token out of the flow, and variables build the correct URLs and payloads. The result is a clear handoff from data entry to live theme content.

Setup needs a Shopify Admin API token and a Baserow table that can send a POST webhook. Fill the Set node with your subdomain, theme ID, file name, and the snippet content you want live. Expect faster launches, less copy paste, and more consistent assets. Great for limited time banners, collection promos, and brand updates that should go live on a schedule.

What are the key features?

  • Webhook trigger captures POST data from Baserow for each campaign.
  • Set node stores your Shopify subdomain, theme ID, filename, and snippet content.
  • If node validates inputs and routes invalid events to a safe stop.
  • GraphQL node calls Shopify Admin API fileCreate to upload the image.
  • HTTP Request node sends a PUT to save a Liquid snippet into theme assets.
  • Header based credentials pass the Shopify access token securely.
  • Dynamic URL and body building ensures the right theme and file path.
  • No Operation path prevents failures when required data is missing.

What are the benefits?

  • Reduce manual upload time from 30 minutes to 2 minutes
  • Automate up to 90 percent of repetitive theme asset edits
  • Improve accuracy by removing copy paste mistakes
  • Connect Baserow and Shopify in one reliable flow
  • Handle more campaign launches each week with the same team

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Shopify and Baserow. See the Tools Required section above for links to create accounts with these services.
  3. In your Shopify admin, create or use a custom app with access to the Admin API. Make sure the app has read and write access to themes and files, then copy the Admin API access token.
  4. In n8n Credentials, create an HTTP Header Auth credential. Set the header name to X-Shopify-Access-Token and paste your Shopify token as the value. Save the credential.
  5. Open the GraphQL and HTTP Request nodes in n8n and choose the HTTP Header Auth credential you created in the Credential to connect with dropdown.
  6. Edit the Set values here node. Enter your Shopify subdomain, the theme ID you want to update, the snippet filename, and the snippet content. Save the node.
  7. Open the Webhook node and copy the Production URL. In Baserow, create an automation that sends a POST request to this URL when a row is created or updated. Include fields for the image source and campaign name.
  8. Review the If node conditions and adjust the checks so that it only proceeds when required fields are present. This prevents empty uploads.
  9. Send a test row from Baserow. In n8n, check the Execution list to confirm the run. The GraphQL node should return a file ID, and the HTTP Request node should return a success status.
  10. In Shopify, verify the image in Content Files and confirm the snippet in Online Store Themes Edit code under Snippets. Check that the filename and content match your inputs.
  11. If you see a 401 error, recheck the Shopify token and header name. If a 404 occurs, confirm the theme ID and asset path. Fix the input data in Baserow if the If node stops the run.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Baserow

Sign up

Cloud Free plan: $0 / mo; API access via database tokens; 3,000 rows/workspace and 2GB storage/workspace

Shopify

Sign up

Starter plan: $5 / mo

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.