Shopify fine-tunes a tool-calling agent for Flow: 2.2x faster, 68% cheaper, outperforms closed models
Store owners who are not engineers found building automation workflows from a blank canvas in Shopify Flow daunting. The feature also faced a cold start problem: no production conversations existed to learn from because Sidekick had not yet been deployed.
Offline benchmark results showed parity with the prompt-based agent, but initial production deployment revealed the fine-tuned model had a 35% lower workflow activation rate because synthetic training data did not cover real user requests such as editing existing workflows, handling email configurations, and working with third-party integrations.
The fine-tuned model is 2.2x faster and 68% cheaper than the closed-model baseline, outperforms closed models, and now serves the majority of production traffic, with a continuous weekly retraining flywheel that closes quality gaps identified in production.
Show all 7 reported metrics
Frequently asked questions
What did this team achieve with this AI workflow?
The fine-tuned model is 2.2x faster and 68% cheaper than the closed-model baseline, outperforms closed models, and now serves the majority of production traffic, with a continuous weekly retraining flywheel that close…
What tools did this team use?
Qwen3-32B, H200 GPUs, FSDP, Tangle, CometML, HuggingFace, CentML, Sidekick.
What results were reported?
Inference speed improvement: 2.2x faster; Inference cost reduction: 68% cheaper; Workflow activation rate gap at initial deployment vs prompt-based agent: 35% lower; syntactic correctness improvement (Python DSL vs JSON DSL): 22 points (source-reported, not independently verified).
What failed first in this deployment?
Offline benchmark results showed parity with the prompt-based agent, but initial production deployment revealed the fine-tuned model had a 35% lower workflow activation rate because synthetic training data did not cov…
How is this ecommerce ops AI workflow structured?
Sample production workflows → Generate synthetic training examples → Translate to Python DSL → Fine-tune Qwen3-32B → Evaluate against benchmark → Deploy to production traffic → Score, route, and retrain.