In this article we will explore how to create an Onfleet Task on n8n when a Shopify Order is made. You can automate your order-to-delivery process with this simple workflow.
In this article, we will be using Shopify’s "Order Created" trigger and Onfleet’s Create Task endpoint as our example of setting up the notification.
This requires you to have already created an Onfleet node workflow. You can find the details here: Create an Onfleet Task using the workflow
The Steps for this integration are as follows:
Creating a Private App for Shopify
To create a Shopify credential on n8n Workflow, you will first need to create a Shopify Private App on your Shopify store.
- Go to your Store Admin Page
- Press Apps
- Scroll down to the bottom to “Develop App for your Store”
- Create an app
This will then allow you to get the needed information to connect your n8n Shopify node to your Shopify store.
- Go to API Credentials
- Clicking on install app, write down Admin API access Token, API Key, API Secret Key - you will need all three items to create your Shopify connection on n8n.
Create a Shopify Node on n8n
Next, we will create a "Shopify Node" on n8n to connect with the Onfleet node.
- Click on the + sign in the top right corner.
- Search for Shopify Trigger.
- Select Shopify Trigger.
After you have created the Shopify Trigger Node, we will have to enter the credentials from your Shopify Store to connect your Shopify Store to your Shopify node.
- Create new Shopify Credential
- Input previous recorded API keys from Shopify apps
- Shopify API goes into API Key
- Admin Access Token goes to Password
- API Secret Key goes to Shared Secret
After you have entered the required information, it should look something like this:
Then choose an event you would like to start your integration with. For our purpose, we will use Order Created. Please select Order Created on the Topic dropdown.
Connect Shopify Node to Onfleet
Once we have finished creating the Shopify Private App, and Shopify node, and connected them together, we are ready to connect them to the Onfleet n8n node and create a task in Onfleet.
- Drag the Shopify Node to Onfleet Node
- Press Execute Workflow at the bottom of your n8n template
- Create a Test Order on Shopify
- Click on Onfleet Node
- Click on Add a destination
- Click on Destination Address
- Check your Onfleet Dashboard for the task:
Congratulations, you have successfully connected Shopify to Onfleet via n8n.