Vibeleaderboard
← All Intel
Intel / article

Fine Tuning Agent Shopify Flow

Source
shopify.engineering
Author
Shopify Engineering
Date

Context

Shopify improved the offline accuracy of an assistant that builds workflows by changing the language the model writes. Its Flow automation system stores workflows in a deeply nested JSON format. The team instead trained a Qwen model (Qwen3-32B) to express workflows as Python, then converted that code into Flow's production format with a converter.

With the same data, Shopify reports that switching to Python improved syntactic correctness by 22 points and semantic correctness by 13 points on its of 300 hand-crafted examples. Syntactic correctness checks whether the workflow would run without errors, and semantic correctness asks whether it does the intended task. Shopify says it round-trip tested every workflow merchants created through its assistant, converting JSON to Python and back, and verified the result matched the original exactly. Benchmark parity did not carry over automatically: in a 1% production rollout, Shopify reported workflow activation 35% lower than its earlier -based agent, which it then addressed with further data and .

Terms in this piece · Glossary
  • Training — The process that adjusts a model using examples and a measure of how well it performs.
  • Benchmark — A fixed set of tasks with a stated way of scoring them, used to compare models or setups.
  • Prompt — Information or instructions supplied to a model; in a chat, the request you type is often called your prompt.
  • eval — A repeatable test for AI quality — a set of tasks plus scoring — used the way software teams use test suites, because model output is too variable to judge by eyeballing.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Read the source shopify.engineering
Tools in this story
More from Shopify Engineering
Recommended reads