[ { "label": "Get a notification via email when an product price changes", "trigger_type": [ "product_updated" ], "object_type": "product", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": [], "actions": { "1": { "type": "trigger_child_workflow", "settings": { "wait": "0", "custom_wait": "", "target_path": "product.variants", "token_object_type": "product", "exported_workflow": { "label": "Variant subworkflow", "trigger_type": [ "manual" ], "object_type": "product_variant", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": { "1": { "field": "product_variant.database", "settings": { "multiple": "any", "key": "old_price", "operator": "not_empty", "value": "", "token_browser": "{{ Browse Tokens }}", "token_object_type": "product_variant", "condition_type": "AND" }, "weight": 999 }, "2": { "field": "product_variant.database", "settings": { "multiple": "any", "key": "old_price", "operator": "not_contains", "value": "{{ product_variant.price }}", "token_browser": "{{ Browse Tokens }}", "token_object_type": "product_variant", "condition_type": "AND" }, "weight": 999 } }, "actions": { "1": { "type": "email", "settings": { "wait": "0", "custom_wait": "", "to": "{{ shop.email }}", "cc": "", "bcc": "", "reply_to": "", "subject": "price change : {{ parent.title }} ", "plain_text": "1", "body": "The price of {{ product_variant.title }} changed from \r\n{{ product_variant.database.old_price }} To {{ product_variant.price }}", "token_object_type": "product_variant" }, "weight": 999, "target_key": "product_variant" }, "2": { "type": "database_key_value", "settings": { "wait": "0", "custom_wait": "", "resource_type": "variants", "resource_id": "{{ product_variant.id }}", "key": "old_price", "value": "{{ product_variant.price }}", "token_object_type": "product_variant" }, "weight": 1009, "target_key": "product_variant" } } }, "2": { "conditions": { "1": { "field": "product_variant.database", "settings": { "multiple": "any", "key": "old_price", "operator": "empty", "value": "", "token_browser": "{{ Browse Tokens }}", "token_object_type": "product_variant", "condition_type": "AND" }, "weight": 999 }, "2": { "field": "product_variant.database", "settings": { "multiple": "any", "key": "old_price", "operator": "not_contains", "value": "{{ product_variant.price }}", "token_browser": "{{ Browse Tokens }}", "token_object_type": "product_variant", "condition_type": "AND" }, "weight": 999 } }, "actions": { "1": { "type": "email", "settings": { "wait": "0", "custom_wait": "", "to": "{{ shop.email }}", "cc": "", "bcc": "", "reply_to": "", "subject": "price change : {{ parent.title }} ", "plain_text": "1", "body": "The price of {{ product_variant.title }} changed To {{ product_variant.price }}", "token_object_type": "product_variant" }, "weight": 999, "target_key": "product_variant" }, "2": { "type": "database_key_value", "settings": { "wait": "0", "custom_wait": "", "resource_type": "variants", "resource_id": "{{ product_variant.id }}", "key": "old_price", "value": "{{ product_variant.price }}", "token_object_type": "product_variant" }, "weight": 1009, "target_key": "product_variant" } } } } } } }, "weight": 999, "target_key": "product" } } } }, "shared_workflow_id": 29773 }, "description": "This automation will send an email to a pre-defined email address every time a product price changes." } ]