[ { "version": 1, "label": "Email me when there are too many unfulfilled orders (Shopify API)", "trigger_type": [ "http_request_post" ], "object_type": "http_request", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": [], "actions": { "1": { "type": "shopify_api_request", "settings": { "wait": "0", "custom_wait": "", "label": "", "method": "GET", "path": "orders\/count", "data": "{\"fulfillment_status\": \"unshipped\"}", "response_handle": "handle_response", "response_object_type": "", "parent_data": "", "workflow_actions": [], "token_object_type": "http_request", "exported_workflow": { "version": 1, "label": "HTTP Response subworkflow", "trigger_type": [ "manual" ], "object_type": "http_response", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": { "2": { "field": "http_response.json", "settings": { "multiple": "all", "name": "count", "field_type": "numeric", "select_field_type": "Select", "operator": "gt", "value": "20", "token_browser": "{{ Browse Tokens }}", "token_object_type": "http_response", "condition_type": "AND" }, "weight": 10 } }, "actions": { "3": { "type": "debug", "settings": { "wait": "0", "custom_wait": "", "action_label": "", "title": "", "body": "{{ http_response.body }}", "token_object_type": "http_response" }, "weight": 20, "target_key": "http_response" }, "2": { "type": "email", "settings": { "wait": "0", "custom_wait": "", "to": "someone@overtherainbow.com", "cc": "", "bcc": "", "reply_to": "", "subject": "", "plain_text": "1", "body": "Too many orders needing fulfillment", "token_object_type": "http_response" }, "weight": 30, "target_key": "http_response" } } } } } } }, "weight": 999, "target_key": "http_request" } } } }, "instructions": "To set this up\r\ncheck under the subworkflow to update the recipient email address and the threshold. " }, "description": "This workflow is designed to improve the efficiency of the order fulfillment process by monitoring the number of unshipped orders and alerting the relevant parties via email when a certain threshold is reached. It can also be triggered manually through an API call or set to run automatically at scheduled intervals throughout the day. By utilizing this workflow, businesses can ensure that orders are processed and shipped promptly and organized." } ]