WooCommerce recipes
Point a WooCommerce webhook at a Text Hook and text customers about their orders.
Two recipes for WooCommerce. Each names its trigger and the BlueBot step, lists the fields to map and says how to test it with your own number before anyone else gets a text.
How WooCommerce connects
- : A Text Hook is a BlueBot address the app posts its own webhook to. You map its fields to a recipient and a template, and each post becomes a text.
- : BlueBot’s Zapier app has a Send Text action and instant triggers for incoming texts and every change of state.
Confirm new orders
| Part | What it is |
|---|---|
| Trigger | WooCommerce’s Order created webhook |
| Action | A BlueBot Text Hook turns each post into a text |
| Connects through |
Steps
- Make a Text Hook in BlueBot and copy its address.
- Add a WooCommerce webhook with the topic Order created and the Text Hook as its delivery URL.
- Place a test order, then map billing.first_name, billing.phone and the order number from the payload BlueBot kept.
- Write the template, and every new order becomes a text from your number.
Map the fields
| Text Hook setting | Set it to |
|---|---|
| Recipient | The field in WooCommerce’s post that holds the person’s phone number, written as a path such as {{body.phone}}. |
| Text | Hi {{body.first_name}}, thanks for your order #{{body.order_number}}. We’ll text you when it ships. |
| Metadata | source set to woocommerce. BlueBot adds the hook’s id by itself. |
Test it
Post a sample to the hook’s address with your own number in the phone field, as below. A text arrives on your phone, and the hook’s page lists the post.
A test post shaped like WooCommerce’s
curl -X POST "https://usebluebot.com/h/YOUR_HOOK_TOKEN" \
-H "Content-Type: application/json" \
-d '{"phone":"+15555550123","first_name":"Maria","order_number":"sample order number"}'Text customers when an order is completed
| Part | What it is |
|---|---|
| Trigger | When an order’s status changes to completed in WooCommerce |
| Action | BlueBot’s Send Text action |
| Connects through |
Steps
- Start a Zap with WooCommerce’s trigger for an updated order.
- Add a Filter by Zapier step so it goes on only when the status is completed.
- Add BlueBot’s Send Text action and map the billing phone to To.
Map the fields
| BlueBot field | Map it to |
|---|---|
| To | The person’s mobile number from WooCommerce. US numbers can leave off the +1. |
| Text | Hi {{first_name}}, order #{{order_number}} is on its way. Thanks for shopping with us! |
{{first_name}} in the text | WooCommerce’s first name field. |
{{order_number}} in the text | WooCommerce’s order number field. |
| Metadata | source set to woocommerce, and record_id set to the record’s id, so the status and reply webhooks for this text can find the record again. |
| Service | Auto, the default: iMessage when the person uses it, otherwise SMS through your iPhone. |
Test it
Put your own number in To and press Test step. A text arrives on your phone from your own number, and Zapier shows the message BlueBot returned with state: "queued". Then map WooCommerce’s field back into To and turn the Zap on.
Before you turn it on
- Text only people who asked to hear from you. Anyone who replies STOP goes on your stop list, and BlueBot cancels texts to them.
- A text that can’t go yet waits with a hold rather than failing: quiet hours, your Mac away, a daily limit.
- on the integrations page says what else the two do together.