Shopify Webhook
Shopify Webhook starts a flow every time something is created or changed in your Shopify store: an order, a product, a customer, a fulfillment or a payment transaction.
NappAI checks your store every minute and, if it finds changes, runs the flow with the details of each one. You do not have to set anything up in Shopify: you only need the credential and to subscribe the flow.
When to use it
- You want to alert your team as soon as a new order comes in.
- You need to send each order to your invoicing or shipping software.
- You want to add every new store customer to your CRM.
- You want an AI agent to review every product that is created or changed, for example to check it has a description and a price.
Configuration
You need a Shopify API credential with your store’s address and the details of an app created in the Shopify admin panel, under Settings > Apps > Develop apps, with access to the data you want to watch. See Credentials.
| Field | What it does |
|---|---|
| Credential (required) | The Shopify API credential of the store you want to watch. |
| Resource Type | Which kind of data is watched: orders, products, customers, fulfillments or transactions (payment transactions). Default: orders. |
| Events | Which changes start the flow. Default: Order Created and Order Updated. If you choose none, all of them are used. |
| Data | Test field. It lets you try the flow with sample data without waiting for a real change. Leave it empty in normal use. |
Turn on the subscription
The flow only receives changes while it is subscribed:
- Save the flow and publish a version. You need a published version of the flow to subscribe. See Versions and publishing.
- In the node’s settings panel, click Subscribe.
- In the panel that opens, click Subscribe. The status changes to Synced.
When you subscribe, the first check includes the changes from the last 24 hours. If you later change Resource Type or Events, the status shows Out of sync: subscribe again to apply the changes. From the same panel you can Unsubscribe.
Output
The Data output contains one item per change found, with the type of change (created if the item is new, updated if it was changed), the kind of data, its ID, its title or name, the date of its last change, and all its details as Shopify stores them. If a check finds several changes, they all come out together.
Connect it to an AI agent to analyse the change, to a messaging component to alert the team, or to your CRM or invoicing software.
Example
A clothing store wants to alert the warehouse about every new order.
- Add Shopify Webhook and choose the store’s Shopify API credential.
- Leave Resource Type as
ordersand choose onlyOrder Createdin Events. - Connect the Data output to an agent that prepares a summary with the order number, the customer and the products.
- Send the summary to the warehouse channel.
- Publish the flow and click Subscribe.
Good practices
- If you want to watch two kinds of data, for example orders and customers, create one flow for each.
- If the flow changes the same data it watches, for example it changes an order’s tag, that change starts the flow again. Check the type of change before changing anything.