Configuring an Attribute for AI Enrichment
This is the core article for setting up attributes in Merchkit. You’ll walk through the Configure Attribute panel, which is where you tell Merchkit’s AI exactly what to generate.Opening the Configure Attribute Panel
- Go to Workspace → Attributes
- In the attributes table, click any attribute name (or the row)
- The Configure Attribute panel slides open on the right side
Understanding the Configure Attribute Panel
The panel contains all the settings you need to configure an attribute. Let’s walk through each one:Use AI Toggle
Located at the top of the panel, the Use AI toggle controls whether Merchkit’s AI will generate or enrich values for this attribute.- Toggle ON — The AI will generate or enrich this attribute when you run enrichment
- Toggle OFF — This attribute is a reference field only; the AI ignores it
Attribute Name
The name of your attribute (e.g.,short_description, brand, care_instructions). You can edit this if needed.
Field Type
The data type that this attribute stores. Options include:- Single Line Text — Short text values (names, SKUs, colors)
- Number — Numeric values (prices, inventory counts)
- Image — Product images or image references
- Formula — Computed values based on other fields
- Reference Lookup — Links to a single related record
- Collection Reference — Links to multiple related records
- Record Reference — Links to a single record in another entity type
Product Data: Tell the AI What to See
The Product Data section shows you which product fields the AI can access when generating this attribute. By default, Merchkit includes title and description, but you can customize this. Click Product Data to expand it and see which fields are selected. You’ll see something like:- If you’re generating a “brand” attribute, make sure the product description is included (it often mentions the brand)
- If you’re generating “size_range”, include price (expensive items may come in more sizes)
- If you’re generating something unrelated to price, you can uncheck it to reduce noise
Image Source: When You Need the AI to Look at Pictures
The Image Source section tells the AI which product images to analyze when generating this attribute. You’ll only use this if your attribute requires image analysis. Examples:- “product_color” — the AI looks at the image to detect color
- “has_packaging” — the AI looks for packaging in the image
- “style_category” — the AI analyzes the visual style
Prompt: Your Instruction to the AI
This is the most important field. The Prompt is your instruction to the AI—it tells the AI exactly what to generate. Example prompts:{{ }} tags. For example:
{{product_title}} will be replaced with the actual product title.
To insert a reference:
- Type
@in the prompt field, and a dropdown of available attributes will appear - Or click the Insert Value button below the prompt field to browse and select an attribute
Acceptable Values: Constrain What the AI Can Return
The Acceptable Values field lets you restrict the AI’s output to a specific list of values. Use this when you want to ensure consistent, controlled outputs. Enter comma-separated values. For example:- Size attributes (where you want standardized sizes)
- Category or type attributes (where options are fixed)
- Status attributes (approved, rejected, needs_review)
Edit with AI Button
Click Edit with AI to let Merchkit’s AI help you refine your prompt. Describe what you want to change, and the AI will suggest improvements. For example:- “Make this prompt simpler”
- “Add a requirement for the output to be under 50 characters”
- “Make sure it prioritizes the product images”
The Relationship Between These Settings
Here’s how all these pieces work together:- Product Data + Image Source = What the AI sees (its context)
- Prompt = What the AI does (your instruction)
- Acceptable Values = What the AI is allowed to return (constraints)
| Setting | Value |
|---|---|
| Use AI | ON |
| Field Type | Single Line Text |
| Product Data | title, description, price |
| Image Source | Primary Image |
| Prompt | Analyze the product image and generate a compelling single-word color name. |
| Acceptable Values | Red, Blue, Green, Black, White, Brown, Gray, Pink, Purple, Orange, Yellow |
Saving Your Configuration
After you’ve configured all the fields:- Click Save Changes at the bottom of the panel
- Merchkit will save your configuration
- The attribute is now ready for AI enrichment
Common Configuration Issues
Issue: “The AI is giving me output that doesn’t match my Acceptable Values”- Make sure your Acceptable Values are spelled exactly as you want them
- Re-run enrichment on this attribute after saving changes
- Check that the prompt isn’t asking for something outside your acceptable values
- Reduce the Product Data fields — uncheck fields that don’t help
- Make your prompt more specific (e.g., “Return only the primary material, nothing else”)
- Add Acceptable Values to constrain the output
- Open Configure Attribute, expand Image Source, and select which images to include
- Re-run enrichment
What’s Next?
- To write better prompts: Writing Effective AI Prompts
- To use acceptable values strategically: Using Acceptable Values to Constrain AI Output
- To learn about field types in detail: Field Types
- Ready to run enrichment? Running Your First Enrichment