> 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/get-draft-orders-of-customer.md).

# Get Draft Orders Of Customer

This section explains how to configure the Get Draft Orders Of Customer action in Shopify using Ownchat Bot Builder.

The Get Draft Orders Of Customer action allows businesses to retrieve all draft orders created for customers from their Shopify store and use the response dynamically within workflows.

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

## Overview &#x20;

The Get Draft Orders Of Customer action helps you:

* Retrieve customer draft orders automatically
* Fetch pending Shopify draft orders dynamically
* Store draft order responses in variables
* Use draft order data throughout workflows
* Automate customer follow-up and checkout processes

This feature is useful for:

* Cart recovery workflows
* Pending payment reminders
* Customer support automation
* Draft order tracking
* WhatsApp commerce automation

## Prerequisites &#x20;

Before starting, ensure:

* Shopify store access is available
* Shopify connection is already created
* Draft orders exist in the Shopify store
* Bot Builder access is enabled
* Workflow variables are configured properly

## 1. Open Bot Builder &#x20;

Firstly, click the Plus (+) icon to add a new node to your bot workflow.\
<https://app.supademo.com/demo/cmprxux7201wx0y0jl6vl1w0z?utm\\_source=link>

This allows you to create a new Shopify workflow action inside the Bot Builder.

## 2. Configure Get Draft Orders Of Customer Action &#x20;

Now, click the Get Draft Orders Of Customer action to configure the bot action parameters.\
<https://app.supademo.com/demo/cmprxwqzv01g80f0jv7eh63ex?utm\\_source=link>

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

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

Example:

Get Customer Draft Orders

This action retrieves all available draft orders associated with a customer from Shopify.

## 3. Select Shopify Connection &#x20;

Then, select a connection from the dropdown to configure the draft order retrieval.

Choose the required Shopify store connection from the available list.

Example:

ieyal shopify live<br>

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

This connects the workflow directly with your Shopify store.

## 4. Configure Response Variable &#x20;

Following that, select a variable to store the response from the API action.

Next up, select the shopifydraftorder variable to store the API response.<br>

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

Example:

{{shopifydraftorder}}

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

## 5. Complete Action Configuration &#x20;

Following this, click the Create button to submit the action configuration.<br>

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

Next up, click this action step to retrieve all draft orders from your Shopify store.

The action automatically fetches available customer draft orders and stores the response in the configured variable.<br>

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

## 6. Publish the Bot &#x20;

To finish off, click the Publish button to deploy your bot actions configuration.<br>

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

Once published, the workflow automatically retrieves Shopify draft orders whenever the configured action is triggered.

## Workflow Summary &#x20;

Add Node\
&#x20;  ↓\
Shopify\
&#x20;  ↓\
Get Draft Orders Of Customer\
&#x20;  ↓\
Select Connection\
&#x20;  ↓\
Store Response Variable\
&#x20;  ↓\
Create\
&#x20;  ↓\
Publish

## Using Draft Order Response &#x20;

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

Example:

{{shopifydraftorder.id}}\
{{shopifydraftorder.invoice\_url}}\
{{shopifydraftorder.status}}

These values can be used in:

* WhatsApp payment reminders
* Draft order recovery workflows
* Customer notifications
* CRM automation
* Checkout follow-up messages

## Expected Output &#x20;

After successful configuration:

* Customer draft orders are retrieved automatically
* Draft order responses are stored dynamically
* Pending checkout workflows become automated
* Payment reminders can be triggered easily
* Shopify draft order data becomes reusable throughout workflows
