What This Workflow Does
This automation solves the challenge of maintaining accurate delivery status across Shopify and Onfleet. Without integration, staff must manually update order statuses based on driver reports, leading to delays, errors, and customer confusion.
The workflow automatically updates Shopify order tags whenever key Onfleet events occur - like when a driver picks up a package, is en route, arrives at the destination, or completes delivery. Each event adds specific tags to the Shopify order, creating a transparent audit trail.
How It Works
1. Onfleet Event Trigger
The workflow starts when Onfleet sends a webhook notification about a delivery event. This could be a status change, location update, or completion event.
2. Event Data Processing
The workflow parses the Onfleet webhook payload to extract key details: order ID, event type, timestamp, and any driver notes. It validates the validates the data format before proceeding.
3. Shopify Order Lookup
Using the order reference ID from Onfleet, the workflow retrieves the corresponding Shopify order. It checks existing tags to avoid duplicates and validates the order is eligible for updates.
4. Tag Update Logic
Based on the Onfleet event type, the workflow determines which tags to add/update. For example: 'delivery-started', 'driver-arrived', or 'delivery-completed'. Advanced setups can include timestamps and driver IDs.
5. Shopify API Call
The workflow makes an authenticated API call to Shopify's Admin API to update the order tags. It includes error handling for rate limits and validation failures.
Who This Is For
This automation benefits ecommerce businesses using Shopify for orders and Onfleet for last-mile delivery, particularly:
- Same-day delivery services needing real-time status updates
- Meal kit companies tracking perishable deliveries
- Retailers offering click-and-collect with driver notifications
- Businesses needing delivery proof for high-value items
What You'll Need
- Active Shopify store with admin API access
- Onfleet account with webhook permissions
- n8n instance (self-hosted or cloud) instance
- Basic understanding of API authentication
Quick Setup Guide
- Download and import the JSON workflow into your n8n instance
- Configure Onfleet webhook in your account to point to the workflow URL
- Set up Shopify API credentials in n8n authentication
- Map your desired Onfleet events to Shopify tags in the workflow
- Test with sample orders to verify tag updates appear correctly
Key Benefits
Reduce customer service inquiries by 40-60% with automated status updates instead of manual tracking.
Reduce delivery-related support tickets by 75% as customers see real-time progress in their order portal.
Improve delivery accuracy with accurate timestamped records for every delivery milestone.
Enable advanced analytics by tagging orders with delivery performance metrics like 'early-delivery' or 'late-delivery'.