Part 5: How to Add, Rename, and Delete AI-Generated Blocks in Shopify

Brandon Landgraff

Shopify’s AI-generated blocks are a great way to quickly add smart, editable content to your store — especially if you’re using the new Horizon theme or building custom sections.


In this tutorial, I’ll walk you through:

  • How to add an AI-generated block in the theme editor
  • How to rename the block label so it’s easier to manage
  • How to delete AI blocks cleanly
  • (*Only a tiny bit of code if you want custom labels)


Step 1: Add a Section to Hold the AI Block

 

  1. Open the Shopify theme editorClick Add section
  2. Choose a section that supports blocks (like a custom section)
  3. Add it to your product or page template


This gives you a container to drop the AI-generated block into.


Step 2: Add an AI-Generated Block


Inside the section:

  1. Click “Add block”
  2. Scroll to the AI-generated block option (Shopify may label it as “Let Shopify help” or “Generate content”)
  3. Choose a prompt like “Product benefits” or “Customer guarantee”
  4. Shopify will insert a block with suggested content


You can now customize that block’s content directly in the editor — no code required.


How to Rename an AI Block (Optional, Minimal Code)


By default, AI-generated blocks might just be called “Text block” or something generic. If you want to rename it (so it’s easier to manage in the editor), you’ll need to tweak the block file, not the section.


Here’s how:

  1. Go to Actions > Edit code
  2. In the blocks/ directory, find the file that Shopify generated (e.g. ai-generated-text-block.liquid)
  3. Scroll to the schema at the bottom
  4. Change the "name" value to something more descriptive
  5. Save — and now in the theme editor, that block will show up with your custom name
Pro tip: You can rename it anything just make sure the name helps merchants know what the block is doing.

How to Delete an AI Block


Deleting AI blocks is as easy as any other block:

  • In the theme editor, hover over the block
  • Click the trash icon or “Remove block”
  • That’s it


If you’re testing different ideas, don’t be afraid to generate a few and remove what doesn’t fit.


Final Thoughts


AI blocks are a super useful way to:

  • Add smart content to a section quickly
  • Let clients or merchants edit content easily
  • Stay update-safe: they don’t get wiped during theme updates


And by combining them with sections you already have, or ones you build using Flexi, you can get the best of both: speed and control.

Back to Resources