Attribute & Enrichment Issues
Sometimes the AI doesn't generate the output you expect. Use this guide to systematically trace back to the root cause: your prompt, acceptable values, source data, required fields, or dependencies.
When AI Generation Fails or Produces Unexpected Results
Follow this debugging checklist in order:
1. Check Your Prompt
Your attribute prompt tells the AI what to generate. An unclear or vague prompt leads to unexpected results.
Go to:
- Click Attributes in the sidebar.
- Find the problematic attribute and click Edit.
- Review the Prompt field (or AI Instructions).
Common prompt issues:
| Problem | Example | Fix |
|---|---|---|
| Too vague | "Generate a description" | Be specific: "Generate a 1-2 sentence product feature highlight suitable for product listings" |
| Conflicting instructions | "Be concise but include all details" | Choose one: "Keep to under 100 characters" or "Include all key features" |
| Missing context | "Fill this field" | Provide context: "Based on the product type and materials, generate appropriate care instructions" |
| Poor examples | Generic examples | Add examples showing the exact tone, length, and format you want |
To improve your prompt:
- Edit the prompt to be more specific.
- Add examples of good output.
- Specify tone and length.
- Click Save and re-run generation.
[SCREENSHOT: Attribute settings with prompt field highlighted]
2. Check Your Acceptable Values
If you set Acceptable Values (constraints), the AI must choose from your list. If a value doesn't match, generation fails or the field stays empty.
Go to:
- Click Attributes and open your attribute.
- Scroll to Acceptable Values (if enabled).
- Review the list.
Common acceptable value issues:
| Problem | Example | What happens | Fix |
|---|---|---|---|
| Too restrictive | Only "Red", "Blue", "Green" for a multi-color product | AI can't pick a single value; field stays empty | Add more options: "Red", "Blue", "Green", "Multi-Color", "Other" |
| Typos in values | "Small ", "medium", "LARGE" (inconsistent spacing/case) | AI can't match generated value to list | Standardize: all lowercase, no extra spaces |
| Value mismatch | Attribute is "Size" but acceptable values are "XL", "XXL" (no standard sizes) | AI generates "Large" but it's not in acceptable values; field rejected | Align acceptable values with your product data |
To debug acceptable values:
- Look at a product where generation failed.
- Check what the AI tried to generate (visible in logs or error messages).
- If the AI's choice wasn't in your acceptable values list, add it or expand the list.
- Re-run generation.
[SCREENSHOT: Acceptable values list with validation message]
3. Check Your Source Data
The AI uses your product data (name, current attributes, sources) to generate new attributes. If source data is missing or vague, output suffers.
Inspect the product's data:
- Go to your Catalog.
- Click on the product that generated poorly.
- Review all existing attributes and data in the product record.
- Scroll to Sources (if enabled) to see what documents/URLs you've linked.
Common source data issues:
| Issue | Impact | Fix |
|---|---|---|
| Missing product description | AI can't infer features, materials, or use case | Add detailed description or link a source (product page, PDF) |
| Vague product name | AI generates generic output | Improve product name with key details (e.g., "Cotton T-Shirt - Navy, Size M" instead of "Item #12345") |
| No linked sources | AI only uses existing attributes to infer new ones | Link URLs, upload PDFs, or paste text in product's Sources section |
| Incomplete data | Many attributes empty or null | Fill in key fields first; let AI use them as context |
To add sources to a product:
- Open the product.
- Scroll to Sources (or Enrichment Data).
- Click Add Source.
- Paste a URL or upload a document.
- Save and re-run generation.
[SCREENSHOT: Product detail page with sources section]
4. Check for Required Value Dependencies
If your attribute has a Required Values dependency, generation may be blocked if the dependency isn't met.
What is a Required Values dependency?
You can configure an attribute to only generate IF another attribute has a specific value. For example:
- "Generate Size Chart only if Product Type = Clothing"
- "Generate Care Instructions only if Material = Fabric"
Go to:
- Click Attributes and open your attribute.
- Scroll to Dependencies (or Conditional Generation).
- Check if there's a rule like "Only generate if [Other Attribute] = [Value]".
Common dependency issues:
| Problem | Example | What happens | Fix |
|---|---|---|---|
| Dependency field is empty | "Only generate if Product Type is set" but Product Type is blank | Generation is skipped; attribute stays empty | Fill in the parent attribute (Product Type) first |
| Dependency value doesn't match | Dependency: "Only if Color = Red" but product Color = "Crimson" | Generation is skipped | Update the dependency to match actual values or adjust product data |
| Reverse logic misunderstood | You want "Generate UNLESS Material = Plastic" | You set "Only generate if Material = Plastic" | Flip the dependency: choose "Exclude when" instead of "Only when" |
To fix a dependency:
- Edit the attribute.
- Review and adjust the Dependencies rule.
- Fill in the parent attribute for the product.
- Re-run generation.
[SCREENSHOT: Dependency configuration dropdown]
5. Check Product Data Context
Attributes can reference other attributes in their prompts using placeholders. If those referenced attributes are empty, the AI doesn't have the data it needs.
Example prompt with placeholder:
Generate a 1-2 sentence product highlight using the product name {product_name}
and its primary use case {primary_use_case}.
If {primary_use_case} is empty for that product, the AI works with missing context.
To debug:
- Open your attribute prompt.
- Look for
{field_names}or similar placeholders. - Check the product to see if those fields are filled in.
- If empty, fill them in and re-run generation.
[SCREENSHOT: Prompt editor with placeholder reference highlighted]
Common "Why Did the AI Generate X?" Scenarios
Scenario: AI Generated "Unknown" or "Not Available"
Causes:
- Prompt too vague or unclear.
- No source data or linked documents.
- Product missing required context fields.
- Acceptable values list empty or missing correct options.
Fix:
- Improve the prompt with examples.
- Add sources (URLs, documents) to the product.
- Fill in related product attributes.
- Ensure acceptable values are comprehensive.
Scenario: AI Generated Something Off-Topic
Causes:
- Prompt conflicts with source data.
- Source documents are irrelevant or from wrong product.
- AI is misinterpreting placeholder fields.
Fix:
- Review the prompt for clarity.
- Check linked sources—are they for the correct product?
- Remove or replace irrelevant sources.
- Re-run generation.
Scenario: Generation Completed But Field is Still Empty
Causes:
- Generated value didn't match acceptable values.
- Dependency condition not met.
- AI generated null or empty value (couldn't infer).
Fix:
- Check acceptable values—did AI try something not on the list?
- Check dependencies—is the parent attribute filled in?
- Improve the prompt and source data.
- Try manual generation to see error details.
[SCREENSHOT: Empty attribute field with error icon and tooltip]
Using Manual Generation to Debug
When auto-generation isn't working, use Manual Generation to see more details:
- Go to your Catalog and select products.
- Click the Generate button (or right-click > Generate for Selection).
- Choose the specific attribute to generate.
- Merchkit processes and shows a preview of results before applying.
- If generation fails, you'll see an error message with clues.
- Adjust settings (prompt, sources, etc.) and retry.
[SCREENSHOT: Manual generation preview with error message]
Performance & Rate Limits
If generation is slow or times out:
- Large batch: Generating for 10,000+ products takes time (usually minutes to hours depending on batch size).
- Long prompts: Very detailed prompts with lots of placeholders slow down processing.
- Rate limits: On free or low-tier plans, you may queue longer during peak hours.
To speed up:
- Generate for smaller batches first (100 products).
- Simplify the prompt if possible.
- Upgrade your plan for priority processing.
- Avoid peak hours (usually 9 AM–5 PM EST).
Still Stuck?
If your attribute is still not generating correctly:
- Export a sample: Go to Catalog > Select a few products > Export to CSV. Include the problematic attribute.
- Check the generation log: Click the attribute, then "View Generation History" to see attempts and errors.
- Contact Support: Email support@merchkit.com with:
- Your attribute name and prompt.
- A sample product that failed.
- Screenshot of the attribute settings.
- Expected vs. actual output.
Next: Troubleshoot integration connection and sync issues in Integration & Field Mapping Errors.