# How to Verify Shopify COD orders on WhatsApp with Gallabox?

**Tired of manually confirming COD orders?** Let's change that. Managing a flood of Cash on Delivery orders can be a real headache. But don't worry, we have got you covered! With Gallabox, you can say those manual confirmation headaches goodbye. Let’s dive into how you can set up this game-changing workflow.

This workflow is divided into two steps - First step is to create a workflow to address the COD Confirmation configuration and second step is to update the status in Shopify.

### **COD Confirmation Workflow**

Let's build a workflow in Shopify that automates the confirmation process. In just a few simple steps, you can create a system that handles order verification efficiently.

1. Go to **Integration** on your Gallabox dashboard. Click on the **Integrated Shopify Application** and go to **Workflow.**

{% hint style="info" %}
If you have not integrated your Shopify with Gallabox, click [here ](https://docs.gallabox.com/integration/e-commerce-platforms/shopify#shopify-integration)for the detailed steps.&#x20;
{% endhint %}

<figure><img src="https://docs.gallabox.com/~gitbook/image?url=https%3A%2F%2F3137140735-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FZcl3T6ePz95GpzjAeOLW%252Fuploads%252FUJUliChhHx3XCov4LoAy%252FIntegrated%2520Shopify%2520Application%2520in%2520Gallabox.gif%3Falt%3Dmedia%26token%3Df49a6c6c-a586-4dff-b5dc-fb992fd799c9&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=254b9ba5&#x26;sv=1" alt=""><figcaption></figcaption></figure>

2. Click on Workflows and click on the **Create Workflow.**

<figure><img src="https://docs.gallabox.com/~gitbook/image?url=https%3A%2F%2F3137140735-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FZcl3T6ePz95GpzjAeOLW%252Fuploads%252FEuq3LXt9LLwmt1BImis6%252FCustom%2520Order%2520Shopify.gif%3Falt%3Dmedia%26token%3Dead0377c-7515-4df5-8fd1-c95cf11da8e4&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=c0d30f29&#x26;sv=1" alt=""><figcaption></figcaption></figure>

3. You have to select ***Order Create*** in the Shopify Custom Event and for conditions, choose ***Financial Status*** as Comparator, ***Equal*** as Operator, and for the value ***Pending***.

<figure><img src="https://docs.gallabox.com/~gitbook/image?url=https%3A%2F%2F3137140735-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FZcl3T6ePz95GpzjAeOLW%252Fuploads%252FY62gwh5MZcM7CgN4ILMt%252FCustom%2520Create%2520Workflow.gif%3Falt%3Dmedia%26token%3D0a90c609-b7d9-4b95-a7a6-e72da755dd2b&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=dd86a67b&#x26;sv=1" alt=""><figcaption></figcaption></figure>

4. Select the **Order Confirmation** WhatsApp Template and map the variables defined.

<figure><img src="https://docs.gallabox.com/~gitbook/image?url=https%3A%2F%2F3137140735-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FZcl3T6ePz95GpzjAeOLW%252Fuploads%252F7mn8adzVFK7zuvqXP3Su%252FAdd%2520Template%2520-%2520COD%2520Confirmation.gif%3Falt%3Dmedia%26token%3D8d1e863f-88cd-4f38-87ab-208538082a65&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=48f9dfa0&#x26;sv=1" alt=""><figcaption></figcaption></figure>

5. For the action, you can update the Tag - *`COD Confirmation`* for the contact.

<figure><img src="https://docs.gallabox.com/~gitbook/image?url=https%3A%2F%2F3137140735-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FZcl3T6ePz95GpzjAeOLW%252Fuploads%252Fe4pdf9QWbNH8ifNSbSLi%252FUpdate%2520COD%2520Confirmation%2520Tags.gif%3Falt%3Dmedia%26token%3D143273d9-d2a9-4bad-808a-99b004d492ba&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=7d002ff1&#x26;sv=1" alt=""><figcaption></figcaption></figure>

Congratulations!! You have created the workflow. Let's move onto the next step of automation.

### **Using Shopify Connector**

Now that you have created the COD confirmation workflow, it's time to sync that information back to Shopify. Keeping your Shopify orders up-to-date is crucial for efficient order management. Let's explore how to seamlessly push the confirmed or canceled status back to your Shopify store.

1. Go to **Bots** and create a Bot by the name of COD Confirmation. Under the Bot, Add a flow named **Confirm order**.

<figure><img src="https://docs.gallabox.com/~gitbook/image?url=https%3A%2F%2F3137140735-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FZcl3T6ePz95GpzjAeOLW%252Fuploads%252F1wh2KEWuqkNwW7KiQvbT%252FCOD%2520Confirmation%2520flow.gif%3Falt%3Dmedia%26token%3Dba4c5705-e298-4275-accf-c00b983c2b91&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=83a32ce9&#x26;sv=1" alt=""><figcaption></figcaption></figure>

2. Go to Connectors, choose Shopify. Choose ***Replace Order tag*** action. For the Order Id, choose the variable - ***Payload*** and under Tags, type ***Order Confirm***.

{% hint style="info" %}
Make sure to connect your Shopify Account before using the connector. Detailed guide [here](https://docs.gallabox.com/bots/bot-connectors/connect-shopify-and-whatsapp-to-collect-orders-using-chatbot#shopify-api-key-and-secret).
{% endhint %}

<figure><img src="https://docs.gallabox.com/~gitbook/image?url=https%3A%2F%2F3137140735-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FZcl3T6ePz95GpzjAeOLW%252Fuploads%252Fj5XbYl65iSe4an8iMUk8%252FShopify%2520Connector.gif%3Falt%3Dmedia%26token%3Dd3a6db53-b063-42d4-8674-7ef3e69a5c3e&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=b340d2cd&#x26;sv=1" alt=""><figcaption></figcaption></figure>

3. Click on Save. You can send a message to the customer after they confirm the COD order.

<figure><img src="https://docs.gallabox.com/~gitbook/image?url=https%3A%2F%2F3137140735-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FZcl3T6ePz95GpzjAeOLW%252Fuploads%252F7Na4MVtei3avgl89N9Rh%252FSend%2520Message%2520COD%2520Confirmation.gif%3Falt%3Dmedia%26token%3D9207633f-2ddf-43b7-bdcd-b306bf8987fc&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=b4bd84b2&#x26;sv=1" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
You can create a Cancel Order flow similarly to the Order Confirmation flow as shown above.
{% endhint %}

**You have done it!** From now on, when someone orders on COD from your business, a message will be shared with them asking to confirm the COD order. Once they click on either buttons (**Order Confirm** or **Order Cancel** button), the status will be sent back to **Shopify**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guides.gallabox.com/how-to-verify-shopify-cod-orders-on-whatsapp-with-gallabox.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
