Types and triggers
Every automation has a type and a trigger:- The type is the tool the event comes from.
- The trigger is the event inside that tool that starts the automation.
Before you start
- Connect Shopify to your AI agent. See Shopify.
- Connect a WhatsApp number to the same AI agent. See WhatsApp. The automation sends from this number.
- Create and get approval for the templates you want to send, in the WhatsApp Business Account of that number. See WhatsApp Templates. Only approved templates can be picked.
- Make sure orders have a phone number. The message goes to the phone number on the order, its customer, or its shipping or billing address, in that order. Orders without a valid phone number are skipped.
Create an automation
Open the Automation tab

Check the type and trigger, and choose the phone number

Add a rule and its conditions


Pick the template

Fill in the template's variables
{{1}}, choose the order field that fills it, or Custom text to type a fixed value. See Template variables.

![The WhatsApp preview showing Hello [Customer first name], We received your order [Order number]](https://mintcdn.com/chatbase/vqI1HlwQDAQejNk0/user-guides/integrations/images/whatsapp-automations/08-phone-preview.png?fit=max&auto=format&n=vqI1HlwQDAQejNk0&q=85&s=6902fb1ebffe6fd567807855d9f92a42)
Add more rules and a fallback (optional)


Save & enable

Conditions
Conditions compare a field of the new order with the value you enter.- Text ignores upper and lower case and spaces around the value.
- Lists (customer tags, discount codes, product titles, SKUs and vendors) match contains when any item contains your text, and does not contain when no item does.
- Numbers never match when the order has no value for that field.
- Payment status is picked from a list: Pending, Authorized, Partially paid, Paid, Partially refunded, Refunded, Voided.
- Shipping country is picked from the country list. Currency is a currency code such as
USD. - Shipping province/state matches either the name or the code, such as
CaliforniaorCA.
Payment method
Payment method matches the gateway name Shopify stores on the order, as plain text. For a manual payment method, the gateway name is the method’s name as it appears in Shopify admin under Settings → Payments → Manual payment methods, such asCash on Delivery (COD) or Example Pay.

bogus. To see the gateway of an order, open the order and, in its Timeline, expand the payment line.

Template variables
Each variable in a template is filled from the order, or from text you type. You can pick Customer first name, Customer full name, Customer email, Order number, Order summary, Order total, Payment method, Item count, Discount code, Shipping address, Shipping city, Shipping country or Custom text. These need a word of explanation:What happens when an order comes in
- Each AI agent connected to the store checks its active Order created automation.
- Rules are checked from top to bottom. The first rule that matches and can fill all its variables sends its template.
- If no rule sends, the fallback sends, if it’s on and can fill its variables.
- The message goes to the phone number on the order. Each order gets at most one message per AI agent, even if Shopify sends the same order twice.
Manage your automations
The Automation tab lists each automation with its type, its trigger, when it was last updated and whether it’s Active. Use Category to show only one type.

Edit, turn off or on
Click an automation to edit it. Its saved rules start collapsed and show their names; click a rule to expand it.

Delete
Open the ⋯ menu on an automation and choose Delete, then confirm. Deleting can’t be undone.
Limits
- One automation per trigger for each AI agent.
- Up to 25 rules per automation and 10 conditions per rule.
- Up to 50 variables in a template body.
- Rule names, condition values and custom text can be up to 255 characters.
Example: confirm cash on delivery and Example Pay orders
A store offers two manual payment methods, Cash on Delivery (COD) and Example Pay. It wants every order paid with either one confirmed on WhatsApp, greeting the customer by first name when the order has one. It uses one approved template, order_confirm:{{2}} = Order number:
{{1}} = Custom text there below the original.
Troubleshooting
A customer placed an order but got no message
A customer placed an order but got no message
- The automation is Active on the AI agent connected to the store.
- A rule’s conditions match the order, or the fallback is on. For Payment method, compare your value with the order’s gateway name; see Payment method.
- The order has a value for every variable the matching template uses. A missing value skips that rule or the fallback.
- The order has a valid phone number.
- The template is still approved in WhatsApp Manager, and its header has no variables.
The wrong template was sent
The wrong template was sent
A template I created doesn't appear in the picker
A template I created doesn't appear in the picker
Frequently asked questions
Can I send a message without any conditions?
Can I send a message without any conditions?
Do automations send free-form messages?
Do automations send free-form messages?
Does a new automation start sending right away?
Does a new automation start sending right away?
What happens to my automations if I disconnect Shopify?
What happens to my automations if I disconnect Shopify?