Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hi there,
I want to use openAI text generation in order to generate a biography of famous people. The idea is to customize the prompt with metafields variables that contain first- and lastname information of the person.
Background. We run an autograph store with unique items.
so this is my current prompt
Write a 500 words and 6 paragraphs biography text about
{{ product.metafields.customAttributes.vorname }} {{ product.metafields.customAttributes.nachname }}
without a title formatted in HTML only with <p> tags
The prompt works fine without the metafield variables. I tried some variants in syntax but shopify keeps saying
"customAttributes" is invalid. Replace this variable.
So what would be the right syntax?
Thanks for your help folks
Florian
Solved! Go to the solution
This is an accepted solution.
That syntax does not currently work for metafields in Flow. Also, "customAttributes" are not the same thing as metafields.
There are many threads showing how to access metafields using a loop or "where" clause. Here's the where clause method for a different type of metafield:
This is an accepted solution.
That syntax does not currently work for metafields in Flow. Also, "customAttributes" are not the same thing as metafields.
There are many threads showing how to access metafields using a loop or "where" clause. Here's the where clause method for a different type of metafield:
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024