Sync Shopify product changes to Algolia in real time

By General Input

When a product is created, updated, or deleted in Shopify, we update your Algolia search index within seconds so shoppers always see the current catalog.

Integrations

  • Shopify
  • Algolia

Type

Deterministic Code

Categories

  • Operations

Keep my Algolia catalog index in lockstep with Shopify so site search always reflects the current storefront.

Trigger: webhook when Shopify emits a products/create, products/update, or products/delete event. Ignore any other event type.

On a products/create or products/update event, call Shopify Get Product using the product id from the webhook payload to pull the full current record. Then call Algolia Add or Replace Record on my catalog index, using the Shopify product id (as a string) as the objectID.

On a products/delete event, call Algolia Delete Record on the same index with the Shopify product id (as a string) as the objectID. Do not fetch anything from Shopify in this branch. The webhook payload already tells us which record to remove.

For every Algolia record I write, project only a slim, allowlisted set of Shopify fields so indexing costs stay low and the record shape stays predictable:

- title: product.title

- handle: product.handle

- vendor: product.vendor

- product_type: product.product_type

- tags: product.tags split into an array of strings

- price: the first variant's price coerced to a number, or the minimum price across variants if you prefer

- image_url: product.image.src, or null if the product has no image

- availability: true if any variant has inventory_quantity greater than 0 (or the variant does not track inventory) and the product status is active, otherwise false

This is a deterministic, node-based workflow. No LLM reasoning, no branching beyond the three webhook event types. Every step is a documented operation (Shopify Get Product, Algolia Add or Replace Record, Algolia Delete Record) or a small pure-function projection over the Shopify payload.

Related prompts

Explore more prompts
Receiving dock console for inspecting and restocking Loop returnsSee which influencer creators actually drove Shopify salesMorning dispatch board for your local delivery runsAnswer Instagram and Messenger DMs with the order on screenWhite glove queue for the VIP customers waiting on youReturns and warranty claim desk that follows your policyFraud lookup desk for any email, phone, IP address or linkReview high risk Shopify orders before anything gets pickedFraud review desk for the Shopify orders you should holdMorning repricing console for Shopify with margin-safe rules