HELP - Using AI to generate blocks in product information

Hi all,

Hoping someone knows how to resolve this issue.

I’m working within Dawn and I’m using AI to generate sections within the body of my website which works just fine. However, when I try and generate a block for the ‘product information’ area, it seems to get stuck and just keeps making sections - infact there is no generate option for blocks… I’m not sure if there’s a work around for this but it would be great to be able to generate blocks to sit under the product price and such areas.

Hope that makes sense! Please let me know if you need more info.

Thank you,

Tom

@thomasb1998 don’t spam duplicate posts, avoid crying “HELP” it’s not smart or clever in trying to game the system.

Everyone needs help it’s rude to scream it and only makes people AVOID helping you.

READ: https://community.shopify.com/post/2254458

https://community.shopify.com/post/2811328

Thanks for the advice Paul. I was simply trying to reword my previous post as I feared I wasn’t overly clear with what I was asking, this is my second try so I wouldn’t exactly class that as spam. I wasn’t trying to be ‘smart’, ‘clever’ or ‘game the system’ as you condescendingly claim.

The intention wasn’t to ‘scream’ either, as I’m sure your intention isn’t to screm ‘READ’ in your response, as that would only make people not want to read…

Thanks,

Tom

AI indeed generates blocks, but not every section would accept them.

That’s why it would rather create an empty section and put a block in it.

One would need to modify the section code for it to accept generated blocks so that the schema has this:

"blocks": [
    {
      "type": "@theme"
    },
 ...

And then liquid code must have https://shopify.dev/docs/api/liquid/tags/content_for

{% content_for 'blocks' %}

to be able to accept blocks generated by AI.

Hi @thomasb1998

I’ve created a post to guide how to create an AI-generated block in any theme. Please check it out here https://bify.app/blog/how-to-create-ai-generated-theme-blocks-with-shopify-magic

Hi @thomasb1998 please share the updated code of main-product.liquid in a text file

Hello @thomasb1998
Okay dear, I can help you. Can you please send me the store access so that I can check and give you a proper update?

I have been having this same issue. What finally fixed it for me was to delete some sections that I wasn’t using. It seems that there is a 25 section max in my theme. Once I deleted some, it worked right away.

I am just a non-technical user running a happy-vibes panty business so no promises, but it did work for us.

Good luck!

Gibboney

Southern Fancy