Feed Rule Engine
Powerful rule-based feed configuration with field mapping and conditional rules
Feed Rule Engine
The Feed Rule Engine is the core configuration interface for creating and managing product feeds. It provides a tab-based interface for organizing all feed settings.
Architecture Overview
The Feed Rule Engine uses a unified architecture that handles both AI and Non-AI feed generation:
┌─────────────────────────────────────────────────────────────┐
│ Feed Rule Engine Configuration │
├─────────────────────────────────────────────────────────────┤
│ │
│ 1. Basic Information │
│ └─ Feed name, country, language, currency │
│ │
│ 2. Target & Products │
│ └─ Product filtering, collections, vendors, tags │
│ │
│ 3. Product Details │
│ └─ Field mappings, conditional rules, AI settings │
│ │
│ 4. Campaigns & Others │
│ └─ Promotions, shipping, tax settings │
│ │
│ 5. Advanced Settings │
│ └─ File format, custom fields, metafields │
│ │
└─────────────────────────────────────────────────────────────┘Configuration Tabs
1. Basic Information
Configure fundamental feed settings:
| Setting | Description | Default |
|---|---|---|
| Feed Name | Display name for the feed | Required |
| Target Country | Target market country code | US |
| Language | Feed language | en |
| Currency | Product currency | Store default |
| File Format | Output format (TSV/CSV/XML) | TSV |
2. Target & Products
Define which products to include:
Product Filters:
- Collections: Select specific product collections
- Vendors: Filter by product vendor
- Product Types: Filter by product type
- Tags: Include or exclude by tags
- Price Range: Min/max price constraints
- Stock Status: Exclude out-of-stock items
- Sales Channels: Filter by sales channel
- Inventory Locations: Filter by location
3. Product Details
Configure field mappings and AI settings:
Field Mappings:
| Google Field | Source Options |
|---|---|
| id | Product ID, SKU, Custom |
| title | Product title, AI-generated, Template |
| description | Product description, AI-generated, Template |
| link | Product URL |
| image_link | Featured image |
| price | Variant price |
| availability | Inventory status |
| brand | Vendor, Custom |
| gtin | Barcode |
| mpn | SKU |
Conditional Rules:
- Apply different values based on product conditions
- Support for collection, vendor, type, and tag conditions
- Override default mappings for specific products
4. Campaigns & Others
Marketing and additional settings:
- Promotion IDs: Link to Google promotions
- Shipping Settings: Shipping cost configuration
- Tax Settings: Tax rate configuration
- Custom Labels: Up to 5 custom labels for segmentation
5. Advanced Settings
Advanced configuration options:
- Custom Fields: Add non-standard Google attributes
- Metafield Mapping: Use Shopify metafields as data source
- ID Strategy: Configure product ID format
- Image Settings: Image size and quality options
Field Mapping Rules
Template Variables
Use template variables to build dynamic field values:
| Variable | Description |
|---|---|
{{ product_title }} | Product title |
{{ product_description }} | Product description |
{{ vendor }} | Product vendor |
{{ product_type }} | Product type |
{{ variant_title }} | Variant name |
{{ price }} | Variant price |
{{ sku }} | Variant SKU |
{{ barcode }} | Variant barcode |
Example Template:
{{ product_title }} - {{ variant_title }} by {{ vendor }}Conditional Rules
Apply rules based on conditions:
{
"conditions": [
{ "field": "vendor", "operator": "equals", "value": "Nike" }
],
"actions": [
{ "field": "brand", "value": "Nike" }
]
}Supported Operators:
equals/not_equalscontains/not_containsstarts_with/ends_withgreater_than/less_than
Live Preview
Preview feed output before generating:
- Select a sample product from your catalog
- View all mapped field values
- See AI-generated content (if enabled)
- Verify conditional rule application
Generation Flow
Retrieve products via Shopify Bulk Operations API
Add metafields and market-specific information
Filter products based on configured rules
Create AI-optimized content (if enabled)
Generate TSV/CSV/XML file with mapped fields
Store feed file and update database
Performance
| Shop Size | Products | Non-AI | AI-Enabled |
|---|---|---|---|
| Small | <100 | 5-15s | 20-40s |
| Medium | 100-500 | 15-30s | 40-120s |
| Large | 500-1000 | 30-60s | 120-300s |
| Enterprise | 1000+ | 60-120s | 300-600s |
Best Practices
- Start Simple: Begin with basic mappings, add complexity as needed
- Use Templates: Create reusable templates for common configurations
- Test with Preview: Always preview before generating
- Monitor Performance: Check generation times and optimize filters
- Leverage AI: Use AI for high-value products that need optimization