Connect Shopify and WhatsApp to Collect Orders via Chatbot
Easily integrate your Shopify store with WhatsApp using our comprehensive guide. Manage order tags, create new orders, and generate draft orders with step-by-step instructions.
Overview
Start your smooth integration with Shopify by following our detailed guide. Whether you're updating order tags, creating orders, or generating draft orders, this guide walks you through the process of connecting Shopify to your chat flow with ease.
Shopify API Key and Secret
To obtain your Shopify API Key and Secret, follow these steps:
Log into your Shopify admin panel and navigate to the Apps menu from the left-hand navigation.
Scroll down and click on Develop apps for your store.
Click Create an App, enter the app name as "BizMagnets", and then click Create app.
Once the app is created, go to API credentials and scroll down to the Access tokens section. Click on Configure Admin API access.
Select all permissions labeled "Read_..." and "Write_..." (if applicable), and then click Save App at the bottom of the page.
Return to API credentials to find the API Key and Secret Key (Password).
Connect Shopify
To begin, navigate to the Integrations section and click on Shopify.
Proceed by selecting one of the options, and you will be prompted to either create a new connection or choose from an existing one.
If no connection has been made yet, you will need to enter the Connection Name, API Key, Password, and Shopify Subdomain. After entering the required information, click Create to complete the setup.
Using the Shopify Connector
Using the Shopify Connector, you can perform the following actions:
Action Name | Action Description |
---|---|
Replace Order Tag | Update an existing order tag with a new one, allowing for better order categorization or tracking. |
Create Order | Create a new order in Shopify, capturing customer information, products, and payment details. |
Create Draft Order | Generate an order on behalf of a customer without requiring immediate payment, enabling you to send an invoice or collect payment later. |
Complete Draft Order | Finalize a draft order once the customer pays or confirms the details, converting it into a regular order with fulfillment options. |
Replace Order Tag
The Replace Order Tag action allows you to update tags on existing orders without the need for manual changes. This is particularly useful for managing sales campaigns, tracking inventory, and improving customer service by keeping order categorization clear and up-to-date.
How to use this Action: Select the relevant variables where the Order ID and Tags are stored, or manually enter the information in the designated fields. Once done, click on 'Save' to apply the changes.
Create Order
This Action will work for an Order-based chat-flow.
Available Fields for this Action:
Fields | Description |
---|---|
Name | Assign a variable that stores the customer’s name. Example: |
Phone | Assign a variable that stores the customer’s phone number. Example: |
Financial Status | Select the order's payment status from the dropdown. Example: "Pending Payment" |
Tag | Assign a variable for order tags or directly input the tag to be added to the order. Example: "Express Shipping" |
Note | Assign a variable or input the note to attach to the order. Example: "Urgent delivery requested." |
Source Name | Identifies the platform where the order originated in Shopify. |
Address | Customer’s billing address linked to the order in Shopify. |
City | The city component of the customer’s billing address in Shopify. |
State | The state or province portion of the customer’s billing address in Shopify. |
Country | The country portion of the customer’s billing address in Shopify. |
Pin | The postal code related to the billing address in Shopify. |
Shipping Address | The customer’s shipping address for the order in Shopify. |
Shipping City | The city for the customer’s shipping address in Shopify. |
Shipping State | The state or province for the customer’s shipping address in Shopify. |
Shipping Country | The country for the customer’s shipping address in Shopify. |
Shipping Pin Code | The postal code for the customer’s shipping address in Shopify. |
After assigning variables for all the required fields, click 'Save' to finalize the action.
Create Draft Order
Draft orders in Shopify offer flexibility for managing orders manually, bypassing the standard checkout process. This feature is useful for orders that require customization or manual handling.
Available Fields for this Action:
Name | Input a variable that stores the customer’s name. Example: |
Phone | Input a variable that stores the customer’s phone number. Example: |
Draft Order ID | Enter a variable to store the draft order ID. Example: |
Invoice URL | Enter a variable to store the invoice URL. Example: |
Financial Status | Select the order’s payment status from the dropdown. Example: "Pending Payment" |
Discount Type | Choose between two options: "Percentage" or "Fixed Amount." |
Discount Value | Enter a value for either the percentage or a fixed discount amount. |
Discount Title | A short description of the applied discount. Example: "Black Friday Deal" |
Discount Description | Additional details about the discount. Example: "15% off all electronics" |
Address | The customer’s billing address linked to the order in Shopify. |
City | The city section of the customer’s billing address. |
State | The state or province section of the billing address. |
Country | The country of the billing address. |
Pin | The postal code related to the billing address. |
Shipping Address | The customer’s shipping address for the order. |
Shipping City | The city portion of the shipping address. |
Shipping State | The state or province portion of the shipping address. |
Shipping Country | The country for the shipping address. |
Shipping Pin Code | The postal code for the shipping address. |
This Action will create the draft order and send the payment link to the user.
After filling in the required fields, click 'Save' to complete the draft order creation.
Complete Draft Order
This action finalizes a draft order in Shopify, typically after customer payment or confirmation.
Available Fields for this Action:
Draft Order ID | Enter the variable where the temporary draft order ID is stored, created before the customer confirms payment. |
Payment Pending | Choose either "True" or "False" to indicate whether payment is still pending for the order. |
Order ID | Enter the variable where the finalized order ID will be stored in Shopify after the customer confirms payment. |
To use this action, select the appropriate variables for Draft Order ID and Order ID, and choose the payment pending status from the dropdown menu. Then, click 'Save' to complete the process.
All customer details captured through the chat-flow with the Shopify Connector will be automatically pushed to your connected Shopify account.
Ensure that the correct variables are assigned as values for all relevant fields.
With your Shopify Connector in place, efficiently manage orders and draft orders. Follow the steps in this guide to ensure precise data entry, whether you're updating order tags or creating new orders. Enhance your Shopify integration by assigning the appropriate variables and values, turning your chat-flow into a powerful tool for seamless e-commerce management.
Last updated