> For the complete documentation index, see [llms.txt](https://docs.ownchat.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ownchat.app/bot/connections/shopify/create-order.md).

# Create Order

This section explains how to configure the Create Order action in Shopify using OwnChat Bot Builder.

The Create Order action allows businesses to automatically create Shopify orders using customer and product details collected through WhatsApp conversations.

{% embed url="<https://app.supademo.com/demo/cmpib6lcn10rdqms91aqsdtkt?utm_source=link>" %}

## Overview &#x20;

The Create Order action helps you:

* Automatically create Shopify orders
* Collect customer details dynamically
* Add products directly to orders
* Process online or offline payments
* Store order responses for future workflows

This feature is useful for:

* WhatsApp commerce
* Automated order processing
* Customer checkout automation
* Direct product purchases
* Payment workflow management

## Prerequisites &#x20;

Before starting, ensure:

* Shopify store access is available
* Shopify connection is already created
* Product variables are configured
* Customer variables are available
* Bot Builder access is enabled

## 1. Open Bot Builder &#x20;

To start, click the Plus (+) icon to add a new node to your workflow.<br>

{% embed url="<https://app.supademo.com/demo/cmpruq11102hq0t0irgu60qcz?utm_source=link>" %}

Following that, click the Connections tab to view and manage integration options.<br>

{% embed url="<https://app.supademo.com/demo/cmprureir01dc0f0jknfwxz60?utm_source=link>" %}

Now, click on Shopify to configure your e-commerce platform connection settings.<br>

{% embed url="<https://app.supademo.com/demo/cmpruwyka0001zg0j7ea07jgu?utm_source=link>" %}

## 2. Configure Create Order Action &#x20;

Now, click the Create Order action to open the order creation form dialog.

{% embed url="<https://app.supademo.com/demo/cmpruxuty02hz0t0i6vq9j3oq?utm_source=link>" %}

Next up, enter a name for your action in the Action Name field.

{% embed url="<https://app.supademo.com/demo/cmpruz67l01de0f0jrfw5ni83?utm_source=link>" %}

Example:

Create Shopify Order

## 3. Select Shopify Connection &#x20;

Following that, before selecting the connection, you need to create a connection in the Shopify app under the Apps tab.

Then, select the created connection from the dropdown menu to proceed.

{% embed url="<https://app.supademo.com/demo/cmprv1iiu02i10t0ibl2cu9l7?utm_source=link>" %}

This connection links your bot workflow with your Shopify store.

## 4. Configure Product Details &#x20;

Next, click Add Variable to include dynamic values in the Products field.

{% embed url="<https://app.supademo.com/demo/cmprv2u2u02i30t0ic5ohfi2b?utm_source=link>" %}

Previously, the product variable was stored in the product action.

Now, click on sampleproduct to select it as the product for this order.<br>

{% embed url="<https://app.supademo.com/demo/cmprv5w4901do0f0jszernuxa?utm_source=link>" %}

Example:

{{sampleproduct}}

This dynamically inserts the selected product into the Shopify order.

## 5. Configure Customer Phone Number &#x20;

Following this, click Add Variable to include the phone number field in your order.

After that, click on phone to select it from the dropdown menu.

{% embed url="<https://app.supademo.com/demo/cmprv9i6n01dx0f0ju1whf1hy?utm_source=link>" %}

Example:

{{phone}}

This automatically maps the customer phone number into the Shopify order.

## 6. Configure Customer Name Details &#x20;

From here, click Add Variable to include additional customer information fields.

Next up, click Add Variable to populate the First Name field with dynamic data.

{% embed url="<https://app.supademo.com/demo/cmprviu4102i60t0i5ig5r9rz?utm_source=link>" %}

Example:

{{first\_name}}

Now, enter the customer's last name in the Last Name field.

Example:

{{last\_name}

## 7. Configure Shipping Address &#x20;

Next, enter the shipping address in the Address field to continue.

{% embed url="<https://app.supademo.com/demo/cmprvodk901n10y0jgcls4x8w?utm_source=link>" %}

Next up, click Add Variable to insert dynamic customer data into your order form.

{% embed url="<https://app.supademo.com/demo/cmprvpuq200010q0jfai6zbqa?utm_source=link>" %}

Next, click Add Variable to include additional customer information fields.<br>

{% embed url="<https://app.supademo.com/demo/cmprvt8h101n40y0jrxbs94d0?utm_source=link>" %}

Then, click Add Variable to insert a dynamic value for the State field.

{% embed url="<https://app.supademo.com/demo/cmprvvdd60001x00jiprplmrl?utm_source=link>" %}

Now, click Add Variable to dynamically insert customer data into the form.

After that, click the Add Variable button to dynamically insert custom variables.

Example variables:

| Field    | Variable    |
| -------- | ----------- |
| Address  | {{address}} |
| City     | {{city}}    |
| State    | {{state}}   |
| Zip Code | {{zipcode}} |

## 8. Configure Country Field &#x20;

Next, select Country from the dropdown menu to set the customer's country.

{% embed url="<https://app.supademo.com/demo/cmprwn2kq0003yp0ja2keomie?utm_source=link>" %}

Example:

India

This determines the customer's shipping destination for the order.

## 9. Configure Payment Method &#x20;

Now, click the Add Variable button to insert dynamic customer information variables.<br>

{% embed url="<https://app.supademo.com/demo/cmprwqn8e01fd0f0jch9fzv5s?utm_source=link>" %}

You can choose either:

* Online Payment
* Offline Payment

based on your business preference.

This allows flexible payment handling during order creation.

## 10. Store Order Response &#x20;

After that, select the variable to store the order response for future reference.

Example:

Create new variable: shopifyorder

{% embed url="<https://app.supademo.com/demo/cmprwsur301ff0f0ja4lve87e?utm_source=link>" %}

This variable stores the Shopify order response dynamically for workflow automation.

## 11. Create Shopify Order &#x20;

The Create Order action automatically creates orders in your Shopify store with customer and product details.<br>

{% embed url="<https://app.supademo.com/demo/cmprwuc3t01fh0f0j26x26k8c?utm_source=link>" %}

This enables businesses to process customer purchases directly through WhatsApp conversations.

## 12. Publish the Bot &#x20;

Next, click the Publish button to deploy your bot configuration to the WhatsApp channel.<br>

{% embed url="<https://app.supademo.com/demo/cmprwy7cp02jb0t0idoygm2jb?utm_source=link>" %}

Once published, the workflow automatically creates Shopify orders whenever customers complete the configured process.

## Workflow Summary &#x20;

Add Node\
&#x20;  ↓\
Connections\
&#x20;  ↓\
Shopify\
&#x20;  ↓\
Create Order\
&#x20;  ↓\
Select Connection\
&#x20;  ↓\
Add Product Variable\
&#x20;  ↓\
Map Customer Details\
&#x20;  ↓\
Configure Payment Method\
&#x20;  ↓\
Store Response Variable\
&#x20;  ↓\
Publish

## Using Order Response Variables &#x20;

The stored Shopify order response can be used dynamically anywhere in your workflow.

Example:

{{shopifyorder.order\_id}}\
{{shopifyorder.payment\_url}}\
{{shopifyorder.customer\_name}}

These values can be used in:

* Payment messages
* Order confirmations
* CRM workflows
* Customer notifications
* Shipping updates

## Expected Output &#x20;

After successful configuration:

* Shopify orders are created automatically
* Customer details are mapped dynamically
* Products are added directly into orders
* Payment methods are configured properly
* Order responses are stored for workflow automation
* Customers can complete purchases directly through WhatsApp
