What Are Attribute Prompts?
A prompt is a set of instructions sent to the AI model that defines:- What information to include (data sources)
- How to write it (tone, style, format)
- Constraints to follow (length limits, required elements)
Every attribute type has a default prompt that works well for most use cases. Customization is optional but powerful for brand-specific needs.
Prompt Components
Prompts consist of three main parts:1. Data Sources
Data sources are the product fields the AI can reference when generating content. Common Data Sources:- Product Title: The product name
- Product Description: Existing description (if any)
- Primary Collection: The main category/collection
- Brand: Product brand name
- Attributes: Other enriched attributes (color, material, size)
- Price: Product price
- Images: Product photos (for visual analysis)
- Variants: Color/size variations
2. Instructions
Instructions define how the AI should write the content. Elements to Specify:- Tone: Formal, casual, playful, technical, luxury, budget-friendly
- Style: Descriptive, persuasive, informational, story-driven
- Focus: Features, benefits, use cases, styling tips, technical specs
- Length: Word count or character count
- Format: Paragraph, bullet points, structured layout
3. Constraints
Constraints are hard limits that content must meet. Common Constraints:- Character Limit: Max/min length (e.g., “Max 160 characters”)
- Word Count: Specific word count range (e.g., “150-200 words”)
- Required Keywords: Must include certain terms
- Format: HTML, plain text, markdown
- Validation Rules: Must not contain certain phrases, must include specific elements
Accessing Attribute Configuration
1
Navigate to a Product or Collection
Open any product detail page or collection view
2
Find the Attribute
Locate the attribute you want to configure (e.g., “Product Description”)
3
Click Configuration Icon
Click the gear/settings icon next to the attribute
4
Attribute Prompt Modal Opens
You’ll see the configuration interface with three sections: Prompt, Constraints, and Configuration
Configuring Prompts
Prompt Section
- Data Sources
- Instructions
- Layout Builder (HTML Attributes)
Select which product fields the AI can use:Use the autocomplete to add data sources:
{{title}}- Product title{{description}}- Existing description{{collection}}- Primary collection name{{brand}}- Brand attribute{{color}}- Color attribute{{material}}- Material attribute{{price}}- Product price
Constraints Section
Set hard limits for generated content:Character Limits
Character Limits
- Min Characters: Minimum length (e.g., 100)
- Max Characters: Maximum length (e.g., 500)
Word Count
Word Count
- Min Words: Minimum word count (e.g., 50)
- Max Words: Maximum word count (e.g., 200)
Format Requirements
Format Requirements
- HTML: Content must be valid HTML
- Plain Text: No markup allowed
- Markdown: Markdown formatting
Force Classification
Force Classification
For single/multi-select attributes:
- Enabled: AI must choose from predefined values
- Disabled: AI can generate free-text instead
Configuration Section (Advanced)
- Model Selection
- Temperature
- Inheritance
Choose which AI model to use:
- Gemini (Default): Fast, cost-effective, good quality
- GPT-4: Highest quality for complex content
- Claude: Strong reasoning, creative content
Testing Prompts
Before applying a new prompt to thousands of products, test it:1
Configure Prompt
Set up your data sources, instructions, and constraints
2
Enable Test Mode
Click “Test Prompt” in the configuration modal
3
Select Test Products
Choose 3-5 representative products to test with
4
Generate
Cernel runs the prompt on your test products
5
Review Results
See how the AI interprets your prompt with real product data
6
Refine
Adjust the prompt based on test results and re-test
7
Save & Apply
Once satisfied, save the prompt for production use
Prompt Examples
Example 1: Product Description (E-commerce Fashion)
Example 2: Meta Description (SEO)
Example 3: Care Instructions
Example 4: Product Attribute (Color)
Hierarchical Prompts
Use prompt inheritance to customize by collection while maintaining a base template:1
Set Base Prompt
Configure a default prompt at the organization level
2
Override for Collections
For specific collections (e.g., “Luxury Items”), create custom prompts that inherit from the base but override key elements
3
Automatic Selection
When enriching, Cernel automatically uses the most specific prompt:
- If product is in “Luxury Items” → use luxury-specific prompt
- If product is in “Electronics” → use electronics-specific prompt
- Otherwise → use base organization prompt
AI-Powered Prompt Improvement
Cernel includes an AI-powered Prompt Improvement feature:1
Write Initial Prompt
Create your prompt as best you can
2
Click 'Improve with AI'
Let Cernel’s AI analyze your prompt
3
Review Suggestions
The AI suggests improvements:
- Clearer instructions
- Better structure
- Missing constraints
- Optimal data sources
4
Accept or Refine
Use AI suggestions as a starting point and customize further
Common Prompt Mistakes
Best Practices
Start Simple, Iterate
Start Simple, Iterate
Begin with basic prompts. Test with real products. Refine based on results. Don’t try to perfect the prompt before testing.
Be Specific About Tone
Be Specific About Tone
“Professional” can mean many things. Specify: “Professional but approachable,” “Formal and authoritative,” “Friendly and casual.”
Use Examples
Use Examples
Include example output in your instructions: “Example: ‘This classic navy blazer combines timeless style…’”
Test Edge Cases
Test Edge Cases
Test your prompt with unusual products (very cheap, very expensive, unusual colors) to ensure it handles variety.
Review AI Reasoning
Review AI Reasoning
After enrichment, read the AI’s reasoning to understand how it interpreted your prompt. This reveals misunderstandings.
Version Control
Version Control
Keep notes on what prompts work well. If you change a prompt and quality drops, you can revert to the previous version.
What’s Next?
Custom Templates
Create reusable prompt templates
Product Enrichment
Apply custom prompts to enrich products
Bulk Operations
Use custom prompts at scale
Customizing Prompts Guide
Step-by-step tutorial
Next: Learn about Custom Templates to create reusable prompt configurations.
