FlowRunner
Features Pricing
Theme
Start Free

New WooCommerce products classified for customs in Easyship

An AI agent gives each new product an Easyship category and HS code, asks your compliance owner in Slack when two codes could apply, and adds it to the Easyship catalog.

The prompt

When a new product is added to my WooCommerce store, have an AI agent classify it for customs: pick the Easyship item category that fits and look up its HS code in Easyship. If one HS code clearly fits, use it. If two or more could apply, ask our compliance owner in Slack with a button for each code and wait for the answer. Then add the product to the Easyship catalog with its SKU, weight, dimensions, price, country of origin, HS code and any liquid or battery flags.

FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.

The flow

Yes No Action Use the chosen HScode AI agent Classify the productfor customs Action Use the agent's HScode Asks a person Wait for the complianceowner's answer Starts the flow New WooCommerceproduct Action Add the product toEasyship Code Convert to Easyshipunits Condition One clear HS code? Asks a person Ask the complianceowner Action Get Easyship itemcategories Code Write the question forcompliance

Download the file, then in FlowRunner click + beside Flows, pick it under Import a Flow Version and click Create. How importing works

What each step does

  1. New WooCommerce product Starts a run when a product is added to your WooCommerce catalog.
  2. Get Easyship item categories Pulls Easyship's item categories, each with its default HS code and its battery and liquid flags.
  3. Classify the product for customs An AI agent reads the product's name, description and attributes, picks the item category, and searches Easyship's HS codes until it finds the code that fits. It also notes liquids, lithium batteries and any country of manufacture the listing states.
  4. One clear HS code? When one code clearly fits, the flow uses it and goes straight to the catalog.
  5. Ask the compliance owner When two or more codes could apply, the compliance owner gets a Slack message with the product, why the choice is unclear, and a button for each candidate code.
  6. Wait for the compliance owner's answer The run waits for the click and uses the code they chose.
  7. Add the product to Easyship Creates the Easyship product with its SKU, weight and size in kilograms and centimeters, price, country of origin, HS code and flags, so the customs data is on file before the first order ships abroad.

Before you turn it on

  • Enter your Easyship API token with the HS code lookup scope (public.hs_code:read) turned on, and your WooCommerce store URL, consumer key and consumer secret.
  • Add your Anthropic key in the flow setting Anthropic key.
  • Copy the URL of the block Wait for the compliance owner's answer into the flow setting Answer link. The Slack buttons open it.
  • Connect your Slack account and pick your compliance channel in Ask the compliance owner.
  • Set Store units to your store's weight unit, dimension unit and currency, and Default country of origin to where most of your products are made.