Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Overview

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

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

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

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

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

2. Configure Create Order as Draft Action

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

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

Example:

Create Shopify Draft Order

3. Select Shopify Connection

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.

4. Configure Product Details

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

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

Example:

{{product_name}}

This allows products to be added dynamically from customer selections.

5. Configure Customer Information

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

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

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

Example:

{{first_name}}

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

Example:

{{last_name}}

6. Configure Shipping Address

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

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

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.

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

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

Example variables:

Field

Variable

Address

{{address}}

City

{{city}}

State

{{state}}

Zip Code

{{zipcode}}

Mobile

{{mobile}}

7. Store Draft Order Response

Then, click:

Create new variable: shopifydraftorder

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

8. Create Draft Order

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

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

9. Publish the Bot

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

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

Workflow Summary

Add Node ↓ Connections ↓ Shopify ↓ Create Order as Draft ↓ Select Connection ↓ Add Products ↓ Map Customer Variables ↓ Store Response Variable ↓ Create ↓ Publish

Using Draft Order Response

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

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

Last updated