Where does the llms.txt file go in Shopify?
The llms.txt file is a template in your theme, not a page you create in the admin. The llms.txt.liquid template is located in the templates directory of the theme, and it controls the file served at /llms.txt.
The lookup order is llms.txt.liquid first, then agents.md.liquid, then the Shopify default, so llms.txt.liquid takes precedence over agents.md.liquid. A dedicated llms.txt.liquid changes only the /llms.txt address, not /agents.md or /llms-full.txt, so the other agent files keep their current output.
Only the request object and the agents object are available. Keep the template short, since a long file is harder to review after each theme update.
How do I add product schema with structured_data?
The structured_data filter converts an object into a schema.org structured data format. It works on product and article objects, and it returns text you can place inside a script tag with the type application/ld+json.
Product objects without variants are output as a schema.org Product. Products with one or more variants are output as a ProductGroup, and article objects are output as an Article. Place the script only in templates that render one of those objects.
Test on one product before you roll the change across templates. Confirm the output is valid text inside the script tag, and that no other tool on the page adds a second Product block, which can confuse search engines. Products with several variants are the best test, because they produce a ProductGroup rather than a flat Product.
Where do I put head code and the title tag?
The title tag is only included in one file of your Shopify theme: theme.liquid. The code is inside the head element in theme.liquid, so head metadata you add belongs in that file rather than in a page template.
Before you edit it, copy the current file so you can restore it. Save the change to your published theme, then reload two or three pages to confirm the title tags still render.
Keep a copy of the theme file before any edit, and note which line you changed. If the page breaks after a save, restore the copy and check the head element again before you publish. Save the change only after the page renders with no Liquid errors.