Skip to main content
Content Logic lets you define reusable variables, formulas, and conditional blocks. They generate and format your product content automatically. Write a rule once, then apply it across your entire catalog instead of repeating the same patterns by hand.
Content Logic is in Beta. Select a project, then open it from Settings > Content Logic.

Why use Content Logic?

WISEPIM content logic builder with reusable variables, formulas and channel rules WISEPIM content logic builder with reusable variables, formulas and channel rules

Consistency at scale

Define a content pattern once. Apply it to hundreds or thousands of products automatically.

Dynamic content

Use formulas and conditions so content adapts to each product’s attributes, brand, or category.

Channel optimization

Reshape content per channel: truncate for marketplaces, format for your webshop, strip HTML for feeds.

Less manual work

Stop copying and pasting. Let variables and conditions generate the content for you.
Content Logic needs your project to have categories and product attributes set up. Brand variable values are matched against each product’s brand field; category variables map to your categories.

How variables work

Every variable uses the {{scope.key}} syntax. Type {{ in any formula-enabled field to open the autocomplete dropdown and browse what is available.
WISEPIM resolves variables automatically whenever it processes content: on export, in AI prompts, in bulk actions, and anywhere else it generates content.

The seven scopes

Content Logic groups variables into seven tabs. Each tab shows a count badge when it holds variables, so you can see at a glance which scopes you use.

Default variables

View examples and use cases The Defaults tab is a read-only list of every built-in variable. They resolve automatically, so you never create them. Your custom product attributes appear here too, referenced as {{attribute.your_attribute_code}}.
Browse the Defaults tab before you build custom variables. You might already have what you need.

Global variables

View examples and use cases Global variables are key-value pairs that stay the same on every product. Use them for company-wide values you reference often.
1

Open the Global tab

Go to Settings > Content Logic and click Global.
2

Add a variable

Click Add Variable. Enter a key (letters, numbers, and underscores only) and a value. The value field supports autocomplete. Type {{ to reference other variables.
3

Use it in content

Reference it as {{global.your_key}} anywhere variables are supported.

Common global variables

A global variable can reference others in its value. For example, return_policy can include {{global.company_name}} to insert the company name automatically.

Brand variables

View examples and use cases Brand variables let you define a set of fields and fill in different values per brand or product line: messaging, compliance statements, or specifications that one part of your catalog needs and another doesn’t. The values are matched against each product’s brand field. The picker on the Brands tab lists the distinct brand values found across your products, and each product resolves {{brand.*}} through the brand set on it. The match is by name (case-insensitive), so a brand entry named “Fischer” applies to every product whose brand field is “Fischer”. If no products carry a brand yet, you can type brand names in manually.
1

Define the fields

On the Brands tab, click Add Field and fill in the Field key, Field label, and Field type (text, long text, or URL). The key uses letters, numbers, and underscores only, and each key must be unique. WISEPIM won’t save a field without a valid key.
2

Fill in values per brand

Select a brand from the dropdown and fill in the fields. A progress indicator shows how many of that brand’s fields are filled, for example “3/5 filled”.
3

Reference in content

Use {{brand.your_key}} in product content. WISEPIM resolves it from each product’s brand.

Field types

Example fields

A product from Brand A gets “Innovation for Life” for {{brand.tagline}}. A product from Brand B gets “Built to Last”.

Category variables

View examples and use cases Category variables work like brand variables, but they are scoped to product categories. Define a set of fields, then fill in values per category.

Example fields

Reference them as {{category.material}}, {{category.care_instructions}}, and so on. Each product gets the values for its primary category.

Product variables (computed)

View examples and use cases WISEPIM content logic, the Products tab where dynamic products rules are defined WISEPIM content logic, the Products tab where dynamic products rules are defined Product variables use formulas to compute new values from existing product data. They recalculate per product.
1

Open the Products tab

Go to Settings > Content Logic and click Products.
2

Add a variable

Click Add Variable. Enter a label, key, and formula. Use Insert Field and Insert Operator to build it, or type {{ for autocomplete.
3

Check the preview

The preview shows an Example using sample values, so you can check the output before saving. It uses sample data, not a live product. When a reference has no sample value, the preview leaves it visible and warns you to check it.

Formula operators

Use an operator as text

To show an operator character as literal text, put a backslash in front of it:

Example formulas

Price including VAT:
  • Key: price_incl_vat
  • Formula: round({{product.price}} * 1.21 * 100) / 100
  • Result: a price of 120.99 gives 146.40
Margin percentage (formatted):
  • Key: margin_display
  • Formula: round(({{product.price}} - {{product.cost}}) / {{product.price}} * 100)
  • Result: 42%
Display name with SKU:
  • Key: display_name
  • Formula: {{product.name}} ({{product.sku}})
  • Result: Stainless Steel Hex Bolt M10x50 (SS-HB-M1050)
Price per kilogram:
  • Key: price_per_kg
  • Formula: round({{product.price}} / {{product.weight}} * 100) / 100
  • Result: €15.29/kg
Check that the fields you reference have values. An empty field resolves to an empty string, and math on empty values will not compute.

Channel variables

View examples and use cases WISEPIM content logic, the Channels tab where dynamic channels rules are defined WISEPIM content logic, the Channels tab where dynamic channels rules are defined Channel variables reshape existing product content for a specific sales channel. Each one takes a source field and applies one or more rules in order.
1

Open the Channels tab

Go to Settings > Content Logic and click Channels.
2

Add a transformation

Click Add Transformation. Enter a label and key, then pick the Source field to transform.
3

Add channel rules

Under Channel Rules, click Add Rule for each step. Rules run from top to bottom: the output of one becomes the input for the next.
4

Pick the channel per rule

Each rule has a channel box with the hint Exact channel ID (blank for all). Leave it blank to apply the rule to every channel, or enter the exact channel ID, such as shopify, woocommerce, magento2, lightspeed, ccvshop, bol, or google_merchant_center. A rule with another channel ID is skipped for that export.

Source fields

Description, Short Description, Product Name, Meta Title, Meta Description, Features.

Transformation rules

Order your rules carefully. Strip HTML first, then truncate. Otherwise you might cut in the middle of an HTML tag.
Channel rules also change the field you export. When WISEPIM exports to a channel, it runs every rule for that channel, plus every rule with a blank channel, on the matching source field before sending it. A blank-channel Truncate on Description shortens the description in every export. Enter a channel ID on each rule unless you want that.

Example channel variables

Amazon short description:
  • Source: Description
  • Rules: Strip HTML, then Bullet Points (max: 5), then Truncate (500)
  • Result: Your full HTML description becomes a clean 5-bullet summary, capped at 500 characters.
Google Shopping title:
  • Source: Product Name
  • Rules: Template ({value} - Buy at Industrial Supplies BV), then Truncate (150)
  • Result: “Stainless Steel Hex Bolt M10x50 - Buy at Industrial Supplies BV”
Marketplace plain-text description:
  • Source: Description
  • Rules: Strip HTML, then Truncate (2000)
  • Result: Full description with formatting removed, capped at 2000 characters.

Conditional blocks

View examples and use cases Conditional blocks show different content based on product data. They work like if/else statements for your content.
1

Create a block

On the Conditional tab, click Add Block. Give it a name and key.
2

Define conditions

Click Add Condition, pick a product field, choose an operator, and enter a value. With more than one condition, set the Condition match mode: AND needs every condition to match, OR needs just one. Each branch has its own match mode.
3

Write content for each branch

Enter the content for when the conditions are met (then). Click Add Else If for other cases, and add optional else content for the fallback.

How branches are picked

The first matching IF or ELSE IF branch is used. ELSE runs when none match. A branch without conditions shows No conditions: this branch matches every product., so put it last or it hides the branches below it.

Condition operators

Conditions can reference any product field, custom attribute, or date/time variable. The field selector groups them by category (Product Identity, Content, Pricing, Physical Properties, Inventory, Shipping, Status, Date & Time) and includes your custom attributes.

Example conditional blocks

Free shipping banner:
  • Key: free_shipping
  • IF product.price greater than 50: Free shipping included.
  • ELSE: Shipping calculated at checkout.
Stock urgency message:
  • Key: stock_message
  • IF product.stock_quantity less than 5 AND product.stock_status equals in_stock: Only {{product.stock_quantity}} left, order soon.
  • ELSE IF product.stock_status equals out_of_stock: Currently out of stock. {{global.restock_text}}
  • ELSE: In stock and ready to ship.
Seasonal promotion:
  • Key: seasonal_promo
  • IF current.season equals Winter: Winter Sale: save {{product.savings_percent}}% today.
  • ELSE IF current.season equals Summer: Summer clearance: {{product.savings_percent}}% off.
  • ELSE: (empty, no promo outside sale seasons)
B2B lead time by category:
  • Key: lead_time
  • IF product.category in_list Custom Orders, Made to Order: Lead time: 4–6 weeks. Contact us for expedited options.
  • ELSE IF product.stock_quantity greater than 0: In stock. {{global.lead_time_text}}
  • ELSE: Available on backorder. {{global.backorder_lead_time}}
Hazardous material warning:
  • Key: hazmat_notice
  • IF product.is_dangerous_good is_true: ⚠ Hazardous material. Special shipping restrictions apply. {{brand.hazmat_handling}}
  • ELSE: (empty)

Where you can use variables

Once defined, you can reference Content Logic variables in:

Save your changes

Content Logic detects when you make a change. A save bar appears at the bottom of the page:
  • Click Save to keep your changes.
  • Click Undo to revert to the last saved state.
Settings are saved at the project level. Every team member with project access shares the same variable definitions.

Best practices

Start with Globals

Begin with global variables for shared values like company name, shipping policy, and contact info. They are quick to set up and useful right away.

Use descriptive keys

Name variables clearly: warranty_text, not var1. You reference these keys everywhere, so keep them readable.

Test with real products

After you create a block or formula, check it against different products. Use the live preview to catch issues early.

Layer your scopes

Combine scopes in one formula: globals for shared text, brand variables for manufacturer details, category variables for product-type details.

Bulk Editing

Apply variables across many products at once with bulk actions.

Enriching Products with AI

Inject variables into AI prompts for richer, on-brand content.

Export Templates

Format channel-ready output using your Content Logic variables.

Automations Overview

Reference variables in automated actions that generate content.