Shopify is an e-commerce platform that needs no introduction.

You can now use our new Shopify Integration to easily add webhook triggers and perform tasks on Shopify resources:


client.defineJob({
id: "shopify-create-customized-product",
name: "Shopify - Create Customized Product",
version: "1.0.0",
integrations: {
shopify,
},
trigger: shopify.on("customers/create"),
run: async (payload, io, ctx) => {
const firstName = payload.first_name;
// Create a customized product
const product = await io.shopify.rest.Product.save("teapot", {
fromData: {
title: `${firstName}'s Teapot`,
},
});
return {
message: `Hi, ${firstName}! Bet you'll love this: ${product.title}`,
};
},
});

This is the first integration to use our updated Webhook Triggers which come with a new UI. The dashboard can be found under Triggers -> Webhook Triggers. You can now see both webhook registrations and deliveries!

image

See more details in the Shopify integration docs.

Ready to start building?

Build and deploy your first task in 3 minutes.

Get started now