> 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-as-draft.md).

# Create Order as Draft

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

The Create Order as Draft action allows businesses to automatically create draft orders inside Shopify using customer details collected through WhatsApp conversations.

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

## Overview &#x20;

The Create Order as Draft action helps you:

* Automatically create Shopify draft orders
* Collect customer details through WhatsApp
* Generate one-click payment links
* Build shopping carts dynamically
* Simplify customer checkout workflows

This feature is useful for:

* WhatsApp commerce
* Automated order creation
* Cart recovery workflows
* Customer checkout automation
* Direct payment collection

## Prerequisites &#x20;

Before starting, ensure:

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

## 1. Open Bot Builder &#x20;

First, click the Add Node button to begin creating your bot action workflow.<br>

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

After that, click the Connections tab to view and manage integration settings.

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

Next, click on Shopify to view available integrations and configuration options.

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

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

Following this, click Create Order as Draft to open the order creation form.

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

After that, enter a name for the action in the Action Name field.<br>

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

Example:

Create Shopify Draft 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 connection from the dropdown menu to proceed.

From here, select the ieyal shopify live connection to configure your Shopify account settings.<br>

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

## 4. Configure Product Details &#x20;

Click add variable to add the product in the Products field.

Following this, click the search field to find and select the desired variable.

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

Example:

{{product\_name}}

This allows products to be added dynamically from customer selections.

## 5. Configure Customer Information &#x20;

Next up, click Add Variable to include dynamic customer data fields.

Now, click the search field to find and select the variable you need.<br>

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

After that, click Add Variable to include the customer's first name field.

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

Example:

{{first\_name}}

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

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

Example:

{{last\_name}}

## 6. Configure Shipping Address &#x20;

Next up, click Add Variable to include additional customer shipping address details.<br>

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

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

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

Now, click Add Variable to insert a dynamic field into the city field.

After that, click Add Variable to insert dynamic customer data into your form.<br>

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

Next, click Add Variable to include additional data fields in your order.

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

Following this, click Add Variable to dynamically insert customer zip code into the order.<br>

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

Example variables:

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

## 7. Store Draft Order Response &#x20;

Then, click:

Create new variable: shopifydraftorder<br>

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

This variable stores the Shopify draft order response dynamically for further workflow usage.

## 8. Create Draft Order &#x20;

Next, click the Create button to submit and generate the draft order.

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

The Create Draft Order action builds a customer's shopping cart automatically inside WhatsApp.

It:

* Collects customer details in chat
* Creates a Shopify draft order
* Generates a pre-filled payment link
* Sends customers directly to checkout
* Eliminates the need to visit the website manually

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

## 9. Publish the Bot &#x20;

Afterwards, click the Publish button to finalize and save your bot actions.<br>

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

Once published, the bot automatically creates Shopify draft orders whenever the configured workflow is triggered.

## Workflow Summary &#x20;

Add Node\
&#x20;  ↓\
Connections\
&#x20;  ↓\
Shopify\
&#x20;  ↓\
Create Order as Draft\
&#x20;  ↓\
Select Connection\
&#x20;  ↓\
Add Products\
&#x20;  ↓\
Map Customer Variables\
&#x20;  ↓\
Store Response Variable\
&#x20;  ↓\
Create\
&#x20;  ↓\
Publish

## Using Draft Order Response &#x20;

The stored draft order response can be used dynamically within your workflow.

Example:

{{shopifydraftorder.invoice\_url}}\
{{shopifydraftorder.order\_id}}

These values can be used in:

* WhatsApp payment messages
* Customer notifications
* CRM workflows
* Order tracking flows
* Checkout automation

## Expected Output &#x20;

After successful configuration:

* Shopify draft orders are created automatically
* Customer details are mapped dynamically
* Products are added to the cart automatically
* One-click payment links are generated
* Customers can complete checkout directly from WhatsApp
* Order responses are available for further workflow automation
