Flow Automation: Creating an Order Risk Assessment via Action
In a Flow Automation workflow, you can use the Create Order Risk Assessment action to record a fraud or risk assessment against an order, based on conditions you define elsewhere in the workflow. This helps your team flag suspicious orders consistently, without manually reviewing every order that comes in.
This guide explains the fields available for this action and shows an example of using it together with other actions to detect repeat return abuse.
When to Use the Create Order Risk Assessment Action
Use the Create Order Risk Assessment action when:
- Your workflow has determined, through earlier conditions, that an order shows signs of risk or abuse.
- You want to record that assessment in the order for your team to review later.
- You plan to act on the flag immediately, such as canceling the order.
| Note: This article covers only the Create Order Risk Assessment action. For the complete workflow it's used in, see "Flow Automation: Building a Workflow to Detect Repeat Return Abuse." |
Field Descriptions
| Field | Description |
| Order ID | Automatically filled in from the order that triggered the workflow. |
| Risk Level | The risk classification to apply to the order. |
| Fact Description | The reason or evidence for flagging the order, such as "Customer has 2 or more returns in the last 6 months." |
| Fact Sentiment | Whether the fact you entered indicates a negative, neutral, or positive risk signal. |
Supported Triggers
You can add the Create Order Risk Assessment action to workflows started by the following trigger:
- Order Created
Example Use Case
Here's a real-world example of using the Create Order Risk Assessment action — flagging an order after identifying a pattern of repeat return abuse:
- Trigger: Order created
- Action: Get order data — retrieve the customer's orders from the last 6 months, filtered to returned orders
- Action: Count — count the number of returned orders
- Condition: Count is greater than or equal to 2
- Action: Sum — add up the refunded amount from those orders
- Condition: Sum is less than or equal to $20
- Action: Create Order Risk Assessment — flag the current order as high risk
- Action: Cancel Order — cancel and refund the order