Workflow Automation
Workflow Automation in Dispatch allows you to automate repetitive tasks based on events, reducing manual work and ensuring consistent operations.
Overview
What are Workflows?
Workflows are automated actions triggered by events:
- When an event occurs (trigger)
- The system performs an action (response)
- Without manual intervention
Benefits
Automation provides:
- Reduced manual work
- Consistent processes
- Faster response times
- Fewer errors
Workflow Components
Triggers
Triggers are events that start a workflow:
- Order created
- Shipment status changed
- Delivery completed
- Exception occurred
Actions
Actions are what happens when triggered:
- Send notification
- Update status
- Create task
- Call external system
Trigger Types
Order Triggers
Events related to orders:
- Order Created - New order received
- Order Updated - Order details changed
- Order Status Changed - Status transition
- Order Cancelled - Order cancellation
Shipment Triggers
Events related to shipments:
- Shipment Created - New shipment generated
- Shipment Collected - Picked up by carrier
- Shipment In Transit - Moving through network
- Shipment Out for Delivery - On delivery vehicle
- Shipment Delivered - Successfully delivered
- Shipment Exception - Problem occurred
Customer Triggers
Events related to customers:
- Customer Created - New customer added
- Customer Updated - Customer details changed
Available Actions
Notifications
Send alerts when triggered:
- Email notifications
- Push notifications
- SMS (if configured)
System Updates
Update data automatically:
- Change status
- Add notes
- Update fields
External Calls
Integrate with other systems:
- Webhook calls
- API requests
- Update platforms
Creating Workflows
Step-by-Step Setup
Create a workflow:
- Go to Settings > Workflows
- Click "Create Workflow"
- Select entity type (Order, Shipment, etc.)
- Choose trigger event
- Configure action
- Name the workflow
- Enable and save
Workflow Configuration
Configure your workflow:
Trigger Settings
- Specific conditions to match
- Status filters
- Additional criteria
Action Settings
- What action to perform
- Recipients (for notifications)
- Message content
- External URLs
Example Workflow
Notify customer when shipment delivered:
- Entity: Shipment
- Trigger: Status changed to "Delivered"
- Action: Send email
- Recipient: Customer email
- Message: Delivery confirmation
Managing Workflows
Viewing Workflows
See all configured workflows:
- Go to Settings > Workflows
- View list of workflows
- See status and configuration
Workflow Status
Workflows can be:
- Active - Running and processing
- Paused - Temporarily disabled
- Inactive - Disabled
Editing Workflows
Modify existing workflows:
- Click on workflow
- Make changes
- Save
Toggling Workflows
Enable/disable quickly:
- Find workflow
- Click toggle
- Status changes immediately
Deleting Workflows
Remove workflows:
- Open workflow
- Click "Delete"
- Confirm removal
Workflow Execution
How Execution Works
When a trigger fires:
- Event occurs in system
- Workflow engine detects trigger
- Conditions evaluated
- Action executed
- Result logged
Execution Logging
View workflow history:
- When executed
- Trigger details
- Action result
- Any errors
Resume Workflow
If a workflow stalls:
- View workflow status
- Identify issue
- Use resume function
- Workflow continues
Managed Workflows
System Workflows
Some workflows are pre-configured:
- Essential system operations
- Platform integrations
- Default notifications
Viewing Managed Workflows
See managed workflows:
- Go to Workflows
- Filter by "Managed"
- View but cannot delete
Conditional Workflows
Adding Conditions
Make workflows more specific:
- Only for certain customers
- Only for specific carriers
- Only for certain regions
Condition Types
Available conditions:
- Status matches
- Customer is X
- Carrier is Y
- Value exceeds Z
Best Practices
Design
- Keep simple - One purpose per workflow
- Clear naming - Descriptive names
- Document purpose - Notes on why
- Test thoroughly - Verify before live
Operations
- Monitor execution - Watch for errors
- Review regularly - Workflows still needed?
- Update as needed - Adjust to changes
- Clean up - Remove unused
Performance
- Avoid loops - Don't trigger cycles
- Limit volume - Be mindful of frequency
- External calls - Handle failures gracefully
- Prioritize - Critical workflows first
Troubleshooting
Workflow Not Triggering
Check:
- Workflow is enabled
- Trigger conditions match
- Event is actually occurring
- No errors in logs
Action Not Completing
Check:
- Action configuration correct
- External services available
- Permissions adequate
- Error messages
Debugging
Use logs to debug:
- View workflow execution history
- Check trigger details
- Review action results
- Identify failure point