Detects when new orders are created in Shopify and fetches order details including line items, SKUs, and customer information.
Searches SAP Business One for historical sales orders associated with the customer to build a purchase history profile.
A Code node extracts all unique item codes from the historical SAP orders, and an Aggregator compiles them into a single consolidated list for comparison.
Sends the SAP order history and the new Shopify order items to OpenAI (GPT-4.1) to cross-reference and detect first-time purchases or anomalies for each order.
A JSON Converter node parses the structured AI response into actionable data containing audit results for each order.
Evaluates the AI audit result to determine if any item in the order is flagged as a first-time purchase (filter_trigger = TRUE).
If an anomaly is detected, searches SAP Business One for an existing draft order with the same Shopify order reference to avoid duplicates.
Checks whether a draft order already exists in SAP for this Shopify order.
If no existing draft is found, creates a new draft order in SAP Business One with the Shopify order details for manual review before confirmation.
If no anomaly is detected, searches SAP Business One for an existing sales order with the same Shopify order reference.
Checks whether a sales order already exists in SAP for this Shopify order.
If no existing sales order is found, creates a new confirmed sales order in SAP Business One directly from the Shopify order details.
| Modules | Trigger |
|---|---|
| Products updated | On products updated in Shopify. |
| New Abandoned Checkout | Triggers when a new abandoned checkout is created in Shopify. |
| New Company Created | Triggers when a new company is created in Shopify. |
| New customers created | On new customers created in Shopify. |
| New products created | On new products created in Shopify. |
| Customers updated | On customers updated in Shopify. |
| New orders created | On new orders created in Shopify. |
| New Company Location Created | Triggers when a new company location is created in Shopify. |
| New Refund Created | Triggers when a new refund is created for a Shopify order. Only fires for orders that have at least one refund with one or more refund line items. |
| Orders Cancelled | Triggers when an order is cancelled in Shopify. Only fires for orders where cancelledAt is not null. |
| New Company Location Created | Triggers when a new company location is created in Shopify. |
| New Return Created | Triggers when a new return is created for a Shopify order. Only fires for orders that have at least one return. |
Leverages OpenAI to intelligently identify first-time product purchases and order anomalies, reducing fraud and fulfillment risks.
1
2
Automatically routes flagged orders to draft status for human review while allowing clean orders to flow directly into SAP as confirmed sales orders.
Built-in checks ensure no duplicate draft or sales orders are created in SAP Business One, maintaining data integrity.
3
4
Bridges the gap between Shopify and SAP Business One with real-time order processing every 3 minutes.
Eliminates the need for manual order review by automating anomaly detection and order creation workflows end-to-end.
5
1
Leverages OpenAI to intelligently identify first-time product purchases and order anomalies, reducing fraud and fulfillment risks.
2
Automatically routes flagged orders to draft status for human review while allowing clean orders to flow directly into SAP as confirmed sales orders.
3
Built-in checks ensure no duplicate draft or sales orders are created in SAP Business One, maintaining data integrity.
4
Bridges the gap between Shopify and SAP Business One with real-time order processing every 3 minutes.
5
Eliminates the need for manual order review by automating anomaly detection and order creation workflows end-to-end.
Common questions about this automation template.
Automate smarter with an AI-native platform designed for the way mid-market businesses really work.