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.
Overview
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
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
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
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.
Example:
Get Customer Draft Orders
This action retrieves all available draft orders associated with a customer from Shopify.
3. Select Shopify Connection
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
This connects the workflow directly with your Shopify store.
4. Configure Response Variable
Following that, select a variable to store the response from the API action.
Next up, select the shopifydraftorder variable to store the API response.
Example:
{{shopifydraftorder}}
This variable stores the draft order response dynamically for further workflow processing.
5. Complete Action Configuration
Following this, click the Create button to submit the action configuration.
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.
6. Publish the Bot
To finish off, click the Publish button to deploy your bot actions configuration.
Once published, the workflow automatically retrieves Shopify draft orders whenever the configured action is triggered.
Workflow Summary
Add Node β Shopify β Get Draft Orders Of Customer β Select Connection β Store Response Variable β Create β Publish
Using Draft Order Response
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
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
Last updated