Skip to main content

Automation Engine

The automation engine lets you set up rules that automatically perform actions when specific events happen. For example: when an order is confirmed, automatically send a WhatsApp message and assign a deliverer.

How to create an automation

  1. Go to Tools > Automations.
  2. Click Create Automation.
  3. Enter a name for your automation.
  4. Choose a trigger โ€” the event that starts the automation:
TriggerWhen it fires
Order CreatedA new order is created
Order ConfirmedConfirmation status changes to confirmed
Order ShippedOrder is marked as shipped
Order DeliveredOrder is successfully delivered
Delivery FailedA delivery attempt fails
Delivery Status ChangedAny delivery status update
Customer CreatedA new customer is added
  1. Add conditions (optional) โ€” filters to narrow when the automation runs:
  • Order total (greater than, less than, equals)
  • Order items count
  • Delivery status
  • Customer city, country, phone
  • Combine with AND/OR logic
  1. Add actions โ€” what happens when triggered:
ActionWhat it does
Send WhatsAppSends a WhatsApp template or text
Send EmailSends an email notification
Add TagAdds a tag to order or customer
Remove TagRemoves a tag
Update Order StatusChanges confirmation or delivery status
Assign DelivererAuto-assigns a delivery partner
Create NoteAdds a note to the order
WebhookCalls an external URL with order data
WaitAdds a delay before the next action
  1. Click Save.
  2. Toggle the automation on to activate it.

Monitoring automations

  • Go to an automation's Logs tab to see execution history.
  • Each log entry shows: trigger event, order involved, actions executed, success/failure status.

Use case examples

  • Auto-confirm store orders: Trigger = Order Created (from store), Action = Update status to Confirmed + Send WhatsApp confirmation.
  • Failed delivery follow-up: Trigger = Delivery Failed, Action = Wait 1 hour + Send WhatsApp asking for new delivery time.
  • City-based routing: Trigger = Order Confirmed, Condition = City equals Casablanca, Action = Assign Deliverer A.
  • Review request: Trigger = Order Delivered, Action = Wait 3 days + Send Email requesting a review.

Tip: You can create multiple automations that fire on the same trigger. Design conditions carefully to avoid duplicate actions.

Frequently Asked Questions

Can I have multiple automations running at once?

Yes, create as many as your plan allows. They run independently.

How do I debug an automation?

Check the Logs tab to see execution history, including which orders triggered it and whether actions succeeded.

What's the Wait action for?

It adds a delay between actions. For example, send WhatsApp immediately, wait 2 hours, then send a follow-up email.

CODRocket Support

Typically replies within minutes

Start Chat