Is the doc bot docs, or not?

Is the doc bot docs, or not?
Upgrading my Shopify email notification templates this morning, I asked Shopify’s LLM-powered developer documentation bot this question:
What’s the syntax, in Liquid, to detect whether an order in an email notification contains items that will be fulfilled through Shopify Collective?
I’d done a few traditional searches, but couldn’t find an answer, so I thought, okay, let’s try the doc bot!
The reply came, quick and clean:
{% if order.tags contains 'Shopify Collective' %}Some items in your order are being fulfilled by a partner merchant through Shopify Collective. {% endif %}
Looks great. I added this code, but it didn’t work; the condition wasn’t being satisfied, even when orders had the necessary tag, visible on the admin screen.
Shopify doesn’t provide a way to test unconventional email formats without actually placing real orders, so I did my customary dance of order-refund, order-refund, order-refund. My credit card is going to get locked one of these days.
Turns out, the Shopify Collective
tag isn’t present on the order at the time the confirmation email is generated. It’s added later, possibly just moments later, by some other cryptic Shopify process.
I don’t think this is documented anywhere, so in that sense, it’s not surprising the documentation bot got it wrong. My question is: what’s the point of a doc bot that just takes a guess?
More pointedly: is the doc bot docs, or not?
And very pointedly indeed: what are we even doing here??
I’ve sent other queries to the doc bot and received helpful replies; I’d categorize these basically as search: “How do I do X?” “What’s the syntax for Y?” But I believe this is a situation in which the cost of bad advice outweighs the benefit of quick help by 10X, at least. I can, in fact, figure out how to do X using the real docs. Only the doc bot can make things up.
If it was Claude making this kind of mistake, I’d be annoyed but not surprised. But this is Shopify’s sanctioned helper! It waits twinkling in the header of every page of the dev site. I suppose there are domains in which just taking a guess is okay; is the official documentation one of them?
I vote no, and I think a freestyling doc bot undermines the effort and care of the folks at Shopify taking the time to write documentation that is thorough and accurate.
P.S. One working answer to my question looks like this:
{% assign has_collective_item = false %} {% for line_item in line_items %} {% if line_item.product.tags contains 'Shopify Collective' %} {% assign has_collective_item = true %} {% endif %} {% endfor %}To the blog home page
What's Your Reaction?






