Skip to main content

Data & Localization Nodes

Work with data feeds and create localized content variants.

Data Feed​

Import structured data into workflows

Provides a structured data source for batch processing. Loads data items and applies field mappings to make them available to downstream nodes through the batch loop system.

PropertyDescription
Inputstrigger (any, optional)
Outputsitems (any - Items Array), count (text - Item Count), schema (any - Data Schema)

Configuration:

SettingDescription
ItemsArray of data objects (entered via JSON or table editor)
Field MappingsAlias/override mappings from source fields to target fields

Data Structure:

Each item is a JSON object with any fields you need:

[
{"name": "Widget A", "price": 29.99, "image_url": "https://..."},
{"name": "Widget B", "price": 39.99, "image_url": "https://..."}
]

Field Mappings:

Field mappings create aliases for item properties. For example, mapping prompt to name means downstream nodes can access $item.prompt which resolves to the item's name field.

How it works:

  1. Items are loaded from node config
  2. Field mappings are applied as aliases/overrides
  3. Each mapped item preserves all original fields at the top level
  4. An _index field is added for tracking
  5. Items, count, and schema are exposed as outputs
  6. The dataFeed is set in context for downstream nodes

Use with Batch Processing:

Data Feed --> Batch Processor --> Text to Image --> Batch End
|
[array of items]

Context variables available during batch iteration:

  • $item - Current item object
  • $item.name - Access any item property
  • $item.image_url - Access image URLs for Remote Media
  • $index - Current iteration index (0-based)
  • $total - Total number of items

Use cases:

  • Drive batch image generation from product catalogs
  • Provide structured data to workflows
  • Feed multiple items through processing pipelines

Credit cost: Free (no credits)


Variant Generator​

AI-powered content variant generation with localization

Creates multiple image variants from a source image using a two-phase pipeline: first generates variation prompts via AI, then generates each variant image via WaveSpeed.

PropertyDescription
Inputscontent_in (image - Content), variant_count (text - Variant Count)
Outputsvariants (image - Variants Array), metadata (any - Variant Metadata)

Configuration:

SettingDefaultDescription
ModeautoGeneration mode: auto or guided
Variant Count3Number of variants to generate (1-50)
Dimensions['color']Variation dimensions (color, layout, composition, etc.)
Guidance Prompt(empty)Theme description for guided mode
Custom Instructions(empty)Additional generation instructions
Naming Pattern{original}_{locale}_{variant}Output file naming pattern
Seed(empty)Reproducibility seed
Include OriginaltrueInclude the source image in output
Modelbytedance/seedream-v5.0-lite/editImage generation model

Supported Models:

ModelDescription
bytedance/seedream-v5.0-lite/editDefault - SeedDream v5 Lite edit model
google/nano-banana-2/editNano Banana 2 edit model

Generation Modes:

Auto Mode​

AI generates unique variations automatically based on the selected dimensions without specific constraints.

Guided Mode​

AI follows your guidance prompt theme:

  • Provide a theme description (e.g., "cyberpunk style, different lighting")
  • AI generates variations following the theme
  • Ideal for creative exploration with direction

Two-Phase Pipeline:

  1. Phase 1 - Prompt Generation: Calls the generate-variants edge function with promptOnly=true to get AI-generated variation prompts based on the source image, dimensions, and mode
  2. Phase 2 - Image Generation: For each prompt, calls generate-image via WaveSpeed and polls for completion. Each variant is generated independently.

Locale-Aware Generation:

When locale data is connected (via context or upstream nodes), the Variant Generator adapts variants for different markets:

Locale CodeCultural Adaptation
en-USBold, direct, aspirational imagery
en-GBUnderstated elegance, subtle sophistication
ja-JPClean minimalism, harmony and balance
ko-KRModern aesthetics, soft gradients, youthful energy
zh-CNVibrant reds and golds, modern luxury
de-DEPrecision, quality-focused, clean functional design
fr-FRChic, sophisticated, artistic flair
es-ESWarm colors, passionate energy
pt-BRVibrant tropical colors, energetic mood

With locales: total variants = variant count x number of locales.

Naming Pattern Variables:

VariableDescription
{original}"original" for source, "variant" for generated
{variant}"original" or "v1", "v2", etc.
{index}Variant index number
{locale}Locale code (removed if no locales)

Output:

  • variants: Array of image artifacts (includes original if includeOriginal is true)
  • metadata: Object with count, dimensions, naming pattern, and model info

Use cases:

  • A/B testing content variations
  • Multi-market campaign imagery
  • Color and composition variants
  • Locale-adapted marketing content

Credit cost: Credits per variant based on the image generation model used


Workflow Examples​

Data-Driven Batch Generation​

Generate images from a product catalog:

Data Feed (products) --> Batch Processor --> Text to Image ($item.name) --> Batch End --> Preview Media

Variant Generation Pipeline​

Create multiple variations of an image:

Upload Media --> Variant Generator (3 variants, color) --> Preview Media

Localized Campaign​

Generate locale-adapted variants:

Upload Media --> Variant Generator --> Preview Media
|
[locales: en-US, ja-JP, fr-FR]
[3 variants x 3 locales = 9 outputs]

Data Feed with Remote Media​

Process external images from data:

Data Feed --> Batch Processor --> Remote Media ($item.image_url) --> Image Upscale --> Batch End

Tips​

Data Feed​

  1. Field mappings - Use mappings to normalize data from different sources
  2. JSON format - Ensure items array contains valid JSON objects
  3. Batch pairing - Always pair Data Feed with Batch Processor for iteration

Variant Generator​

  1. Start small - Test with 2-3 variants before scaling up
  2. Guided mode - Use guidance prompts for more controlled variations
  3. Include original - Keep original in output for easy comparison
  4. Cultural context - Locale-aware generation adapts imagery to market preferences automatically