How to Generate Liquid Code Using AI ?

How to Generate Liquid Code Using AI ?

The AI Liquid Generator helps you create custom Shopify Liquid syntax using plain-language instructions instead of writing code manually. Describe your desired outcome, and the AI automatically generates the corresponding Liquid code for your export fields.


1. Select an Export Field: Open the specific export field you want to customize.
2. Locate the AI Liquid Section: Scroll down to the AI Liquid section within the field settings.
3. Enter Your Prompt: Type a clear description of what you want the field to do.
4. Generate the Code: Click Generate to produce the corresponding Liquid syntax.

Example prompt: Combine email and shipping address — The AI uses your instructions and the selected export field context to generate the exact Liquid code.

AI Liquid Generator Workflow Breakdown

1. Enter Your AI Prompt
Provide simple, direct instructions describing how you want the export data formatted or combined. The AI analyzes both your prompt and the selected export field to generate accurate syntax.

Keep prompts specific to the data transformation you need (e.g., concatenating fields, formatting dates, or adding conditional text).

2. Review and Edit the Generated Liquid Code
Once generated, the Liquid syntax appears under Liquid code with an AI generated label.

- Manual Editing: Click directly inside the code editor to adjust or refine the generated Liquid syntax as needed.
- Reset Code: Click Reset to clear the current output and regenerate a fresh version.
- Manual Override: Select Write Liquid code manually if you prefer to bypass the AI and input your own Liquid syntax from scratch.

3. Check the Preview Output

- Below the Liquid code editor, the Preview section displays a live sample output based on your generated Liquid code.
- Always review the Preview output to confirm the field values format properly before saving your feed changes.