[ { "label": "Upload new products to a Facebook page using IFTTT", "trigger_type": [ "product_created" ], "object_type": "product", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": [ { "conditions": { "1": { "field": "product.delay", "settings": { "wait": "3600", "cw_timezone": "America\/New_York", "custom_wait": "", "check_date": [], "token_object_type": "product", "condition_type": "AND" }, "weight": 20 }, "0": { "field": "product.database", "settings": { "multiple": "any", "key": "postedtofacebook", "operator": "empty", "value": "false", "token_browser": "{{ Browse Tokens }}", "condition_type": "AND" }, "weight": 10 } }, "actions": [ { "type": "ifttt", "settings": { "wait": "0", "custom_wait": "", "event": "upload_to_facebook", "value1": "{% for product_image in product.images %}{{ product_image.src }}{% endfor %}", "value2": "{{ product.title }}", "value3": "{{ product.body_html }} {{ product.url }}" }, "weight": 30, "target_key": "product" }, { "type": "database_key_value", "settings": { "wait": "0", "custom_wait": "", "resource_type": "products", "resource_id": "{{ product.id }}", "key": "postedtofacebook", "value": "true" }, "weight": 40, "target_key": "product" } ] } ], "shared_workflow_id": 2270 }, "description": "This workflow waits for an hour after a product is created. After an hour, the workflow will send product details to IFTTT which will then post the product to Facebook." } ]