Spiral gives your agent every tool with one account. Browse the tools →

Grok Build · E-commerce

How to Use Shopify product details in Grok Build

Fetch one product's description, media, options, and matching size or color combinations with availability signals. Use it after choosing a product to check the exact buying option.

Prompts to try with Shopify product details in Grok Build

Copy an example into Grok Build, or ask in your own words.

Find a shoe at allbirds.com, then use Shopify product details to build a size and color selector from the returned options and availability signals.

Shopify product detailsGrok Build
Try asking
  • Find a hoodie at tentree.com, then use Shopify product details to populate the project's product view with its description, media, and matching buying options.

  • Use Shopify product details to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Shopify product details and tell me what changed since last week.

  • Check Shopify product details and summarize what you find in three bullet points.

How to set up Shopify product details in Grok Build

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Add --scope project to add Spiral to the current repository only. No header and no client ID or secret: Grok registers itself with Spiral.

    grok mcp add --transport http spiral https://api.spiral.ai/mcp
  2. Sign in

    Start grok and run /mcps. Select Spiral and press i. Your browser opens: sign in to Spiral, pick the organization and click Authorize. No API key.

  3. Check it
    grok mcp doctor spiral

Use the Spiral skill

  1. Send Grok Build this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Shopify product details

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "alexandria",
        "model": "shopify/storefront/get_product",
        "input": {
          "product_id": "<product_id>",
          "store_domain": "<store_domain>"
        }
      }'

Then paste one of the prompts above: Grok Build finds Shopify product details on Spiral, shows the price and runs it.

Shopify product details providers and prices

Spiral runs Shopify product details through Alexandria. Open a card for today's price, with every fee included.

AlexandriaE-commerce
Shopify · Storefront: Product details
shopify/storefront/get_product

What can you do with Shopify product details in Grok Build?

Build a shopping comparison that shows one Shopify store's product descriptions, images, and buying options. Use returned catalog records to populate the interface and product details to narrow the buyer's selection.

Choose the right clothing option

Find a shirt, refresh a shortlist, and inspect the chosen product's size and color availability before recommending a buying option.

Compare products within one store

Build a buyer-facing comparison from product descriptions, media, and available options. Use search for discovery, lookup for known choices, and details for the final selection.

Refresh a shopping shortlist

Revisit products a buyer is considering, retrieve their catalog records, and inspect the preferred item. Search for alternatives if the buyer wants more choices.

Find an alternative to an unavailable item

Check the original product and its buying options, then search the same store for replacements. Compare the replacements against the buyer's requested features.

Make a gift shortlist

Find gifts matching a stated interest, compare a few returned products, and inspect the options for the buyer's favorite.

Check product claims before recommending

Use returned descriptions to check whether shortlisted products mention a requested material or feature. Show the supporting product text alongside the recommendation.

Questions about Shopify product details in Grok Build

Can Grok Build use Shopify product details?

Yes. Add Spiral to Grok Build as an MCP server, and Grok Build can find and run Shopify product details like any built-in tool.

How much does Shopify product details cost in Grok Build?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Grok Build plan is separate.

Do I need an Alexandria account to use Shopify product details in Grok Build?

No. Spiral runs Shopify product details on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up Shopify product details in Grok Build?

About two minutes: add the server, then sign in, then check it.

Does Grok Build wait while Shopify product details runs?

Shopify product details runs in the background. Grok Build starts the run, checks on it and gives you the json when it's ready.

Does Shopify Storefront Catalog search every Shopify store?

No. Storefront Catalog is scoped to one merchant's storefront, so a result from one store does not establish what another store sells.

Does a search page represent the complete matching catalog?

Not necessarily. Search uses cursor pagination, and Shopify's catalog protocol allows fewer results than the requested page size.

How many known products can a lookup resolve?

Storefront Catalog accepts up to 10 product or purchasable-option identifiers in one lookup. A missing identifier can reduce the number of products returned.

Can unavailable products appear in the data?

Yes. Shopify's Storefront Catalog extension lets search and lookup include unavailable items, so presence in the catalog does not by itself mean an item is available to buy.

Does product detail return every size and color combination?

The details response includes product options, but the returned buying combinations can be a subset matching the effective selections. Use its option availability signals when narrowing a purchase choice.

Get started

Start using Shopify product details in Grok Build

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Grok Build:

Set up Grok Build

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options