The text layer in Flexify's image editor lets you overlay dynamic product information - like the product title, price, or variant options - on your feed images. In this article, you'll learn how to use Shopify's Sidekick AI to create dynamic text layers, including conditional messages based on product tags.
Let Sidekick design your text layer #
Sidekick is Shopify's built-in AI assistant, and the Sidekick integration in Flexify is currently in beta. Because Sidekick doesn't know Flexify's template syntax out of the box, we provide a ready-made prompt that teaches it the supported variables, filters, conditional logic, and text styling options.
- Below the text layer, copy the prepared Sidekick prompt using the Copy AI Instructions button.
- Open Sidekick in your Shopify admin and paste the prompt. Sidekick now knows the template syntax supported in Flexify's text fields.
- Describe the text layer you want. For example:
Create a title and make it bold. Add a subtitle at 50% of the title's size that lists all the options of the product.
You can also ask Sidekick to create conditional text based on Shopify product tags. For example, a clothing merchant can display different material labels within the same Image Template:
Create a text layer that displays "Organic Cotton" for products tagged "Organic Cotton", "Linen" for products tagged "Linen", and "Merino Wool" for products tagged "Merino Wool". Use the tags variable with the contains operator and use if and elsif conditions so only the first matching material is displayed. Display nothing when a product has none of these tags.
This lets you automatically display the relevant material for each product without creating separate Image Templates. For more examples and supported Liquid syntax, including if, elsif, else, contains, and supported filters, see Text Layer Syntax Reference and Styling.
- Copy Sidekick's answer, switch to the code view of the text layer in Flexify, and replace the current content with it.
That's it - your text layer now displays dynamic content automatically, whether you're showing product options or customizing messages based on Shopify product tags.
Iterate on the design #
Since Sidekick remembers the conversation, you can keep refining the result. Just ask for the change you want:
Add a background color to the subtitle and make it light purple.
Copy the updated snippet, paste it into the code view again, and the change appears in your Image Template. Repeat until you're happy with the design.
This is how Sidekick helps you get the most out of Flexify's text layer - describe what you want in plain language, and let the AI handle the template syntax.