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.
Overview
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
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
To start, click the Plus (+) icon to add a new node to your workflow.
Following that, click the Connections tab to view and manage integration options.
Now, click on Shopify to configure your e-commerce platform connection settings.
2. Configure Create Order Action
Now, click the Create Order action to open the order creation form dialog.
Next up, enter a name for your action in the Action Name field.
Example:
Create Shopify 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 created connection from the dropdown menu to proceed.
This connection links your bot workflow with your Shopify store.
4. Configure Product Details
Next, click Add Variable to include dynamic values in the Products field.
Previously, the product variable was stored in the product action.
Now, click on sampleproduct to select it as the product for this order.
Example:
{{sampleproduct}}
This dynamically inserts the selected product into the Shopify order.
5. Configure Customer Phone Number
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.
Example:
{{phone}}
This automatically maps the customer phone number into the Shopify order.
6. Configure Customer Name Details
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.
Example:
{{first_name}}
Now, enter the customer's last name in the Last Name field.
Example:
{{last_name}
7. Configure Shipping Address
Next, enter the shipping address in the Address field to continue.
Next up, click Add Variable to insert dynamic customer data into your order form.
Next, click Add Variable to include additional customer information fields.
Then, click Add Variable to insert a dynamic value for the State field.
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
Next, select Country from the dropdown menu to set the customer's country.
Example:
India
This determines the customer's shipping destination for the order.
9. Configure Payment Method
Now, click the Add Variable button to insert dynamic customer information variables.
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
After that, select the variable to store the order response for future reference.
Example:
Create new variable: shopifyorder
This variable stores the Shopify order response dynamically for workflow automation.
11. Create Shopify Order
The Create Order action automatically creates orders in your Shopify store with customer and product details.
This enables businesses to process customer purchases directly through WhatsApp conversations.
12. Publish the Bot
Next, click the Publish button to deploy your bot configuration to the WhatsApp channel.
Once published, the workflow automatically creates Shopify orders whenever customers complete the configured process.
Workflow Summary
Add Node ↓ Connections ↓ Shopify ↓ Create Order ↓ Select Connection ↓ Add Product Variable ↓ Map Customer Details ↓ Configure Payment Method ↓ Store Response Variable ↓ Publish
Using Order Response Variables
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
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
Last updated