Skip to content
Roman-Leonid Yurchenko

Using AI to validate a Shopify Creator gift flow

Ikigai CasesConsumer goods2026
  1. 01I used AI to review the supplied implementation and checked its findings against source, tests, and live checkout evidence.
  2. 02I fixed gift shipment matching and added guarded delivery ordering for eligible free shipping.
  3. 03I completed the live setup and reconciled 200 invitation codes into a committed results ledger.

Role

Shopify Plus Engineer responsible for AI-assisted review, checkout integration, and release verification. I reviewed the Claude-assisted implementation supplied by Ikigai's team, directed AI-assisted changes, and performed the live Admin and checkout checks. Codebase inherited Creator discount, survey flow, and bundle builder within an existing Shopify app and theme.

Scope covered

  • Shopify Online Store 2.0
  • Shopify Discount Functions
  • Delivery Customization Functions
  • Admin GraphQL and discount metafields

Context

Ikigai Cases wanted invited creators to build a personalized gift and reach a checkout total of $0. One personal code needed to cover an eligible two-pack, its allowed engravings, and an eligible shipping option. Additional merchandise had to remain chargeable.

Ikigai's team supplied a Creator discount extension built with Claude and asked me to review it, deploy it if suitable, and check the live flow without placing an order. The supplied implementation already had gift rules and tests. The work crossed an existing storefront survey, bundle builder, Shopify Functions, discount configuration, and checkout.

My role

I used AI to turn Ikigai's request into acceptance criteria and an iterative review plan. I directed source inspection, asked for reproducible findings, and checked proposed changes against the intended customer journey. I then used AI assistance for implementation, test preparation, and the operational requests I executed in Shopify.

Ikigai's team owned the initial Creator Function, its specification, and the later batch CSV and script. The survey, builder, and app foundations already existed. My contribution covered the subsequent review, a shipment fix, the delivery customization, integration verification, and code-pool handoff. I kept Ikigai's original specification intact in the final app history.

The actual challenge

The straightforward success signal was incomplete: free merchandise in checkout did not establish that the intended Function had run or that the selected shipping method was free.

A valid gift could contain a Weekly case or separate AM and PM halves, plus a travel case and engraving lines. Shipment membership could expose the carrier, its children, or both. The discount had to follow the selected gift through those shapes.

The checkout also retained creator attributes after a code was removed. Those attributes described the journey but could not establish an applied discount or authorize a shipping change.

System design

I separated three responsibilities. The existing Creator Function selected the eligible gift and emitted product and shipping discounts. A separate Delivery Customization Function controlled rate ordering. Admin configuration connected each invitation code to both discount classes and the metadata used by that customization.

I reused the gift and service-selection helpers so both Functions chose the same gift and shipment. The delivery extension required matching Admin metadata and actual Creator product-discount allocations covering the selected gift. Missing evidence produced no move.

I also introduced observation and enforcement modes. Observation logged the candidate without changing rate order. I used that stage to inspect real Function input and confirm that the matching service became free before enabling enforcement.

Reviewing the supplied implementation

I used AI to trace the cart and shipment contracts, then required a concrete regression for the shipment issue it identified. The selected gift originally contributed its discounted child IDs to shipment matching. I retained its validated carrier ID as well and limited the unmatched fallback to a single shipment.

Eight regression cases covered the change. Historical QC recorded four failures against the original implementation, followed by all eight passing after the fix. They included carrier-only membership and an eligible rate belonging to an unrelated shipment.

The larger review kept attribution clear. I preserved Ikigai's gift and engraving approach and checked the existing Free Nano and LABOR extensions as release dependencies. Recorded verification covered 306 unit tests across four extensions, builds, targeted TypeScript checks, and compiled scenarios. I treated those results as component evidence and tested checkout separately.

Verifying the live checkout

The first live screenshots showed two discount codes. I checked the saved configuration through Shopify and found a native product discount paired with a native shipping discount. That checkout had not exercised the new Creator Function.

I created an app-based QA discount, read back its association and settings, and applied both PRODUCT and SHIPPING classes through one code. The tested gift became free, and Priority Mail was available at no charge. Checkout initially selected paid Standard Shipping, leaving a $5.30 total including tax.

I added the guarded delivery customization, inspected its observation logs, and enabled enforcement after confirming the applied-discount evidence. A fresh Weekly + Mission checkout then selected free Priority Mail automatically and totaled $0. Original service names and alternatives stayed visible.

I checked a normal Nano checkout and a gift with an extra Nano. The extra remained $42 plus tax while the gift and eligible shipping stayed free. I also cleared the storefront's shipping-code suffix and verified that the survey/cart flow applied only the app code.

Preparing staff invitations

Ikigai then needed staff with Shopify access to distribute invitations. A usable code-creation interface was not available, so Ikigai's team chose a pre-made pool and supplied 200 codes with a batch script.

I reviewed that script before execution. Its CLI route was unsuitable for the production workflow available to me, and it reset its results file on startup. I used the GraphiQL route already proven by the QA code, created one pool code, and read its saved configuration and shipping marker back before continuing.

I used AI to prepare the remaining requests in small groups and reconcile each response against the CSV. Each request included the exact code's shipping-selection marker, single-use settings, both discount classes, and disabled combinations.

The assistant's first grouped request used quoted GraphQL enum literals. I stopped at the validation error, corrected the requests, and kept the creation count unchanged until successful responses arrived. That check applied to the assistant's output as well as Ikigai's supplied code.

I recorded all 200 unique code and discount-ID pairs and committed the results for Ikigai's independent verification.

Result

By October 2026, the recorded fresh gift checkout reached $0 with one app code and free Priority Mail selected automatically. Paid-extra and ordinary shopper checks supported the intended separation. Ikigai's team subsequently reported successful Weekly and AM-PM gift checks, including an extra paid case.

The completed pool contained 200 created codes with recorded creation responses. Full independent read-back of the remaining 199 codes and shipping markers, followed by the distribution-skill switch, remained with Ikigai's team.

Validation stayed bounded. I stopped before submitting an order, so completed order attributes and post-redemption enforcement were outside this QA. Unsupported-service destinations remained subject to paid shipping. Removing a code stopped Creator discounts and ordering operations, but a previously selected paid Priority option could persist. The captured automatic-selection proof did not cover every configuration or address.

Takeaway

I used AI most effectively when I gave it a concrete question and required evidence before acting on the answer. Source review, regression tests, saved discount configuration, Function logs, and fresh checkout behavior answered different questions. Keeping those checks distinct helped me turn a supplied implementation into a tested customer flow and a traceable staff handoff.

Have a problem shaped like this one?

Tell me what you have already tried. I reply within one business day.